DCA practice question 2 of 25

Will this command ensure that overlay traffic between service tasks is encrypted? Solution: docker network create -d overlay -o encrypted=true

Full set: 191 questions
Answer options
A: Yes Correct answer
B: No
Correct Answer:
A. Yes
Explanation

This command correctly creates a Docker Swarm overlay network with end-to-end encryption enabled. The -d overlay flag specifies the overlay network driver, and the driver option -o encrypted=true instructs Docker to create an IPsec tunnel between all nodes participating in this network. This encrypts both the control plane gossip traffic and the application data traffic (VXLAN) for all services attached to this network.

Why Incorrect

B: This is incorrect because the provided command uses the officially documented syntax (-o encrypted=true) to enable encryption for a Docker overlay network.

References

1. Docker Docs, "Use overlay networks," Section: "Encrypt traffic on an overlay network". States: "To encrypt the application data, add -o encrypted=true when you create the overlay network: $ docker network create -d overlay -o encrypted=true my-encrypted-network."

2. Docker Docs, "docker network create," CLI reference. Under "Overlay options," it lists encrypted: "Encrypts the data exchanged between nodes on the overlay network. When enabled, Docker creates an IPsec tunnel between all the nodes on which tasks for services attached to the overlay network are scheduled."

Scroll to Top