nerdexam
Docker

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.

Submitted by yaw92· Apr 18, 2026Networking

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)
  • A
    2% (1)
  • B
    91% (43)
  • C
    2% (1)
  • D
    4% (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.

AOverlay networks are created only on the manager node that you created the overlay networking

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.

BOverlay networks are created on all cluster nodes when you create the overlay network.Correct

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.

COverlay networks are first created on the manager nodes. Then they are created on the worker

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.

DOverlay networks are only created on the manager nodes.

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

#Overlay Networks#Docker Swarm#Cluster Networking#Network Architecture

Community Discussion

No community discussion yet for this question.

Full DCA Practice