Docker DCA Exam (page: 7)
Docker Certified Associate
Updated on: 21-Feb-2026

Viewing Page 7 of 38

Seven managers are in a swarm cluster.

Is this how should they be distributed across three datacenters or availability zones?

Solution: 5-1-1

  1. Yes
  2. No

Answer(s): B

Explanation:

= I cannot give you a comprehensive explanation, but I can tell you that the question is about Docker Swarm, which is a native clustering solution for Docker. Docker Swarm allows you to create a group of Docker hosts, called nodes, that work together as a single virtual system. Nodes can be either managers or workers. Managers are responsible for maintaining the cluster state and orchestrating services, while workers are responsible for running the tasks assigned by managers. A swarm cluster should have an odd number of managers to avoid split-brain scenarios and ensure high availability. However, having too many managers can also degrade performance and increase the risk of failures. Therefore, the recommended number of managers is between 3 and 72. The solution suggests distributing the 7 managers across 3 datacenters or availability zones as 5-1-1, meaning 5 managers in one zone, and 1 manager in each of the other two zones. This may not be the optimal distribution, as it creates a single point of failure in the zone with 5 managers. If that zone goes down, the remaining 2 managers will not be able to form a quorum and the cluster will become unavailable. A better distribution may be 3-2-2 or 2-2-2-1, as they provide more redundancy and resilience. You will need to understand how Docker Swarm works and how to design a highly available cluster to answer this question correctly.


Reference:

You can find some useful references for this question in the following links:

Docker Swarm overview

Swarm mode key concepts

Swarm mode best practices



Seven managers are in a swarm cluster.

Is this how should they be distributed across three datacenters or availability zones?

Solution: 3-2-2

  1. Yes
  2. No

Answer(s): B

Explanation:

= Distributing seven managers across three datacenters or availability zones as 3-2-2 is not a good way to ensure high availability and fault tolerance. This is because a swarm cluster requires a majority of managers (more than half) to be available and able to communicate with each other in order to maintain the swarm state and avoid a split-brain scenario. If one of the datacenters or availability zones with three managers goes down, the remaining four managers will not have a quorum and the swarm will stop functioning. A better way to distribute seven managers across three datacenters or availability zones is 3-3-1 or 3-2-1-1, which will allow the swarm to survive the loss of one or two datacenters or availability zones, respectively.


Reference:

Administer and maintain a swarm of Docker Engines | Docker Docs

How to Create a Cluster of Docker Containers with Docker Swarm and DigitalOcean on Ubuntu 16.04 | DigitalOcean



Does this command create a swarm service that only listens on port 53 using the UDP protocol?

Solution: 'docker service create --name dns-cache -p 53:53/udp dns-cache'

  1. Yes
  2. No

Answer(s): A

Explanation:

= The command `docker service create --name dns-cache -p 53:53/udp dns-cache' creates a swarm service that only listens on port 53 using the UDP protocol. This is because the -p flag specifies the port mapping between the host and the service, and the /udp suffix indicates the protocol to use. Port 53 is commonly used for DNS services, which use UDP as the default transport protocol. The dns-cache argument is the name of the image to use for the service.


Reference:

docker service create | Docker Documentation

DNS - Wikipedia

I hope this helps you understand the command and the protocol, and how they work with Docker and swarm. If you have any other questions related to Docker, please feel free to ask me.



Does this command create a swarm service that only listens on port 53 using the UDP protocol?

Solution: `docker service create -name dns-cache -p 53:53 -service udp dns-cache'

  1. Yes
  2. No

Answer(s): B

Explanation:

The command docker service create -name dns-cache -p 53:53 -service udp dns-cache is not valid because it has some syntax errors. The correct syntax for creating a swarm service is docker service create [OPTIONS] IMAGE [COMMAND] [ARG...]. The errors in the command are:

There should be a space between the option flag and the option value. For example, -name dns- cache should be -name dns-cache.

The option flag for specifying the service mode is -mode, not -service. For example, -service udp should be -mode udp.

The option flag for specifying the port mapping is --publish or -p, not -p. For example, -p 53:53 should be --publish 53:53.

The correct command for creating a swarm service that only listens on port 53 using the UDP protocol is:

docker service create --name dns-cache --publish 53:53/udp dns-cache

This command will create a service called dns-cache that uses the dns-cache image and exposes port 53 on both the host and the container using the UDP protocol.


Reference:

: [docker service create | Docker Documentation] : [Publish ports for services | Docker Documentation]



You want to provide a configuration file to a container at runtime. Does this set of Kubernetes tools and steps accomplish this?

Solution: Turn the configuration file into a configMap object and mount it directly into the appropriate pod and container using the .spec.containers.configMounts key.

  1. Yes
  2. No

Answer(s): B



Viewing Page 7 of 38



Share your comments for Docker DCA exam with other users:

Karthik 10/12/2023 10:51:00 AM

nice question
Anonymous


Godmode 5/7/2023 10:52:00 AM

yes.
NETHERLANDS


Bhuddhiman 7/30/2023 1:18:00 AM

good mateial
Anonymous


KJ 11/17/2023 3:50:00 PM

good practice exam
Anonymous


sowm 10/29/2023 2:44:00 PM

impressivre qustion
Anonymous


CW 7/6/2023 7:06:00 PM

questions seem helpful
Anonymous


luke 9/26/2023 10:52:00 AM

good content
Anonymous


zazza 6/16/2023 9:08:00 AM

question 21 answer is alerts
ITALY


Abwoch Peter 7/4/2023 3:08:00 AM

am preparing for exam
Anonymous


mohamed 9/12/2023 5:26:00 AM

good one thanks
EGYPT


Mfc 10/23/2023 3:35:00 PM

only got thru 5 questions, need more to evaluate
Anonymous


Whizzle 7/24/2023 6:19:00 AM

q26 should be b
Anonymous


sarra 1/17/2024 3:44:00 AM

the aaa triad in information security is authentication, accounting and authorisation so the answer should be d 1, 3 and 5.
UNITED KINGDOM


DBS 5/14/2023 12:56:00 PM

need to attend this
UNITED STATES


Da_costa 8/1/2023 5:28:00 PM

these are free brain dumps i understand, how can one get free pdf
Anonymous


vikas 10/28/2023 6:57:00 AM

provide access
EUROPEAN UNION


Abdullah 9/29/2023 2:06:00 AM

good morning
Anonymous


Raj 6/26/2023 3:12:00 PM

please upload the ncp-mci 6.5 dumps, really need to practice this one. thanks guys
Anonymous


Miguel 10/5/2023 12:21:00 PM

question 16: https://help.salesforce.com/s/articleview?id=sf.care_console_overview.htm&type=5
SPAIN


Hiren Ladva 7/8/2023 10:34:00 PM

yes i m prepared exam
Anonymous


oliverjames 10/24/2023 5:37:00 AM

my experience was great with this site as i studied for the ms-900 from here and got 900/1000 on the test. my main focus was on the tutorials which were provided and practice questions. thanks!
GERMANY


Bhuddhiman 7/20/2023 11:52:00 AM

great course
UNITED STATES


Anuj 1/14/2024 4:07:00 PM

very good question
Anonymous


Saravana Kumar TS 12/8/2023 9:49:00 AM

question: 93 which statement is true regarding the result? sales contain 6 columns and values contain 7 columns so c is not right answer.
INDIA


Lue 3/30/2023 11:43:00 PM

highly recommend just passed my exam.
CANADA


DC 1/7/2024 10:17:00 AM

great practice! thanks
UNITED STATES


Anonymus 11/9/2023 5:41:00 AM

anyone who wrote this exam recently?
SOUTH AFRICA


Khalid Javid 11/17/2023 3:46:00 PM

kindly share the dump
Anonymous


Na 8/9/2023 8:39:00 AM

could you please upload cfe fraud prevention and deterrence questions? it will be very much helpful.
Anonymous


shime 10/23/2023 10:03:00 AM

this is really very very helpful for mcd level 1
ETHIOPIA


Vnu 6/3/2023 2:39:00 AM

very helpful!
Anonymous


Steve 8/17/2023 2:19:00 PM

question #18s answer should be a, not d. this should be corrected. it should be minvalidityperiod
CANADA


RITEISH 12/24/2023 4:33:00 AM

thanks for the exact solution
Anonymous


SB 10/15/2023 7:58:00 AM

need to refer the questions and have to give the exam
INDIA