Consensus and Coordination Algorithms Questions

How independent nodes agree on shared state: Paxos and Raft, leader election, quorum reads and writes, distributed locks, coordination services such as ZooKeeper or etcd, and Byzantine fault tolerance for replicas that cannot be trusted. Covers split-brain avoidance, fencing tokens, and the cost of coordination on throughput and latency. Frames when consensus is required versus when it can be designed away.

MediumTechnical
37 practiced

Given N=5 replicas, quorum read size R=3 and write size W=3, estimate qualitatively how availability changes if each node independently has probability p of being unreachable. Explain how increasing W affects write availability and read latency. You don’t need to compute exact formulas but explain the reasoning and give numeric intuition for p=0.05 and p=0.2.

HardTechnical
43 practiced

How would you test that a 5-node Raft cluster keeps its safety guarantees under real failures: network partitions, message loss, delayed messages, disk stalls, and process pauses? What would you monitor, and what would tell you a correctness regression had crept in?

HardSystem Design
46 practiced

Design a multi-region consensus strategy for propagating a configuration change (for example, a pricing or routing rule) so that the change takes effect in every region within 2 seconds, without producing split-brain during a network partition. Compare a strongly-consistent approach such as Paxos or Raft against a faster approach that pins a leader and uses short-lived leases, and say which you would recommend and why.

HardSystem Design
37 practiced

Your organization needs a ZooKeeper-like coordination service for multi-region microservices, supporting ephemeral locks, distributed barriers, and leader election with sub-second latencies. Describe replica placement, the read and write path for each primitive, how you would handle failover, and how you would keep ephemeral operations low-latency.

EasyTechnical
50 practiced

What role do heartbeats and failure detectors play in leader-based distributed systems? Describe the difference between a heartbeat message and a full liveness check, and how timeout selection affects detection speed versus false positives.

Unlock Full Question Bank

Get access to all 44 Consensus and Coordination Algorithms interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.