Distributed Computing Expert
What are the Fallacies of Distributed Computing? Name at least three and explain how ignoring them leads to system failure.
Select the correct answer
Explain the difference between 'Horizontal Scaling' and 'Vertical Scaling' from a state-management perspective.
Select the correct answer
What is an RPC, and what challenges arise from treating a remote call like a local function call?
Select the correct answer
What is the difference between the request/response and publish/subscribe coordination paradigms?
Select the correct answer
Why do we build distributed systems in the first place: what problems do scalability, fault tolerance, low latency, and geographic distribution solve?
Select the correct answer
What is partial failure, and why does it make distributed systems fundamentally harder to reason about than single-machine programs?
Select the correct answer
Explain the Two Generals Problem. Why can two nodes never be 100% certain they have reached a common agreement over an unreliable network?
Select the correct answer
What is the difference between synchronous and asynchronous communication models in distributed systems, and what are the trade-offs?
Select the correct answer
Why do stateless services scale more easily than stateful ones, and how do we handle state when scaling horizontally?
Select the correct answer
What is the difference between Strong Consistency and Eventual Consistency? When would you choose one over the other?
Select the correct answer
Explain 'Read-Your-Writes' consistency. How would you implement it in a system with asynchronous replication?
Select the correct answer
Explain the trade-off between Latency and Consistency in a system that is not currently experiencing a network partition.
Select the correct answer
What is the difference between Linearizability and Eventual Consistency? When is Eventual Consistency 'not enough'?
Select the correct answer
What are monotonic reads and monotonic writes consistency, and what anomalies do they prevent?
Select the correct answer
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 CAP theorem. In a real-world network partition, why is it technically impossible to choose both Consistency and Availability? Can you give an example of a 'CP' vs. an 'AP' system?
Select the correct answer
What is a 'Quorum' in a distributed system, and how do the values of N, R, and W affect consistency and availability?
Select the correct answer
Explain the relationship R + W > N. If I want to increase read throughput in a distributed database, how should I tune these variables, and what is the trade-off regarding consistency?
Select the correct answer
R + W ≤ N you can lose the strong-consistency guarantee.Why is 'Partition Tolerance' generally considered non-negotiable in distributed systems?
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 the Byzantine Generals Problem, and how does it differ from a simple 'fail-stop' or 'crash' failure? When would a software engineer actually need to care about Byzantine Fault Tolerance (BFT)?
Select the correct answer
What is graceful degradation, and how does a distributed system stay partially functional when components fail?
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 redundancy, and how does replication contribute to availability versus consistency?
Select the correct answer
Explain how Consistent Hashing works. How does it minimize data movement when a node is added or removed compared to a simple hash(key) mod N approach?
Select the correct answer
mod N, adding a node remaps only one key while consistent hashing remaps every key evenlyWhat are Virtual Nodes in consistent hashing, and what problem do they solve regarding data distribution?
Select the correct answer
What are the trade-offs between synchronous and asynchronous replication? If you choose 'Semi-synchronous' replication, what failure scenario are you trying to protect against?
Select the correct answer
Explain the difference between Leader-based, Multi-leader, and Leaderless replication.
Select the correct answer
What is the difference between Range Partitioning and Hash Partitioning, and what are the tradeoffs regarding range queries vs. load balancing?
Select the correct answer
What is data rebalancing when partitions are added or removed, and what strategies avoid moving too much data at once?
Select the correct answer
How does a request get routed to the correct partition or shard, and what are the trade-offs between different routing approaches?
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 is a Lamport Clock, and how does it differ from a Vector Clock? What specific problem do Vector Clocks solve that Lamport Clocks cannot?
Select the correct answer
Explain the 'Happens-Before' relationship. How do we determine if two events are concurrent?
Select the correct answer
Why can't we rely on physical system clocks (NTP) for ordering events in a distributed system? What is 'clock skew' and how does it affect distributed logs?
Select the correct answer
What is a Lamport Clock, and how does it allow us to determine the partial ordering of events without a synchronized physical clock?
Select the correct answer
What is Last-Write-Wins (LWW), and why is it dangerous in systems where physical clocks are not perfectly synchronized?
Select the correct answer
Explain the concept of 'Clock Skew' and its impact on distributed transaction ordering.
Select the correct answer
Explain how a Lamport Clock works. If two events have the same Lamport timestamp, can we determine which one happened first? Why or why not?
Select the correct answer
How do Vector Clocks allow us to detect 'causal' relationships between events? In what scenario would a Vector Clock show that two writes are 'concurrent' or 'conflicting'?
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 is 'Replication Lag,' and what specific anomalies can a user see because of it? How would you design a system to prevent a user from seeing their own update disappear after a refresh?
Select the correct answer
What are the practical risks of Eventual Consistency? How do concepts like 'Read-your-writes' or 'Monotonic Reads' help mitigate the poor user experience of eventual consistency?
Select the correct answer
What are the trade-offs of Eventual Consistency, and how does a system eventually converge if multiple nodes receive conflicting updates?
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
Explain the high-level roles in the Raft consensus algorithm (Leader, Follower, Candidate). How does the system ensure that two leaders are never elected for the same term?
Select the correct answer
What is 'Leader Election', and what happens to a distributed system when the leader becomes partitioned from the followers?
Select the correct answer
How do heartbeats and election timeouts work together in a consensus protocol? What happens if the election timeout is set too low or too high?
Select the correct answer
What are the different message ordering guarantees, FIFO, causal, and total order, and when does each matter?
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.Why is Idempotency critical in distributed systems, and how would you design an idempotent API?
Select the correct answer
Explain the Two-Phase Commit (2PC) protocol. What is its biggest blocking weakness if the coordinator fails?
Select the correct answer
What is the Saga pattern, and how does it maintain data consistency without using a distributed lock?
Select the correct answer
Explain the difference between 'At-least-once', 'At-most-once', and 'Exactly-once' delivery guarantees.
Select the correct answer
What is the Transactional Outbox pattern, and how does it solve the problem of atomically updating a database and sending a message to another system?
Select the correct answer
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
Explain the Gossip (Epidemic) Protocol. How does it allow a cluster of thousands of nodes to maintain a membership list without a central registry?
Select the correct answer
What is the 'Split Brain' problem, and how do quorums and fencing tokens prevent it?
Select the correct answer
What is failover, and how does a system detect failure and promote a standby without causing inconsistency?
Select the correct answer
What is service discovery, and why is it a coordination problem in dynamic distributed systems?
Select the correct answer
What is the coordinator/worker (master/worker) pattern, and what are the risks of having a single coordinator?
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 is the difference between 'Batch Processing' and 'Stream Processing' at a conceptual level?
Select the correct answer
How does load balancing work as a distributed-systems building block, and what are common strategies for distributing requests across nodes?
Select the correct answer
round-robin, least-connections, or consistent hashing.Explain the 'Thundering Herd' problem. How do jitter and exponential backoff help mitigate it?
Select the correct answer
Explain the MapReduce execution model. Why is 'Data Locality' a core principle of its design?
Select the correct answer
Explain 'Backpressure'. Why is it critical for a downstream service to signal its inability to keep up with requests?
Select the correct answer
What is a distributed file system like GFS or HDFS at a conceptual level, and how does it achieve fault tolerance for large data?
Select the correct answer
Why do retries in a distributed system need backoff and jitter, and how can naive retries make an outage worse?
Select the correct answer
What are 'Hedged Requests' and how do they help reduce tail latency in a distributed environment?
Select the correct answer