0
0
Computer Networksknowledge~20 mins

Container networking in Computer Networks - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Container Networking Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Container Network Isolation

Which statement best describes how container networking isolates containers from the host system?

AContainers use separate network namespaces, providing isolated network stacks distinct from the host and other containers.
BContainers share the host's network stack without any isolation, allowing direct access to all host network interfaces.
CContainers use virtual machines to isolate their network, completely separate from the host's network stack.
DContainers rely on physical network cards dedicated to each container for network isolation.
Attempts:
2 left
💡 Hint

Think about how containers keep their network separate but still lightweight compared to virtual machines.

📋 Factual
intermediate
2:00remaining
Default Docker Bridge Network Characteristics

What is a key characteristic of the default bridge network created by Docker for containers?

AIt creates a private internal network where containers can communicate using private IPs but are isolated from the host network by default.
BIt assigns containers IP addresses from the host's physical network directly.
CIt disables all container-to-container communication by default.
DIt requires manual configuration of IP addresses for each container.
Attempts:
2 left
💡 Hint

Consider how containers communicate with each other and the host when using the default network.

🔍 Analysis
advanced
2:00remaining
Analyzing Container Port Mapping Behavior

Given a container running a web server on port 80, which Docker command option correctly maps the container's port 80 to port 8080 on the host?

Adocker run --port 8080:80 mywebserver
Bdocker run -p 80:8080 mywebserver
Cdocker run -p 8080:80 mywebserver
Ddocker run -P 8080:80 mywebserver
Attempts:
2 left
💡 Hint

Remember the syntax for Docker port mapping is hostPort:containerPort.

Comparison
advanced
2:00remaining
Comparing Container Network Drivers

Which container network driver allows containers to be directly connected to the host's network stack, sharing the host's IP address?

Abridge
Bmacvlan
Coverlay
Dhost
Attempts:
2 left
💡 Hint

Think about which driver removes network isolation between container and host.

Reasoning
expert
2:00remaining
Troubleshooting Container Network Connectivity

A container cannot reach an external website, but the host machine can. The container uses the default bridge network. What is the most likely cause?

AThe container's CPU limits are too low, causing network delays.
BThe container's DNS settings are incorrect or missing, preventing domain name resolution.
CThe container is using the host network driver, which blocks external access by default.
DThe container's filesystem is read-only, blocking network connections.
Attempts:
2 left
💡 Hint

Consider what is needed for a container to translate website names into IP addresses.