PPractick

System design interview question

Design a distributed locking service (Chubby)

Hard · System design (HLD) · Company tags: Google

The prompt

"Design a distributed lock service — something like Chubby or ZooKeeper. Clients across a fleet acquire locks to coordinate: leader election, exclusive access to a resource, configuration that everyone must agree on. It must be correct even when nodes fail and networks partition."

What this round really tests

consensus and the limits of distributed locking. The single most important signal is whether the candidate knows that a distributed lock does not guarantee mutual exclusion on its own — a client can hold a lock, get paused or partitioned, and have its lease expire while it still believes it holds the lock. The fix is fencing tokens, and candidates who do not raise this have a dangerous gap.

Clarifying questions worth asking

Practise questions like this with a real engineer

On Practick another engineer interviews you live for 60 minutes on a question from this bank. They have the full interviewer guide beside the call: the answers to your clarifying questions, the numbers to hand out, a ladder of follow-ups and a scoring rubric. You get the model solution once the session settles. It is free: interview someone for an hour and you have earned your own.

Book a free mock interview

Related questions

All 132 system design interview questions

System design mock interviews · DSA interview questions · Free mock interview practice · Browse interviewers · Sign in