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.

EasyTechnical
35 practiced

What is split-brain in the context of a replicated cluster? Describe typical causes, the consequences for correctness and availability, and how you would prevent or mitigate it in a production system.

HardTechnical
38 practiced

Compare using an external consensus system (e.g., etcd or Consul) vs building a lightweight custom leader-coordinator for configuration propagation and leader election for a control-plane service. Evaluate reliability, operational burden, latency, complexity, and development cost.

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.

HardSystem Design
42 practiced

Your team needs a global coordination service for leader election and configuration discovery, without relying on a cloud-managed service. Compare Paxos and Raft as the implementation choice, define leader lease semantics, and explain how you would handle network partitions, log compaction and snapshotting, and safe cluster bootstrap and scaling.

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.