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 questionsThe 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.
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.
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..."
Keep practicing
Take the free AZ-800 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other AZ-800 practice questions
- Question 1You have five tile servers that run Windows Server. You need to block users from uploadin…
- Question 2You have an Azure Active Directory Domain Services (Azure AD DS) domain named contoso.com…
- Question 3You have an Azure virtual machine named VM1 that runs Windows Server and has the followin…
- Question 5You need to implement a name resolution solution that meets the networking requirements. …
- Question 6Your company has a main office and a branch office. The two offices are connected by usin…
- Question 7You need to configure the Group Policy settings to ensure that the Azure Virtual Desktop …
