AZ-800 practice question 4 of 35

You have a server named Server1 that hosts Windows containers. You plan to deploy an application that will have multiple containers. Each container will be You need to create a Docker network that supports the deployment of the application. Which type of network should you create?

Full set: 260 questions
Answer options
A: transparent
B: I2bridge Correct answer
C: NAT
D: I2tunnel
Correct Answer:
B. I2bridge
Explanation

The L2bridge network driver is the correct choice for this scenario. It connects all containers on a single host to the same network subnet as the container host itself. Each container is assigned a unique IP address from the same prefix as the host, allowing them to communicate as if they are on the same Layer 2 network segment. This driver uses Layer 2 address translation (MAC re-write), which is highly compatible with virtualized environments where security policies might block the MAC spoofing required by the transparent driver.

Why Incorrect

A. transparent: While this driver also connects containers to the host's network subnet, it requires MAC spoofing, which is often disabled on virtual switches for security reasons, making it less suitable.
C. NAT: This driver creates an internal, private network for the containers. Containers receive IP addresses from a separate subnet and are isolated from the host's network, which does not meet the requirement.
D. l2tunnel: This is a specialized driver for multi-host networking, typically used in cloud environments like Azure Stack HCI. It is not intended for networking containers on a single host.

References

1. Microsoft Learn. (2023). Windows container networking. Microsoft Docs. Retrieved from https://learn.microsoft.com/en-us/virtualization/windowscontainers/container-networking/network-drivers-topologies.

Section: L2bridge Network Driver: "With the l2bridge driver

container network traffic will have the same MAC address as the host because it undergoes layer-2 address translation (MAC re-write) on both ingress and egress... This driver is recommended when your container host is virtualized and you need to connect your containers to the same VLAN as the VM."

Section: Transparent Network Driver: "Use of this driver requires caution

as you will need to ensure that there are no MAC address conflicts on your network."

Section: Network Address Translation (NAT) Network: "By default

containers running on Windows receive an IP address from an internal

private IP prefix (e.g. 172.16.0.0/12)."

Section: L2tunnel Network Driver: "This driver should be used with a Microsoft Cloud Stack... This driver is used for workloads running on a network fabric..."

Scroll to Top