Distributed Systems interview questions
100 System Design practice questions. Read what a strong answer covers, then practise it out loud against the clock.
Practise Distributed Systems questionsBeginner
- A cron job runs on every server
- A retry charged the customer twice
- A slow recommendations service
- Cascading failures
- Choosing timeout values
- Circuit breaker pattern
- Cluster membership
- Config change reaches servers at different times
- Coordination services
- Crash faults vs Byzantine faults
- Distributed locks
- Eventual consistency in practice
- Exponential backoff with jitter
- Fallacies of distributed computing
- Generating unique IDs on many servers
- Gossip protocols
- Heartbeats and failure detection
- How many nodes in a consensus cluster?
- Leader election
- Network partition
- Node marked dead but still running
- Ordering with sequence numbers
- Partial failure
- Requests fail during shutdown
- Retries make an outage worse
- Service reports healthy but fails requests
- Two users see different values
- What makes a system distributed
- Why a timeout doesn't mean failure
- Why clocks are unreliable
- Why distributed transactions are hard
- Why idempotency is essential in distributed systems
- Why majorities matter
- Why replicate data across nodes
Intermediate
- Anti-entropy and Merkle trees
- Avoiding 2PC between services
- Cassandra nodes disagree on cluster state
- Cluster churn from autoscaling
- Consensus across regions is slow
- CRDT examples
- Designing an idempotent API
- Distributed rate limiting
- Events appear out of order in logs
- Fencing tokens
- How Raft works
- Hybrid logical clocks
- Is a Redis lock safe enough?
- Lamport timestamps
- Last-write-wins loses updates
- Leader election in Kubernetes
- Leases
- Lock services in practice
- Monotonic reads
- One failing region drags down others
- Paxos vs Raft
- Propagating deadlines across services
- Read repair
- Retry budgets
- Running exactly one instance of a service
- Standardising retries and timeouts across services
- Strong vs eventual for different features
- The consistency spectrum
- The FLP impossibility result
- The Two Generals problem
- Using hedged requests
- Vector clocks
- What should happen during a partition?
Experienced
- Adding fencing to an existing system
- CALM theorem
- Chain replication
- Changing consensus cluster membership
- Choosing a consistency level per query
- Consistent reads with a global cache
- Designing a strongly consistent counter for quotas
- Designing conflict resolution for user profiles
- Designing for a partition between app and database
- Distributed snapshot isolation
- Do you even need a distributed system?
- etcd cluster loses quorum
- Exactly-once processing, honestly
- Failover was never tested
- Finding rare distributed bugs
- Flexible quorums
- Gray failures
- Idempotency records in a global system
- Leader is slow but not dead
- Lease safety with clock drift
- Linearizable reads in Raft
- Lock contention limits throughput
- Long-running workflows across services
- One bad host causes high p99
- Phi-accrual failure detection
- Preventing double spending in a wallet
- Services disagree about order state
- Session guarantees
- Spanner and TrueTime
- Testing behaviour under network partitions
- The cost of linearizability
- Understanding a distributed outage
- Writes acknowledged but later missing