InterviewStack.io LogoInterviewStack.io

Consistency Models and Distributed Databases Questions

Data correctness across distributed systems: strong versus eventual consistency, the CAP and PACELC trade-offs, consensus and quorum reads/writes, and consistency-versus-availability decisions. Covers how distributed databases reconcile replicas and what guarantees applications can rely on. A staple of distributed-systems and architecture interviews.

MediumTechnical
89 practiced

Compare ACID guarantees with the BASE model (Basically Available, Soft state, Eventually consistent) used by many distributed and NoSQL systems. Discuss the trade-offs in latency, availability, and developer complexity, and give examples of applications that can tolerate eventual consistency along with techniques to manage the resulting complexity.

HardTechnical
78 practiced

A multi-master cluster experiences a network partition resulting in split-brain: both sides keep accepting local writes. Describe the operational steps you would take to contain the problem, determine which data is authoritative, reconcile the diverged writes, and restore normal operation while minimizing data loss and customer impact.

EasyTechnical
98 practiced

What is eventual consistency? Using a food-delivery-style app as your running example, describe one workflow where eventual consistency is acceptable (for example, order-history or delivery-analytics replication) and one where it is not (for example, capturing a payment). Explain what you would actually do to reduce the business risk created by the gap between when a write happens and when every reader sees it.

MediumTechnical
72 practiced

Explain read-repair and anti-entropy (background) repair in replicated stores. Compare their roles, their performance impacts, and when you would tune one over the other. Cover the operational side too: how you would schedule and prioritize background repair at scale, how you would detect divergence cheaply across millions of keys, and what you would monitor to know it is working.

MediumTechnical
100 practiced

Deep-dive: discuss how different consistency models (strong consistency, read-your-writes, eventual consistency, monotonic reads) affect the correctness and perception of aggregated BI metrics. For each model, give a concrete example scenario where it could mislead users, and propose mitigation approaches (UI annotations, reconciliation windows, read-model choices) a BI team can actually implement.

Unlock Full Question Bank

Get access to all 15 Consistency Models and Distributed Databases interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.