InterviewStack.io LogoInterviewStack.io

Data Consistency and Recovery Questions

Covers the spectrum of data consistency models used in distributed systems and the operational practices for detecting and recovering from inconsistency. Topics include strong consistency guarantees provided by atomicity, consistency, isolation, and durability style transactions and synchronous replication, and weaker models such as eventual consistency and causal consistency along with their read guarantees like read your writes and monotonic reads. Explain the trade offs between consistency, availability, and latency and how those trade offs influence architecture decisions, user experience, and cost. Discuss replication strategies including synchronous replication, asynchronous replication, and read replicas, and how replication modes affect staleness and failure behavior. Include coordination and consensus mechanisms for achieving stronger guarantees, for example leader based replication and consensus protocols, and distributed transaction approaches such as two phase commit. Cover operational concerns: how consistency choices change testing, deployment, monitoring, and incident response. Describe detection and recovery techniques for inconsistency such as validation checks, reconciliation and anti entropy processes, tombstones and conflict resolution strategies, use of vector clocks or conflict free replicated data types to resolve concurrent updates, point in time recovery and backups, and procedures for partial repairs, rollbacks, and replays. At senior levels also address how consistency decisions shape runbooks, alerting, and post incident analysis.

HardTechnical
81 practiced
CRDTs provide strong convergence guarantees, but they are not a silver bullet. Explain limitations of CRDTs: operations that cannot be made commutative and application semantics that CRDTs cannot express. Provide examples of data types or business invariants where consensus or linearizability is required instead.
HardTechnical
103 practiced
Senior leadership: How should consistency choices (strong vs eventual, sync vs async replication, CRDTs vs consensus) shape runbooks, alerting, SLOs, post-incident analysis, and cross-team responsibilities? Provide concrete examples of runbook entries and escalation paths that differ by consistency model.
HardSystem Design
93 practiced
Design a rollback and replay mechanism using a write-ahead log (WAL) that allows partial repair across replicas after a corruption event. Explain how to ensure idempotency, handle gaps in the WAL, determine canonical ordering, and coordinate replay without further corrupting other replicas.
EasyTechnical
71 practiced
Define the read guarantees 'read-your-writes' and 'monotonic reads' in distributed storage systems. Provide a short example for each showing client actions and server responses, and explain how an SRE might instrument or enforce these guarantees at the client or middleware layer.
MediumTechnical
72 practiced
You receive reports of stale reads for a small percentage of users. Outline a step-by-step troubleshooting plan to identify root cause: what logs, traces, metrics, and checks would you run; how to reproduce; and how to validate whether the issue stems from replication lag, caching, DNS, or client behavior.

Unlock Full Question Bank

Get access to hundreds of Data Consistency and Recovery interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.