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 questionsThis 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.
B: This is incorrect because the provided command uses the officially documented syntax (-o encrypted=true) to enable encryption for a Docker overlay network.
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."
Keep practicing
Take the free DCA practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other DCA practice questions
- Question 1Does this command create a swarm service that only listens on port 53 using the UDP proto…
- Question 4Does this describe the role of Control Groups (cgroups) when used with a Docker container…
- Question 5Can this set of commands identify the published port(s) for a container? Solution: docker…
- Question 6Will this command mount the host's '/data' directory to the ubuntu container in read-only…
- Question 7A company's security policy specifies that development and production containers must run…
- Question 9Will this action upgrade Docker Engine CE to Docker Engine EE? Solution: Uninstall 'docke…
