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.

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.

HardSystem Design
72 practiced

Design a globally-distributed relational database that must support serializable transactions and 100,000 transactions per second across continents with low latency. Walk through your overall architecture: how you achieve global ordering or consensus for a transaction, how you handle clocks or timestamps across regions, and your commit protocol. Name at least one real production system whose design is close to your approach, explain what makes that design work, and how you would measure and mitigate cross-region latency.

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

HardSystem Design
79 practiced

Design a key-value service API and internal architecture that supports configurable per-key consistency levels: linearizable, causal, and eventual. Requirements: handle 10,000 requests per second per region, replicate across multiple regions, let a caller tune consistency per key, and keep the client-library ergonomics simple. Describe the components, client behavior, failure handling, and how you route or replicate data for each consistency tier.

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.