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.

HardSystem Design
32 practiced

You need a repair system capable of rewinding and reapplying events across replicas to fix a logical bug introduced in the event-processing code. Design the mechanism to snapshot state, replay events in a safe order, ensure idempotence during reapply, and minimize user-visible disruption. Provide rollback and verification steps.

MediumSystem Design
38 practiced

Architect a transactional outbox pattern for reliably publishing domain events when committing a write to the primary database. Include the outbox table schema, the reader design (and how you'd compare a polling reader against a change-data-capture-based reader), ordering guarantees, idempotency handling on the consumer side, and how you would scale the reader for high throughput.

MediumTechnical
28 practiced

When is eventual reconciliation (periodic jobs to reconcile and fix inconsistencies) acceptable versus requiring strong transactional boundaries? Provide decision criteria (RPO/RTO, regulatory constraints, user impact) and concrete examples where reconciliation is appropriate and where it is not.

MediumTechnical
28 practiced

Explain how event sourcing with CQRS can be applied to manage consistency in a microservices architecture. Discuss what it genuinely buys you and what it costs you operationally, and where you'd recommend adopting this pattern versus not.

HardSystem Design
34 practiced

Design a collaborative real-time document editing service and choose a conflict-resolution strategy. Compare Operational Transformation (OT) and CRDT-based approaches on convergence guarantees, metadata growth, undo/redo complexity, latency of local edits, and support for offline editing at scale, and justify your choice.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.