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
38 practiced

Explain how distributed deadlocks can arise when multiple 2PC coordinators interact with overlapping resource managers. Propose an approach to detect and resolve this class of deadlock in production.

MediumTechnical
31 practiced

Design a mechanism to provide 'read-your-writes' consistency to end users when reads are served through API proxies, caches, or CDNs. What approaches could you use, and what are the latency, cache-hit-rate, and availability trade-offs between them?

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?

HardSystem Design
38 practiced

Design an architecture for coordinating cross-service transactions in a distributed data platform where ACID guarantees across services are infeasible. Walk through how you would make forward progress safely, detect when something has gone wrong, and recover, so the platform reaches a consistent state without ever needing a single distributed transaction across every participant.

HardSystem Design
35 practiced

Design a conflict-resolution framework for complex JSON documents used in a distributed system. Documents contain nested objects, arrays, and fields whose correct merge behavior varies by field, some should replace, some should combine. Describe the metadata you would attach, how you would let different fields merge differently, and your fallback strategy for a conflict no automatic rule can safely resolve.

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.