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.

HardTechnical
102 practiced

Two teams own services with conflicting requirements: Team A needs strong consistency on writes (which raises latency), Team B needs sub-50ms reads. Propose architecture and policy options (consistency models, API design, caching, eventual-consistency compromises) that reconcile both requirements while minimizing complexity and operational risk.

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.

HardTechnical
96 practiced

You need to reconcile diverging replicas in an eventually-consistent system once you already know they disagree. Walk through the conflict-RESOLUTION toolkit: vector clocks, last-write-wins (LWW), and CRDTs (Conflict-free Replicated Data Types). For each technique, describe a typical use case, an operational pitfall it carries at scale (for example, tombstone buildup or metadata growth), and how it affects what a client actually sees.

HardTechnical
78 practiced

Explain the CAP theorem and how CAP trade-offs actually manifest in real distributed databases (for example, Cassandra, MongoDB, CockroachDB, Spanner). For a financial payments system versus a shopping-cart analytics system, recommend consistency and availability settings (for example, quorum sizes, synchronous vs asynchronous replication) and justify your choices in terms of user experience and failure modes.

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.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.