Data Consistency and Distributed Transactions Questions

Maintaining correctness of state across services and replicas: eventual consistency, conflict resolution (last-write-wins, CRDTs, vector clocks), the saga pattern, two-phase commit, and idempotency keys for exactly-once effects. Covers when to trade strict consistency for availability and how to reason about read-your-writes and monotonic guarantees. Focuses on the application/service layer rather than storage-engine internals.

MediumTechnical
33 practiced

Design the UX and engineering approach to expose eventually-consistent data to end users while minimizing confusion and incorrect actions. Walk through a concrete example: what should the interface actually show while the data might still be catching up, and what should the ACTING user's own experience look like versus everyone else's?

MediumTechnical
35 practiced

Discuss the trade-offs between throughput and consistency when designing a service that requires high write throughput. What metrics would you collect to quantify the trade-off, and what patterns let you move some operations to eventual consistency while preserving correctness on the critical paths?

HardTechnical
56 practiced

Explain why two-phase commit (2PC) can block indefinitely and why three-phase commit (3PC) is rarely used in practice despite being designed to fix that. What non-blocking alternatives exist for cross-shard transactions, and how do they compare on safety, liveness, performance, and operational complexity?

HardSystem Design
32 practiced

An application needs strongly consistent (linearizable) behavior for some operations and can tolerate eventual consistency for others within the same system. How would you design the APIs and data partitioning so clients can choose the right consistency level per operation, without causing data corruption or excessive complexity?

EasyTechnical
33 practiced

Define Conflict-free Replicated Data Types (CRDTs) and explain the difference between state-based (CvRDT) and operation-based (CmRDT) CRDTs. Walk through how a couple of common CRDT types merge, and give two realistic use cases where you'd recommend them.

Unlock Full Question Bank

Get access to all 46 Data Consistency and Distributed Transactions interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.