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.

HardSystem Design
34 practiced

Describe a zero-downtime migration strategy to change a service's consistency model from strong to eventual. Include feature flags, dual-writes, read-path toggles, monitoring to verify correctness, and a rollback path if anomalies appear. Explain how you would validate data correctness throughout the migration.

MediumTechnical
38 practiced

Explain the differences between Lamport clocks, vector clocks, and logical timestamps in general. For each, state what it can and cannot detect (ordering versus true concurrency) and walk through a brief example of how it's updated on send and receive events.

HardSystem Design
35 practiced

Design a saga orchestrator that guarantees exactly-once external side effects (like sending notification emails or charging cards) in the presence of retries and orchestrator crashes. Include durable command logs, deduplication of outbound commands, transactional outbox patterns, compensating actions, idempotency tokens for external systems, and reconciliation mechanisms for failures.

MediumSystem Design
38 practiced

Design a saga orchestration for a multi-service order workflow (for example: Orders, Payments, Inventory, Shipping). Specify the normal-step flow and the compensating actions for failures, how you ensure idempotency of each step, how the orchestrator persists saga state and recovers from crashes, and the retry/backoff strategy.

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.

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.