All challenges
Multiple ChoiceBeginner 45s

Leader election with consensus

Why do distributed leader elections typically rely on a consensus protocol (Raft/Paxos) rather than a simple heartbeat timeout?
Options
  1. 1Heartbeats cannot be sent over TCP because the connection blocks while a large heartbeat payload is still transmitting
  2. 2A consensus quorum prevents two nodes from simultaneously believing they are leader (split-brain)
  3. 3Consensus protocols are faster than heartbeats, because a quorum round-trip completes before a heartbeat timeout elapses
  4. 4Heartbeats cannot detect network partitions, so a merely slow node is always indistinguishable from one that has crashed

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle