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
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.

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

Propose performance optimizations to increase the throughput of a Raft-backed replicated log running on modern SSDs. Explain the correctness and persistence trade-offs involved, and how you would tune the relevant parameters.

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.

MediumTechnical
43 practiced

You need a global configuration key-value store accessed by many microservices (feature flags, leader election, service discovery). Does this require consensus (e.g., Raft)? Explain the criteria you'd use to decide whether to use a consensus-backed service versus a lightweight eventually-consistent or database-backed alternative.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.