Free DCA Exam Braindumps (page: 5)

Page 5 of 42

Which of the following commands will create a swarm service which only listens on port 53 using the UDP protocol?

  1. docker service create --name dns-cache -p 53:53/udp dns-cache
  2. docker service create --name dns-cache -p 53:53 --service udp dns-cache
  3. docker service create--namedns-cache-p 53:53..constraint networking.protocol.udp=true dns-cache
  4. docker service create --name dns-cache -p 53:53 --udp dns-cache

Answer(s): A



Which of the following is true about using the '-P' option when creating a new container?

  1. Docker binds each exposed container port to a random port on all the host's interface
  2. Docker gives extended privileges to the container.
  3. Docker binds each exposed container port to a random port on a specified host interface
  4. Docker binds each exposed container port with the same port on the host

Answer(s): A



What behavior is expected when a service is created with the following command: 'docker service create --publish 8000:80 nginx'

  1. All nodes in the cluster will listen on port 8080 and forward to port 80 in the container.
  2. Only a single node in the cluster will listen on port 8080 and forward to port 80 in the container.
  3. All nodes in the cluster will listen on port 80 and forward to port 8080 in the container.
  4. Only a single node in the cluster will listen on port 80 and forward to port 8080 in the container.

Answer(s): A



Which set of commands can identify the published port(s) for a container? (Choose 1.)

  1. 'docker port inspect', 'docker container inspect'
  2. 'docker container inspect', dockerport'
  3. 'docker info','docker network inspect'
  4. 'docker network inspect','docker port'

Answer(s): B



Page 5 of 42



Post your Comments and Discuss Docker DCA exam with other Community members:

Simon commented on October 24, 2024
guys waht do you think about this dump?
Anonymous
upvote