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.

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.

HardTechnical
50 practiced

Given high availability requirements during possible network partitions, explain how you would choose quorum sizes and read/write routing to meet specific RTO/RPO targets while balancing consistency (CAP trade‑offs). Provide example quorum configurations and practical implications for latency, throughput and data correctness.

EasyTechnical
48 practiced

Why does a distributed database need leader election? Describe common algorithms and systems used for it (Raft, Paxos, ZooKeeper, etcd), how leader election affects availability, and what an architect must consider during network partitions and leader churn.

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 23 Consensus and Coordination Algorithms interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.