nerdexam
Docker

DCA · Question #35

When seven managers are in a swarm cluster how would they be distributed across three datacenters or availability zones?

The correct answer is B. 3-2-2. For a Docker Swarm cluster with seven managers distributed across three datacenters, a 3-2-2 distribution ensures quorum is maintained even if one datacenter completely fails.

Submitted by tarun92· Apr 18, 2026Container Orchestration

Question

When seven managers are in a swarm cluster how would they be distributed across three datacenters or availability zones?

Options

  • A5-1-1
  • B3-2-2
  • C3-3-1
  • D4-2-1

How the community answered

(23 responses)
  • A
    4% (1)
  • B
    83% (19)
  • C
    4% (1)
  • D
    9% (2)

Why each option

For a Docker Swarm cluster with seven managers distributed across three datacenters, a 3-2-2 distribution ensures quorum is maintained even if one datacenter completely fails.

A5-1-1

A 5-1-1 distribution would lose quorum if the datacenter with 5 managers failed, leaving only 2 managers, which is less than the required 4.

B3-2-2Correct

In a Docker Swarm, quorum requires more than half of the manager nodes to be available. For 7 managers, `(7/2) + 1 = 4.5`, so at least 4 managers must be online. A 3-2-2 distribution ensures that if any single datacenter fails (e.g., losing 3 managers, or 2 managers), at least 4 managers will remain operational in the other two datacenters, thereby preserving quorum.

C3-3-1

A 3-3-1 distribution would result in 4 managers remaining if one of the 3-manager datacenters failed, which is the bare minimum for quorum but less resilient than an even spread.

D4-2-1

A 4-2-1 distribution would lose quorum if the datacenter with 4 managers failed, leaving only 3 managers, which is less than the required 4.

Concept tested: Docker Swarm manager quorum and high availability

Source: https://docs.docker.com/engine/swarm/admin_guide/#add-or-remove-nodes

Topics

#Docker Swarm#High Availability#Manager Nodes#Quorum

Community Discussion

No community discussion yet for this question.

Full DCA Practice