InterviewStack.io LogoInterviewStack.io

Distributed Systems Fundamentals Questions

Core theory that underpins any multi-node system: the CAP and PACELC theorems, consistency models (strong, causal, eventual), partitioning, replication, and the fundamental tradeoffs between latency, availability, and consistency. Covers how network partitions, clock skew, and partial failure change the reasoning compared to single-node systems. This is the vocabulary layer every distributed design question builds on.

HardTechnical
78 practiced

A system serves linearizable reads from a single leader to guarantee strong consistency, but read latency from remote regions is high. Propose at least three ways to reduce that latency for reads that don't strictly need the freshest possible value, while preserving strong guarantees for the reads that do.

EasyTechnical
121 practiced

A less technical stakeholder asks you: 'what is eventual consistency, and how will it affect what users actually see?' Give a plain-language explanation and list three concrete UX impacts or edge cases (for example: duplicate-looking actions, a change that briefly appears to disappear or revert) that a product team should plan for.

HardTechnical
61 practiced

Walk through how Raft's log replication actually works end to end: terms, leader election, AppendEntries, the commit rule, and log compaction via snapshotting. Explain, in your own words rather than a formal proof, why the majority-commit rule combined with the log-matching property prevents two leaders from ever committing conflicting entries at the same log position.

HardTechnical
64 practiced

Implement (pseudocode is fine) the leader election portion of Raft: the election timeout, candidate state, and vote counting. Explain how the algorithm avoids split votes, and discuss the trade-off between a short and a long election timeout.

MediumTechnical
75 practiced

Define and contrast strong (linearizable), sequential, causal, and eventual consistency. For each, give one practical system example and describe one anomaly that model does NOT rule out that a stronger model would.

Unlock Full Question Bank

Get access to all 26 Distributed Systems Fundamentals interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.