New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Docker DCA Exam - Topic 2 Question 121 Discussion

Actual exam question for Docker's DCA exam
Question #: 121
Topic #: 2
[All DCA Questions]

Seven managers are in a swarm cluster.

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

Solution: 4-2-1

Show Suggested Answer Hide Answer
Suggested Answer: B

= This is not how the seven managers should be distributed across three datacenters or availability zones.A swarm cluster is a group of Docker hosts that are running in swarm mode and act as managers or workers1.A manager node is responsible for maintainingthe swarm state and orchestrating the services2.A swarm cluster needs a quorum of managers to operate, which means a majority of managers must be available and able to communicate with each other3.

The problem with distributing the seven managers as 4-2-1 is that it creates a split-brain scenario, where the cluster can lose the quorum if one datacenter or availability zone fails. For example, if the datacenter with four managers goes down, the remaining three managers will not have enough votes to form a quorum, and the cluster will stop functioning.Similarly, if the datacenter with one manager goes down, the cluster will lose the tie-breaking vote and will not be able to elect a leader4.

A better way to distribute the seven managers across three datacenters or availability zones is to use 3-2-2, which ensures that the cluster can tolerate the failure of any one datacenter or availability zone and still maintain the quorum. For example, if the datacenter with three managers goes down, the remaining four managers will have enough votes to form a quorum and elect a leader.Similarly, if the datacenter with two managers goes down, the remaining five managers will have enough votes to form a quorum and elect a leader4.Reference:

Swarm mode overview | Docker Docs

Administer and maintain a swarm of Docker Engines | Docker Docs

Raft consensus in swarm mode | Docker Docs

Docker Swarm: How to distribute managers across availability zones? - Stack Overflow


Contribute your Thoughts:

0/2000 characters
Staci
5 days ago
I think we practiced a similar question where we had to balance managers across zones. I feel like 3-3-1 might be safer.
upvoted 0 times
...
Rocco
10 days ago
I remember something about distributing workloads evenly, but I'm not sure if 4-2-1 is optimal for fault tolerance.
upvoted 0 times
...
Remona
15 days ago
Ah, I see what they're going for here. The 4-2-1 distribution balances the load across the datacenters while maintaining redundancy. Seems like a solid approach to me.
upvoted 0 times
...
Gregg
20 days ago
I'm a bit unsure about this one. Is there a specific reason why the 4-2-1 split is the optimal solution? I want to make sure I understand the logic before committing to an answer.
upvoted 0 times
...
Shawnda
25 days ago
The 4-2-1 distribution makes sense to me. Spreading the managers out evenly across the datacenters should help ensure high availability and redundancy.
upvoted 0 times
...
Soledad
1 month ago
Okay, let me think this through. We have 7 managers total, and we need to split them across 3 datacenters. The 4-2-1 solution seems logical, but I want to make sure I understand the reasoning behind it.
upvoted 0 times
...
Cherrie
1 month ago
Hmm, this seems straightforward. I'd start by thinking through the constraints - we need to distribute the 7 managers across 3 datacenters. The 4-2-1 solution looks like a good approach.
upvoted 0 times
...

Save Cancel