InterviewStack.io LogoInterviewStack.io

CAP Theorem and Consistency Models Questions

Understand the CAP theorem and how Consistency, Availability, and Partition Tolerance interact in distributed systems. Know different consistency models including strong consistency such as linearizability, eventual consistency, causal consistency, and session consistency, and how to apply them to different use cases. Be familiar with consensus protocols and distributed coordination primitives such as Raft and Paxos, quorum reads and writes, two phase commit and when to use them. Understand trade offs between consistency and availability under network partitions, patterns for hybrid approaches where different data uses different guarantees, and the product and developer experience implications such as latency, stale reads, and API contract clarity.

HardTechnical
23 practiced
Describe an approach to implement 'read-repair' proactively (background reconciliation) in a distributed store without impacting foreground read latency. How would you schedule repairs, prioritize hot keys, and ensure repairs converge safely?
MediumTechnical
30 practiced
Explain idempotency in distributed write paths. Provide at least three strategies for ensuring idempotent writes from mobile clients in the presence of retries and partitions, and discuss how each interacts with consistency guarantees.
MediumTechnical
39 practiced
Design a monitoring dashboard and SLOs to detect consistency regressions for a replicated key-value store. Specify at least five metrics or alerts that would help catch issues like stale reads, write loss, or split-brain early.
MediumTechnical
28 practiced
Implement a simple vector clock comparison function in Python. Given two vector clocks represented as dicts, return -1 if clock A happened-before B, 1 if A happened-after B, 0 if concurrent, and 2 if equal. Assume keys are node ids and missing entries imply zero.
MediumTechnical
24 practiced
Explain how vector clocks can be used for conflict detection and why they do not always provide a deterministic conflict resolution. Discuss how you would integrate vector clocks with application-level merge logic.

Unlock Full Question Bank

Get access to hundreds of CAP Theorem and Consistency Models interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.

40+ CAP Theorem and Consistency Models Interview Questions & Answers (2026) | InterviewStack.io