nerdexam
Docker

DCA · Question #70

Will this configuration achieve fault tolerance for managers in a swarm? Solution: only two managers, one active and one passive.

The correct answer is B. No. A configuration of only two Docker Swarm managers, even with active/passive roles, does not achieve fault tolerance.

Submitted by joshua94· Apr 18, 2026Container Orchestration

Question

Will this configuration achieve fault tolerance for managers in a swarm? Solution: only two managers, one active and one passive.

Options

  • AYes
  • BNo

How the community answered

(27 responses)
  • A
    19% (5)
  • B
    81% (22)

Why each option

A configuration of only two Docker Swarm managers, even with active/passive roles, does not achieve fault tolerance.

AYes

An active/passive setup for managers with only two nodes means that if the active node fails, the swarm loses its quorum, even if the passive node is ready to take over, because 1 out of 2 is not a majority required by Raft.

BNoCorrect

Docker Swarm managers rely on the Raft consensus algorithm, which requires a strict majority (quorum) of nodes to operate. With only two managers, if one node fails, only one manager remains, which is not a majority of two (a majority would be two managers), thereby preventing consensus and rendering the swarm inoperable. Raft inherently works best with odd numbers of nodes.

Concept tested: Docker Swarm manager fault tolerance and Raft quorum

Source: https://docs.docker.com/engine/swarm/admin_guide/#add-manager-nodes-for-fault-tolerance

Topics

#Docker Swarm#Manager fault tolerance#Raft quorum#High availability

Community Discussion

No community discussion yet for this question.

Full DCA Practice