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
31 practiced
Design a developer SDK for a distributed key-value store that surfaces consistency guarantees (strong, causal, eventual). The SDK should provide primitives to request guarantees, helpers for migrations, testing utilities to simulate partitions, and instrumentation hooks. Describe key API shapes and developer ergonomics.
MediumSystem Design
28 practiced
Design the replication and consistency approach for a globally-accessible shopping cart so users rarely lose items and have a pleasant UX. Discuss per-user data locality, conflict resolution, eventual vs strong guarantees, and how to handle offline clients and merges.
MediumTechnical
24 practiced
Describe Raft leader failover behavior: what happens to in-flight writes, how logs are reconciled, and which safety guarantees are preserved. As an SRE, what operational knobs and metrics do you tune to reduce failover-induced unavailability?
EasyTechnical
23 practiced
Explain quorum reads and writes in the context of N replicas. State the R + W > N rule, why it provides read-after-write safety, and describe a scenario where picking R and W poorly can cause unacceptable latency or unavailability.
HardSystem Design
29 practiced
Design caching and invalidation strategies for a high-throughput service that needs low-latency reads for most keys but strong consistency for a small fraction. Discuss choices: write-through caches, invalidation pub/sub, short TTLs, or client-side validation, and analyze their failure modes and operational costs.

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.