InterviewStack.io LogoInterviewStack.io

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.

EasyTechnical
51 practiced

Explain last-write-wins (LWW) conflict resolution in plain terms. Describe two scenarios where it's an acceptable resolution strategy and two where it's dangerous.

HardSystem Design
33 practiced

An enterprise needs eventual consistency between service A and service B using events. Design an idempotent event processing and reconciliation strategy that guarantees convergence and supports replays, while preserving ordering where necessary.

MediumTechnical
27 practiced

Explain the difference between read-after-write guarantees and causal consistency. Give a concrete multi-service example where causal consistency is required for correctness, and describe how you would design for and verify it in production.

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?

MediumTechnical
27 practiced

You are on-call: users report duplicate charges even though requests include idempotency keys. Provide a prioritized debugging checklist to find the root cause: logs/traces to inspect, DB constraints, idempotency key collisions or TTL expiry, races in key insertion, message replay sources, third-party gateway callbacks, and immediate remediation steps.

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.