Questions: Linearizability

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

Alice writes value X to a linearizable key-value store and the write completes. She calls Bob and tells him to read the key. Bob issues a read. What does linearizability guarantee?

ANothing — linearizability only applies to operations from the same client
BBob will see value X, because Alice's write completed before Bob's read began, and linearizability ensures reads reflect all prior completed writes
CBob may or may not see X — linearizability only guarantees eventual consistency
DBob will see X only if Alice and Bob contact the same server replica
Question 2 Multiple Choice

A distributed lock service requires that if client A releases a lock and client B then acquires it, B is guaranteed to see all state written by A before the release. Which consistency model is required?

AEventual consistency — the data will propagate to B eventually
BSequential consistency — any total ordering is sufficient for lock correctness
CLinearizability — real-time ordering must be preserved so B is guaranteed to see A's writes
DCausal consistency — tracking causally related operations is sufficient
Question 3 True / False

A linearizable distributed system is expected to use a single physical server to maintain its 'single copy' behavioral guarantee.

TTrue
FFalse
Question 4 True / False

Sequential consistency and linearizability both produce a total order of operations, so they provide identical guarantees to distributed system clients.

TTrue
FFalse
Question 5 Short Answer

Why does achieving linearizability in a distributed system require consensus protocols like Paxos or Raft, and what does this cost?

Think about your answer, then reveal below.