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.

HardTechnical
36 practiced

Design a comprehensive test strategy to verify the correctness of a CRDT-based collaborative editor at scale. What testing techniques would you use to catch subtle merge bugs and regressions before they reach production?

HardSystem Design
39 practiced

Design an audit trail for sagas that proves, for any transaction ID, whether the saga completed successfully or was compensated. It must preserve operation ordering and causality, allow efficient queries by transaction ID, minimize storage overhead, and satisfy retention requirements for auditors.

EasyTechnical
32 practiced

Explain how vector clocks detect concurrent updates in an eventually-consistent key-value store. Give a small example where two nodes concurrently update the same key and produce divergent versions, and contrast that with last-write-wins (LWW) conflict resolution: where is LWW acceptable, and where does it cause data loss?

MediumTechnical
37 practiced

Compare last-writer-wins (LWW) conflict resolution against CRDTs for achieving eventual consistency. In what scenarios is LWW acceptable, and when do CRDTs become the better fit? What operational costs does adopting CRDTs add (metadata growth, merge cost)?

MediumTechnical
38 practiced

Explain monotonic reads and monotonic writes and how they differ. Describe how you would design automated tests that programmatically verify a distributed store meets monotonic reads and monotonic writes properties under injected failures (partitions, delays). Outline test harness components and example assertions.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.