DCA · Question #21
Which of the following is true about overlay networks?
The correct answer is B. Overlay networks are created on all cluster nodes when you create the overlay network. Overlay networks in a Docker Swarm are distributed across all nodes in the cluster to enable inter-container communication across different hosts.
Question
Which of the following is true about overlay networks?
Options
- AOverlay networks are created only on the manager node that you created the overlay networking
- BOverlay networks are created on all cluster nodes when you create the overlay network.
- COverlay networks are first created on the manager nodes. Then they are created on the worker
- DOverlay networks are only created on the manager nodes.
How the community answered
(47 responses)- A2% (1)
- B91% (43)
- C2% (1)
- D4% (2)
Why each option
Overlay networks in a Docker Swarm are distributed across all nodes in the cluster to enable inter-container communication across different hosts.
This is incorrect because overlay networks are designed for multi-host communication and are therefore distributed across the entire swarm, not confined to a single manager node.
When an overlay network is created in a Docker Swarm, it is automatically extended to all manager and worker nodes within that swarm. This allows containers on any node to communicate seamlessly over the overlay network, providing a unified networking plane for distributed applications.
While manager nodes coordinate the creation, the overlay network is effectively available on all nodes simultaneously for container use, not in a staged fashion from managers to workers.
This is incorrect because overlay networks are essential for worker nodes to host containers that need to communicate across the swarm, making them available on all nodes.
Concept tested: Docker Swarm overlay network distribution
Source: https://docs.docker.com/network/overlay/
Topics
Community Discussion
No community discussion yet for this question.