Docker Certified Associate (DCA) — Question 17

Does this command create a swarm service that only listens on port 53 using the UDP protocol?
‘docker service create --name dns-cache -p 53:53 --udp dns-cache’

Answer options

Correct answer: A

Explanation

The command indeed sets up a swarm service named dns-cache that listens solely on port 53 using the UDP protocol, as indicated by the '--udp' flag. The option 'No' is incorrect because it contradicts the purpose of the command.