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
- 1Heartbeats cannot be sent over TCP because the connection blocks while a large heartbeat payload is still transmitting
- 2A consensus quorum prevents two nodes from simultaneously believing they are leader (split-brain)
- 3Consensus protocols are faster than heartbeats, because a quorum round-trip completes before a heartbeat timeout elapses
- 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.