Card 1 of 40
Front. Real Time Order. A flag update finishes before another client begins reading it. What must a linearizable register return if nothing else writes the flag?
All 40 cards in this deck
1.Real Time Order
A flag update finishes before another client begins reading it. What must a linearizable register return if nothing else writes the flag?
The completed value. Linearizability preserves real-time order for non-overlapping operations on the modeled object.
2.Overlap Order
Two register replacements overlap in time. Must the earlier client timestamp determine their order?
No. Either order can be legal if all responses fit one valid sequential history and required real-time relationships are respected.
3.Session Position
How can a read replica support a user's read-your-writes requirement?
Carry the user's minimum write position and serve only after reaching it, or route elsewhere. A healthy replica may still be too far behind.
4.Multi Key Snapshot
Why do individually linearizable keys not automatically provide a two-key snapshot?
Each key has its own guarantee. A coherent joint read requires a transaction, snapshot, or other mechanism spanning the keys involved.
5.Majority Votes
A fixed seven-voter log needs a strict majority. What is the minimum deciding group?
Four voters: floor(7/2) + 1. The number is a quorum threshold, not a guarantee that four arbitrary stored copies establish every consistency property.
6.Quorum Versus Protocol
What does overlapping read and write quorums fail to establish on its own?
The complete read consistency contract. Version selection, concurrent writes, repair, and the actual read protocol still matter.
7.Reconfiguration
Why is replacing one voting group with an unrelated new group a protocol change?
Independent old and new majorities can disagree. The transition must preserve the quorum relationships required by the protocol's safety argument.
8.Persistent Vote
Why persist a consensus vote before acknowledging it?
After a crash, the voter must still know which candidate it supported in that term. Forgetting can violate the one-vote rule.
9.Fencing at Resource
Where should an ownership fencing token be enforced?
At the resource performing the protected effect. A coordinator's new owner record alone cannot stop a paused old worker from resuming.
10.Lease Clock
What must an exclusive-writer lease design say about time?
State its clock, expiration, pause, and communication assumptions. A lease label does not make unbounded clock error or delayed work harmless.
11.Ambiguous Timeout
A write times out at the client. Has the write failed to commit?
Not necessarily. The write may have committed and its response may have been lost. Retry and reconciliation must handle that ambiguity.
12.Logical Operation
What identity should survive a retry of one reservation request?
The logical operation ID. Attempt IDs can differ for tracing, but retrying the same intent with a fresh operation identity can create another effect.
13.Atomic Deduplication
What must share an atomic boundary to protect a database effect from duplicate retries?
The effect and the durable record recognizing that operation. Otherwise a crash can leave the effect committed without its deduplication evidence.
14.Key Conflict
What should happen when one idempotency key is reused for a different payload?
Reject or explicitly resolve the conflicting reuse. Bind the key to the original operation's meaning rather than silently applying another request.
15.Retry Horizon
Why compare deduplication retention with the permitted retry period?
A retry arriving after its recognition record expires can look new. Align the horizons or provide another durable way to recognize old operations.
16.Transactional Outbox
How does an outbox address a crash between a business commit and event publication?
Store the publication intent in the business transaction. A separate publisher retries delivery from that durable record.
17.External Boundary
Why can a local database transaction not by itself guarantee one external notification send?
The external send is outside that transaction. External idempotency, reconciliation, or an explicit weaker contract is needed for ambiguous outcomes.
18.Ordering Domain
Which routing choice matters when all changes to one account need ordered consumption?
Keep that account's required ordering domain coherent, often within a partition, or add explicit coordination. Partition order does not order unrelated partitions.
19.Sequence Gap
A projector sees sequence 42 after 40. What must it establish before claiming complete progress?
What happened to 41. Buffer, retrieve, or reconcile under the stream contract instead of treating a missing transition as an empty one.
20.Backpressure
A queue receives work faster than its consumer can finish it. What does extra buffer space buy?
Time before a resource limit is reached, at the cost of growing delay. It does not increase sustainable consumer throughput.
21.Retry Jitter
Why randomize retry delay after a shared outage?
To spread clients' recovery traffic instead of recreating a synchronized spike. Keep bounded retries and respect deadlines as well.
22.Remaining Budget
What deadline should a downstream call inherit?
A budget bounded by the caller's remaining useful time, with room for returning or cleaning up. A fresh long timeout can waste capacity after the result is useless.
23.Bulkhead Capacity
How can one slow workload be prevented from taking every shared connection?
Assign bounded resource budgets or pools by workload. Isolation must fit the dependency's total capacity rather than creating unlimited pools.
24.Fanout Tail
If ten independent calls each finish on time with probability 0.98, what is the chance all finish on time?
0.98^10, approximately 0.817. Correlated failures require a different model and may make simple independence calculations misleading.
25.Queue Law
At steady state, a queue averages 60 waiting jobs and handles 240 jobs per second. What is the mean waiting time?
60/240 = 0.25 seconds by Little's law for the queue. Service time is separate, and the steady-state assumptions matter.
26.Consistent Snapshot
What must a backup of related mutable tables preserve?
A consistent recovery point or a log-based path to one. Matching row counts and copying each file successfully do not establish a coherent joint state.
27.Replay Boundary
A snapshot includes applied state through position 900. Where does required replay continue?
After the included position. Record the precise snapshot/log boundary so recovery neither skips needed entries nor repeats unguarded effects.
28.Corruption Containment
A segment's checksum fails. Why avoid immediately copying it over other replicas?
That can spread damaged data. Preserve evidence, compare independently verified copies, and repair through a documented authoritative process.
29.Failure Domains
Why can three replicas still be vulnerable to one storage outage?
They may share the same underlying failure domain. Replica placement must account for common storage, power, network, and operational dependencies.
30.Recovery Objectives
How do a replica's lag and a restore's duration describe different recovery risks?
Lag relates to potential missing recent history; restore duration relates to time to regain service. Neither alone proves the other recovery objective.
31.Tombstone Lifetime
What can happen if deletion evidence expires before an old replica returns?
An older value may be reintroduced. Tombstone retirement must match replica repair, rejoin, and retention assumptions.
32.Merge Convergence
Which three merge laws handle arbitrary order and duplicate state delivery?
Associativity, commutativity, and idempotence. They support convergence for the chosen data model when relevant updates eventually propagate.
33.Causal History
What does it mean when neither of two version vectors dominates the other?
Their represented histories are concurrent. The payloads may agree by coincidence; vector ordering describes causal history rather than content equality.
34.Migration Version
Why should a backfill compare versions before replacing destination rows?
A late snapshot row can otherwise overwrite a newer live change. Coordinate the snapshot/change-stream boundary and apply authoritative version rules.
35.Checkpoint Output
When should a processor claim it has passed an input position?
Only according to a protocol that coordinates durable output and source progress. Advancing the checkpoint first can make recovery skip missing output.
36.Stale Cache Fill
Why can cache invalidation after a database commit still leave a stale cache value?
An earlier in-flight read can fill the cache after invalidation. Generation or version checks can prevent that late old fill from winning.
37.Immutable Cache
How do immutable content hashes separate reuse from publication freshness?
The hash selects a verified revision; a fresh manifest pointer selects the release. An old cached revision is reusable without pretending it is current.
38.Snapshot Pagination
What should pagination carry when the user needs one stable result universe?
A continuation position tied to an appropriate snapshot or equivalent contract. A live offset alone can skip or repeat results as the dataset changes.
39.Version Condition
Two editors replace version 12 using an atomic version-12 condition. What happens?
At most one replacement succeeds at that version. The other editor must refresh and reconcile with the new state instead of blindly overwriting it.
40.Failure Evidence
What evidence helps investigate acknowledged state divergence before repair?
Preserve request histories, replica logs, snapshots, and ownership transitions. Destructive repair can erase the information needed to explain the failure.
