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.

HardTechnical
38 practiced

A scheduled job running across many service instances must always have exactly one active leader, in a data-center environment prone to network partitions. How would you implement this, and how would you handle split-brain and safe failover?

MediumSystem Design
49 practiced

Design a follower-reads optimization for a strongly-consistent key-value system that allows slightly stale reads from followers while guaranteeing clients can request fresher data when needed. Describe API semantics, staleness bounds, and how you would ensure monotonic reads and session guarantees.

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
44 practiced

When would you recommend using strong-consensus protocols such as Raft or Paxos versus eventual-consistency approaches? As a Solutions Architect, compare latency, throughput, failure modes, operational overhead, and appropriate use cases like metadata management versus user-facing high-volume data.

EasyTechnical
51 practiced

Given N replicas, explain how read quorum size R and write quorum size W interact to provide strong consistency. Provide the general condition and walk through a concrete example for N=5: list at least two (R, W) pairs that guarantee linearizability and show why the intersection property holds.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.