Distributed Computing Senior
Compare Strong Consistency vs. Causal Consistency. When would you prefer the latter?
Select the correct answer
What is the difference between Linearizability and Serializability, and can a system be both?
Select the correct answer
What is the difference between Linearizability and Sequential Consistency? Which one is harder to achieve and why?
Select the correct answer
Explain the PACELC theorem. How does it extend the CAP theorem, and what does it tell us about a system when there is no network partition?
Select the correct answer
What is a Phi-Accrual Failure Detector, and how does it differ from a simple heartbeat timeout?
Select the correct answer
What is a 'Lease' in distributed systems, and how does it improve upon a standard heartbeat for failure detection?
Select the correct answer
What is a cascading failure in a distributed system, and what techniques like load shedding help contain it?
Select the correct answer
What are the omission and timing failure models, and how do they sit between crash and Byzantine failures?
Select the correct answer
What is a Hotspot or Hot Key in a sharded system, and how can you detect and mitigate it at the architectural level?
Select the correct answer
What is chain replication, and what are its trade-offs compared to leader-based replication?
Select the correct answer
What is anti-entropy, and how do read-repair and Merkle trees help replicas converge in a leaderless system?
Select the correct answer
What are sloppy quorums and hinted handoff, and how do they improve availability in Dynamo-style systems?
Select the correct answer
What are Hybrid Logical Clocks (HLC), and why are they used in modern databases like CockroachDB or Spanner?
Select the correct answer
What is Clock Skew and Clock Drift, and how do these physical realities impact distributed algorithms like Spanner's TrueTime?
Select the correct answer
What is TrueTime in Google Spanner, and how does bounding clock uncertainty enable externally consistent transactions?
Select the correct answer
What are CRDTs (Conflict-free Replicated Data Types), and how do they allow for concurrent updates without a central coordinator?
Select the correct answer
What is the FLP Impossibility Result, and why is it impossible to guarantee consensus in a purely asynchronous system if even one node can fail?
Select the correct answer
What is the difference between Paxos and Raft, and why is Raft often preferred for practical implementations despite Paxos being the theoretical gold standard?
Select the correct answer
What is the role of a 'Term' or 'Epoch' in consensus protocols like Raft or Paxos?
Select the correct answer
In the context of distributed algorithms, what is the difference between a 'safety' property and a 'liveness' property? Why is it often impossible to guarantee both in an asynchronous system (FLP impossibility)?
Select the correct answer
What is the difference between basic Paxos and Multi-Paxos, and why is Multi-Paxos more practical for replicated state machines?
Select the correct answer
What is the ZAB protocol used by ZooKeeper, and how does it differ from Paxos and Raft?
Select the correct answer
What is state machine replication, and why is a replicated log central to building consistent distributed systems?
Select the correct answer
What is total order broadcast (atomic broadcast), and why is it considered equivalent to consensus?
Select the correct answer
What is the Chandy-Lamport algorithm for capturing a consistent global snapshot of a distributed system?
Select the correct answer
How does PBFT achieve consensus in the presence of Byzantine nodes, and how many faulty nodes can it tolerate?
Select the correct answer
f faulty of 3f+1 nodes.f crashed nodes out of 2f+1 total nodes.f faulty nodes out of 2f+1 total nodes.Compare 2PC vs. Sagas. When would you choose one over the other in terms of atomicity vs. availability?
Select the correct answer
What is the difference between 'At-least-once' and 'Exactly-once' delivery? Why is 'Exactly-once' often described as an abstraction rather than a literal network guarantee?
Select the correct answer
What is the Saga pattern, and how do 'Choreography' and 'Orchestration' compare in the context of long-running distributed transactions?
Select the correct answer
What is the Three-Phase Commit (3PC) protocol, and how does it attempt to solve the blocking problem of 2PC?
Select the correct answer
What is the TCC (Try-Confirm-Cancel) pattern, and how does it differ from a Saga?
Select the correct answer
What is distributed deadlock, and how can it be detected or prevented across multiple nodes?
Select the correct answer
Why is a simple 'distributed lock' often dangerous? Explain how 'Leases' and 'Fencing Tokens' solve the problem of a process holding a lock but being paused.
Select the correct answer
How do coordination services like ZooKeeper, etcd, and Chubby provide primitives such as locks and configuration, and why not build these yourself?
Select the correct answer
What is the SWIM protocol for membership and failure detection, and how does it improve on naive gossip?
Select the correct answer
What are 'Hedged Requests' and how do they help reduce tail latency in a distributed environment?
Select the correct answer