Distributed systems engineer: Consensus and Quorum Reasoning
Original interview cases on quorum sets, durable votes, chosen history, log application, authority, membership, snapshots, failure models, and progress evidence.
These prompts are original practice. They are not questions from a named employer or a live hiring loop.
1.A consensus service for one slot promises that no two chosen values differ. Which history violates that safety requirement?
Show answer and explanation
- One chosen value is learned by clients at different times.
- No value is chosen during a long partition.
- One group chooses X and another chooses Y for that same slot.
- The same chosen value is returned twice.
Answer: One group chooses X and another chooses Y for that same slot.
Agreement concerns the value chosen for the same decision instance. Lack of progress is a separate issue, while duplicate knowledge of one value need not violate agreement.
2.A decision becomes chosen when a defined quorum durably accepts it, but the proposer crashes before notifying anyone. What must recovery distinguish?
Show answer and explanation
- A guarantee crashing reverses all durable acceptances
- Choice from knowledge of the choice
- Only the proposer's local log message
- A guarantee no notification means no choice occurred
Answer: Choice from knowledge of the choice
A decision can exist before a particular process learns it. Recovery and retry must preserve any already chosen value rather than equate lost notification with noncommitment.
3.A five-voter group requires three distinct voters for a decision. The leader receives four copies of one voter's acknowledgment and one other voter's acknowledgment. Is the quorum met?
Show answer and explanation
- Only the largest acknowledgment timestamp matters.
- Yes; duplicated replies count as extra replicas.
- No; only two distinct voters acknowledged.
- Yes; five messages exceed three.
Answer: No; only two distinct voters acknowledged.
Quorum membership counts distinct eligible voters, not messages. Deduplicate replies and validate their instance, epoch, and durable-acceptance meaning.
4.A fixed set has six replicas. Read quorum size is four and write quorum size is three. What minimum read/write intersection size follows from set cardinalities?
Show answer and explanation
- 1
- 0
- 3
- 2
Answer: 1
The minimum intersection is R+W−N=4+3−6=1. Intersection alone is not a complete correctness protocol; versioning, concurrency, failures, and repair rules also matter.
5.A fixed six-replica set uses two arbitrary write quorums of size four. What minimum intersection is forced?
Show answer and explanation
- 4
- 0
- 2
- 1
Answer: 2
Two size-four subsets of a six-element set overlap in at least 4+4−6=2 replicas. A protocol still needs those replicas to preserve and enforce the relevant information.
6.A five-replica scheme permits writes to any two replicas and reads from any two. What counterexample defeats universal read/write intersection?
Show answer and explanation
- A write at {A,C} and a read at {A,D}
- A write at {A,B} and a read at {B,C}
- A write at {D,E} and a read at {C,E}
- A write at {A,B} and a read at {C,D}
Answer: A write at {A,B} and a read at {C,D}
The first pair is disjoint. R+W=4≤5 does not force intersection for arbitrary subsets under this scheme.
7.A protocol uses quorums from different membership epochs. Why is arithmetic within each epoch insufficient for cross-epoch safety?
Show answer and explanation
- Every epoch has a unique human-readable label.
- The old and new quorums may be disjoint.
- A guarantee separate majorities always share a physical voter.
- Only the total number of stored log lines matters.
Answer: The old and new quorums may be disjoint.
Quorum intersection arguments depend on the actual universe and transition protocol. Membership changes need a sound relation between decision authority across configurations.
8.Old voters are {A,B,C}; new voters are {D,E,F}. Both groups can independently choose a value for the same slot during transition. What risk exists?
Show answer and explanation
- Conflicting choices without shared decision constraints
- Only a longer network route
- Only duplicate process names
- A guarantee each local majority ensures one global value
Answer: Conflicting choices without shared decision constraints
Each local group can form a majority without any common voter or handoff knowledge. A safe transition must preserve agreement across the configuration boundary.
9.During a joint phase, a protocol requires a majority of old {A,B,C} and a majority of new {C,D,E}. Which acknowledgment set satisfies both?
Show answer and explanation
- {A,C,D}
- {D,E}
- {A,B}
- {A,D}
Answer: {A,C,D}
The set {A,C,D} contains two old voters A,C and two new voters C,D. Each other option lacks a majority in at least one required configuration.
10.A joint configuration requires separate old and new majorities. A leader receives enough votes in their union but not in the old set. What should it avoid?
Show answer and explanation
- Rejecting an insufficient joint decision
- Tracking old and new membership separately
- Substituting union count for joint-majority checks
- Counting each distinct eligible reply
Answer: Substituting union count for joint-majority checks
A majority of the combined union is not generally equivalent to a majority in each configuration. Check the protocol's actual two-part predicate.
11.A new voter is added before its state transfer completes. Why can this reduce immediate availability in a majority scheme?
Show answer and explanation
- Adding a process always lowers the majority size.
- The majority may grow before catch-up finishes.
- A guarantee an empty new replica already has every required log entry.
- Only its process name affects availability.
Answer: The majority may grow before catch-up finishes.
A membership change can alter quorum size while the newcomer is still catching up. Use the supported admission and synchronization procedure rather than assume more members always improve current progress.
12.A learner receives log entries but is not an eligible voter. The leader counts its acknowledgment toward commitment. What must be corrected?
Show answer and explanation
- Only the learner's data rate
- Only the acknowledgment's byte count
- A guarantee every replica is a voter by definition.
- Eligibility-aware quorum accounting
Answer: Eligibility-aware quorum accounting
Replication and voting roles can differ. Commitment predicates must use the actual configuration and the meaning of eligible durable acknowledgments.
13.A voter responds to a durable-accept request before its promise and accepted state reach required stable storage. What failure can a power loss enable?
Show answer and explanation
- Only a missing display timestamp
- Only a slower log download
- A guarantee a network reply makes memory persistent
- Forgetting protocol state that safety relies on
Answer: Forgetting protocol state that safety relies on
A protocol's crash-recovery argument depends on the acknowledged state surviving the specified failures. Align reply timing with the actual persistence contract.
14.A voter persists its accepted value but not the higher ballot promise that restricts future acceptances. What should a restart test examine?
Show answer and explanation
- Only payload serialization speed
- Acceptance of a forbidden older ballot after reboot
- Only the number of local files
- A guarantee accepted-value persistence covers every safety variable.
Answer: Acceptance of a forbidden older ballot after reboot
Durable variables have distinct protocol roles. Restoring one while losing another can admit a history excluded by the safety argument.
15.A voter has durably promised not to accept ballots below 24. An accept request for ballot 23 arrives. Under that explicit rule, what response is permitted?
Show answer and explanation
- Forget the promise before processing it.
- Accept it because it arrived later.
- Reject the older ballot.
- A guarantee message arrival order supersedes ballot order.
Answer: Reject the older ballot.
The promise constrains future acceptance even for delayed messages. A higher request's age or network path does not erase the recorded ballot rule.
16.A proposer uses a ballot formed from a local counter and process ID. It restarts the counter at zero under the same ID while old ballots remain live. What property needs protection?
Show answer and explanation
- Uniqueness and appropriate ordering across lifetimes
- Only the process's restart duration
- Only the counter's display radix
- A guarantee tuple syntax prevents reuse automatically.
Answer: Uniqueness and appropriate ordering across lifetimes
A tuple is only as safe as its allocation and lifecycle rules. Persist or otherwise distinguish generations according to the protocol's ballot requirements.
17.Two proposers accidentally issue the same ballot number with different values for one decision slot. What assumption has failed?
Show answer and explanation
- Only the number of replicas
- Only the slot's data type
- The ballot's required unique proposal identity
- A guarantee equal ballot numbers may always identify incompatible proposals.
Answer: The ballot's required unique proposal identity
Protocols often rely on a ballot identifying a consistent proposal behavior. Define and enforce uniqueness and per-ballot value rules rather than allow ambiguous conflicting meanings.
18.Under a supplied prepare rule, a new proposer must retain the value from the largest accepted ballot reported by its promise quorum. Reports are (7,X), (11,Y), and no accepted value. What value must it propose?
Show answer and explanation
- No value can ever be proposed.
- Any new value Z
- Y
- X
Answer: Y
The largest reported accepted ballot is 11, carrying Y. The explicit rule preserves information from earlier acceptance; the empty report does not override it.
19.A valid prepare quorum reports no prior accepted proposal under the protocol's stated rule. What value choice does that rule permit?
Show answer and explanation
- Only a fixed all-zero value in every protocol
- A guarantee no other process can ever have stored any proposal
- Only a value from an unrelated slot
- A valid new proposed value
Answer: A valid new proposed value
The question supplies the no-prior-acceptance rule for a valid quorum. It does not imply every replica everywhere has empty state, and the proposed value still must meet validity requirements.
20.A proposer selects the most common reported value instead of the value attached to the highest accepted ballot required by its protocol. What is wrong?
Show answer and explanation
- A guarantee any intuitive aggregation preserves consensus.
- It ignores the required ballot-based rule.
- Majority frequency is always the same as highest ballot.
- Only the report order changed.
Answer: It ignores the required ballot-based rule.
Acceptance history and ballot order have specific roles. Follow the proven selection rule for the protocol rather than invent an unrelated frequency rule.
21.A decision slot has chosen X. A new leader loses client reply state and proposes Y for the same slot because the client retry has a new request ID. What must the consensus layer preserve?
Show answer and explanation
- The already chosen slot value
- Only the current leader's preference
- A guarantee retries create a new history for old slots.
- Only the newest request ID
Answer: The already chosen slot value
Slot identity and client-request identity are different. A new client attempt cannot authorize overwriting a chosen value in an existing consensus instance.
22.A replicated log has chosen entries through position 50, but one replica has applied only through 47. What positions remain unapplied there?
Show answer and explanation
- None, because choice implies local application everywhere.
- 51 through 53
- 1 through 47
- 48 through 50
Answer: 48 through 50
Commitment or choice and local state-machine application are different milestones. A replica must apply the relevant committed prefix before serving operations that require it.
23.Two replicas apply the same ordered commands, but a command reads each machine's current wall clock during application. What can break state agreement?
Show answer and explanation
- Only the process IDs' spelling
- Nondeterministic application inputs
- A guarantee log agreement makes arbitrary application code deterministic.
- Only the consensus message size
Answer: Nondeterministic application inputs
Replicated state machines need compatible deterministic semantics or logged external choices. Local time, randomness, and external data can diverge if used without a defined protocol.
24.A command assigns a random allocation ID. What design supports identical state-machine results on every replica?
Show answer and explanation
- Use each replica's wall time as an interchangeable random seed.
- Let every replica sample independently.
- Choose and record the required nondeterministic input consistently.
- A guarantee identical command names yield identical random values.
Answer: Choose and record the required nondeterministic input consistently.
External choices must be made part of the replicated input or otherwise coordinated under a sound design. Consensus on order alone does not coordinate independent random draws.
25.A log entry is durable on two followers and the leader in a five-voter group under a three-voter commitment rule. The leader counts itself once. What headcount has been reached?
Show answer and explanation
- 2 distinct voters
- 5 distinct voters
- 3 distinct voters
- 4 distinct voters
Answer: 3 distinct voters
Two eligible followers plus the eligible leader give three distinct voters. Whether commitment is valid also depends on the protocol's other epoch, log, and durability conditions.
26.A follower acknowledges receipt of bytes but has not validated the entry's term and predecessor relation required by the protocol. What must the acknowledgment semantics distinguish?
Show answer and explanation
- Raw receipt from valid replicated acceptance
- A guarantee any received bytes satisfy log consistency.
- Only the packet length
- Only the follower's hostname
Answer: Raw receipt from valid replicated acceptance
A commitment protocol needs acknowledgments with the required meaning. Validate identity, epoch, log matching, and persistence conditions before counting an acceptance.
27.A response from epoch 8 arrives while the leader is deciding an epoch-9 proposal. What should quorum tracking check?
Show answer and explanation
- A guarantee all positive replies are interchangeable.
- Only the sender's network address
- Only whether the reply is affirmative
- The response's exact epoch, slot, proposal, and membership context
Answer: The response's exact epoch, slot, proposal, and membership context
A valid old acknowledgment is not automatically evidence for a different proposal or configuration. Bind replies to the actual decision instance and rule.
28.A stale leader is isolated with two of five voters. It retains its role flag and accepts writes locally. What must prevent those writes from becoming acknowledged committed state under a majority contract?
Show answer and explanation
- The actual commitment and authority protocol
- Only the stale role flag
- Only a local incrementing request counter
- A guarantee leadership labels confer permanent authority.
Answer: The actual commitment and authority protocol
A process's belief is not sufficient authority. Enforce the current protocol's quorum and ownership requirements, including any protected external side effects.
29.A minority partition cannot form the required quorum. What can a safe implementation legitimately do for new writes?
Show answer and explanation
- Commit conflicting values independently to keep every site writable.
- Decline or wait according to the contract.
- A guarantee one surviving process always forms a majority.
- Treat repeated local replies as different voters.
Answer: Decline or wait according to the contract.
Agreement may require refusing progress when authority cannot be established. Define availability and error behavior instead of bypassing the safety predicate.
30.A leader election timeout expires. What does that event alone prove about the old leader?
Show answer and explanation
- The network has no delayed messages.
- The old leader's writes were all rolled back.
- No response was observed within the local timeout.
- The old leader has physically stopped.
Answer: No response was observed within the local timeout.
Timeouts support suspicion and progress mechanisms, not perfect failure knowledge in an asynchronous setting. Safety must tolerate false suspicions under its stated model.
31.All candidates start elections at exactly the same repeated interval and often split votes. What mechanism can reduce repeated synchronization under an appropriate election design?
Show answer and explanation
- Only increasing every counter identically
- Randomized election timing
- Only using longer candidate names
- A guarantee deterministic simultaneous starts ensure one winner.
Answer: Randomized election timing
Randomized timeouts can reduce repeated collisions. They support liveness behavior, while safety still depends on voting, persistence, and log rules.
32.An election grants two candidates a majority in the same term because one voter votes twice. What property must the voter enforce?
Show answer and explanation
- Only a limit on heartbeat payload size
- Only local candidate preference
- A guarantee each majority can be treated independently.
- At most one vote per term under the protocol's durable rule
Answer: At most one vote per term under the protocol's durable rule
Majority intersection relies on common voters honoring protocol constraints. Forgetting or violating the per-term vote rule can defeat election safety.
33.A network duplicates a valid vote reply ten times. What should the candidate's election tally do?
Show answer and explanation
- Treat duplication as evidence of ten processes.
- Count ten independent votes.
- Count that voter once for that election context.
- A guarantee a transport retry creates a new voter.
Answer: Count that voter once for that election context.
Election and commit quorums are sets of eligible identities under the correct context. Message duplication must not inflate authority.
34.An election chooses a leader solely by highest process ID, ignoring log state that the protocol requires for safe continuation. What should review require?
Show answer and explanation
- A sound leader-eligibility and log-preservation rule
- Only globally unique IDs
- Only a deterministic tie-break
- A guarantee deterministic leader choice preserves every chosen log entry.
Answer: A sound leader-eligibility and log-preservation rule
Choosing one name is not enough to preserve replicated history. Follow a protocol whose eligibility and recovery rules protect already committed decisions.
35.Under an explicit log-freshness rule, compare the last entry's term first, then its index if terms tie. Candidate A ends at (term 8,index 10); B ends at (term 7,index 100). Which is fresher by that rule?
Show answer and explanation
- They tie.
- The index always overrides the term.
- B
- A
Answer: A
The specified lexicographic comparison prioritizes term. Term 8 outranks term 7 even though A's last index is smaller.
36.The same rule compares logs ending at (term 8,index 10) and (term 8,index 14). Which is fresher?
Show answer and explanation
- The log ending at index 10
- Neither can be compared when terms match.
- The log ending at index 14
- Both must contain identical entries everywhere.
Answer: The log ending at index 14
With equal last terms, the supplied rule compares indices. Index 14 is greater than 10; freshness is not a claim that all arbitrary log contents are identical.
37.A vote request carries an older term than the voter's durable current term. The protocol forbids granting older-term requests. What should the voter do?
Show answer and explanation
- Grant it because it arrived most recently.
- Erase its current term.
- A guarantee network order determines election term.
- Reject it under the term rule.
Answer: Reject it under the term rule.
Delayed requests remain associated with their actual term. Message arrival does not override the protocol's durable epoch state.
38.A leader receives a valid message from a higher term under a protocol requiring it to step down. It ignores the term and keeps issuing commands. What obligation is violated?
Show answer and explanation
- Only the heartbeat interval target
- A guarantee a leader may retain authority forever.
- Only the command's serialization format
- The authority-transition rule
Answer: The authority-transition rule
Epoch changes can supersede prior leadership. Implement the protocol's response to higher-term evidence rather than rely on a stale local role.
39.Two logs contain entries at the same index but from different terms. What should a consistency check avoid assuming?
Show answer and explanation
- That the index is a position within a log
- That a reconciliation protocol is needed
- That equal index means equal entry identity or content
- That terms can distinguish history
Answer: That equal index means equal entry identity or content
An index alone identifies a position, not necessarily the same accepted entry across divergent logs. Validate the protocol's term and predecessor relationships.
40.A follower's log matches the leader through index 12, then has a conflicting uncommitted suffix. What should a repair rule protect?
Show answer and explanation
- A guarantee a longer log is always authoritative
- The already committed history and protocol-defined matching prefix
- Only the follower's longest raw file
- Every local uncommitted entry regardless of conflict
Answer: The already committed history and protocol-defined matching prefix
Reconciliation follows the consensus protocol, including which suffix may be replaced. Never discard protected committed history merely to make raw logs look alike.
41.A follower receives an append requiring predecessor (index 20,term 6), but its index-20 entry has term 5. What should the explicit predecessor-match rule do?
Show answer and explanation
- Reject that append until reconciliation satisfies the match.
- A guarantee only payload length matters.
- Accept it because the index exists.
- Change the predecessor's term without validating history.
Answer: Reject that append until reconciliation satisfies the match.
A predecessor check links the append to the intended history. Matching index with mismatched term does not satisfy the supplied condition.
42.An implementation deletes the follower's entire log whenever one append fails its predecessor check. What danger needs review?
Show answer and explanation
- Only a slower response printer
- Destruction of history the protocol requires preserving
- Only the count of network packets
- A guarantee any mismatch authorizes arbitrary data deletion.
Answer: Destruction of history the protocol requires preserving
Conflict repair must follow a sound rule and preserve committed information. A failed consistency check is not blanket permission to erase all state.
43.A protocol commits an earlier-term prefix indirectly after a current-term entry reaches its required majority. What should implementation avoid replacing that with?
Show answer and explanation
- Direct commitment of any older entry solely because it appears on a majority
- Preserving the committed prefix
- Tracking each replica's acknowledged match position
- Applying the protocol's term condition
Answer: Direct commitment of any older entry solely because it appears on a majority
Some replicated-log rules require a current-term commitment condition to preserve safety. Majority presence alone is not a universal substitute for the actual protocol's rule.
44.A current-term entry at index 30 is validly committed, and the protocol defines commitment as a prefix. What earlier indices are thereby included?
Show answer and explanation
- All valid log entries before 30 in that committed prefix
- Only entries whose payload equals entry 30
- Only index 30
- A guarantee every future entry is committed too
Answer: All valid log entries before 30 in that committed prefix
Prefix commitment includes preceding entries of the valid log. It does not extend to entries not yet included or appended in the future.
45.A leader reports a commit position beyond the last validated entry a follower has received. What must local application ensure?
Show answer and explanation
- Only available, validated committed entries are applied in order.
- Fabricate missing commands to reach the number.
- A guarantee commitment metadata contains every command's payload.
- Treat the numeric position as the missing data.
Answer: Only available, validated committed entries are applied in order.
A position is not the data itself. The follower must obtain the appropriate history and obey local bounds and ordering before applying it.
46.A replica applies log position 12 before position 11 even though the state machine's contract requires ordered execution. What can fail?
Show answer and explanation
- A guarantee applying the same set in any order yields the same state.
- Only log file naming
- State-machine correctness despite eventual receipt of both
- Only the number of stored commands
Answer: State-machine correctness despite eventual receipt of both
Consensus ordering is useful only if application respects the required order. Noncommuting operations can produce different states under the same unordered set.
47.A state starts at 1. Commands are 'add 2' then 'multiply by 3.' What state results if applied in that order?
Show answer and explanation
- 3
- 5
- 9
- 6
Answer: 9
The specified order gives (1+2)×3=9. Reversing the commands would give 1×3+2=5, illustrating why ordered application matters.
48.A follower has the committed log but is still applying it. A read requires the latest committed state. What must the read path establish?
Show answer and explanation
- Only the replica's role label
- The required applied position before answering
- A guarantee durable log storage means the materialized state is current.
- Only that bytes exist in the local log
Answer: The required applied position before answering
Log replication, commitment, and application are distinct. A correct read protocol must connect its ordering point to the state actually used for the response.
49.An isolated former leader serves local reads using only its old leader flag. Why can a 'latest linearizable state' claim fail?
Show answer and explanation
- It may lack current authority and newer committed writes.
- A guarantee leader status never becomes stale.
- Only its data files are large.
- Only the client used a different connection.
Answer: It may lack current authority and newer committed writes.
A linearizable read needs a valid protocol establishing the relevant authority and ordering point, plus an adequately applied state. A remembered role flag is insufficient.
50.A read protocol obtains a current quorum confirmation and a safe read position. The local applied position is below it. What should happen before returning that state as current?
Show answer and explanation
- Return the old state without qualification.
- Lower the safe read position to the local value.
- A guarantee quorum contact automatically applies local entries.
- Wait or otherwise satisfy the required applied position.
Answer: Wait or otherwise satisfy the required applied position.
Authority confirmation and local catch-up solve different parts of a read guarantee. Honor both the safe ordering point and the actual materialized state.
51.A client retry is appended as a new log entry after the original operation already committed. Does consensus ordering alone prevent its nonidempotent effect from repeating?
Show answer and explanation
- Yes; every retry has the same log position automatically.
- Yes; a replicated log forbids all repeated payloads.
- Only the number of replicas matters.
- No; request-effect deduplication needs its own state-machine rule.
Answer: No; request-effect deduplication needs its own state-machine rule.
Consensus agrees on entries and order, not necessarily logical-request uniqueness. Record and enforce suitable request identity and result state where exactly-once effects are promised.
52.A replicated state machine stores the operation's effect but keeps its duplicate-request table only in volatile leader memory. What does failover need to preserve?
Show answer and explanation
- Only the number of replicas
- The request-effect identity and recorded outcome
- A guarantee leader change never affects retry behavior.
- Only the old leader's hostname
Answer: The request-effect identity and recorded outcome
Deduplication relevant to the contract must survive the supported failures and transfer with state. Otherwise a new leader may repeat an already completed logical request.
53.A client reuses one request key for different payloads. What should an idempotency contract define?
Show answer and explanation
- A guarantee one key can mean arbitrary new work.
- Always execute both independently under the same identity
- Only compare the arrival timestamps
- Conflict detection or the stated consistent reuse semantics
Answer: Conflict detection or the stated consistent reuse semantics
Request identity must have a defined relationship to request content. Detect incompatible reuse or specify the behavior rather than silently conflate different intentions.
54.A replicated command sends an email independently from every replica during application. What side-effect problem arises?
Show answer and explanation
- Only the state machine's numeric result
- A guarantee replicated application makes external services deduplicate.
- Only a longer log entry
- Multiple external sends for one logical command
Answer: Multiple external sends for one logical command
Agreement on application state does not make external effects unique. Use a suitable effect-execution and identity protocol for the promised delivery semantics.
55.A leader commits an external-work record, then crashes before dispatch. What should the system recover from replicated state?
Show answer and explanation
- Only the old process's stack memory
- The pending work and its identity
- A guarantee commitment itself sends the external request.
- Only a best-effort log message
Answer: The pending work and its identity
A durable work record can preserve the obligation across failover. Dispatch still needs appropriate retries, outcome recording, and external-effect semantics.
56.A worker dispatches external work, loses the response, and fails over. What ambiguity remains even if the work record is durable?
Show answer and explanation
- Whether the log had an order
- Whether the external effect already occurred
- Whether the record exists
- Only the worker's display name
Answer: Whether the external effect already occurred
Durable intent does not resolve a lost external response. Use the external service's idempotency or reconciliation mechanisms where needed; do not infer nonexecution from silence.
57.A snapshot records applied state through position 80, but it claims last-included position 90. What safety concern must restore validation catch?
Show answer and explanation
- A guarantee snapshot metadata can exceed included state harmlessly.
- Skipping effects absent from the snapshot
- Only a smaller snapshot file
- Only a changed timestamp format
Answer: Skipping effects absent from the snapshot
The last-included position must match the actual state and protocol metadata. Incorrectly advancing it can cause recovery to omit needed log application.
58.A valid snapshot includes applied state through position 80. Under a contiguous replay contract, where should later log replay begin?
Show answer and explanation
- 90
- 79
- 81
- 80
Answer: 81
Position 80 is already included. Replay begins at 81 under the stated contract, with duplicate handling and any boundary metadata verified as required.
59.A snapshot omits the duplicate-request table while retaining the business state it protects. What retry failure should restore testing include?
Show answer and explanation
- A guarantee business values alone preserve every request identity.
- Only a change in snapshot compression ratio
- Reexecution of a previously completed request
- Only the first log file's name
Answer: Reexecution of a previously completed request
A snapshot must include state necessary for the promised semantics, not only visible business values. Omitted identity records can break uniqueness after recovery.
60.A node installs a snapshot while concurrently applying a newer suffix with no synchronization or version check. What needs coordination?
Show answer and explanation
- A guarantee installation order cannot affect application state.
- Only the node's process ID
- The atomic relationship between state and log positions
- Only the snapshot's transfer rate
Answer: The atomic relationship between state and log positions
A mixed snapshot and suffix can regress or double-apply state. Define an install protocol whose metadata and materialized state correspond to one valid history.
61.A node truncates the only recoverable committed prefix before verifying a replacement snapshot is durable and valid. What risk exists?
Show answer and explanation
- Loss of required recovery information
- A guarantee deleting a log makes snapshots correct.
- Only excess disk usage
- Only slower checksum computation
Answer: Loss of required recovery information
Compaction should follow the protocol's recoverability conditions. Preserve valid state, boundary metadata, and required history until the replacement is safely established.
62.A snapshot checksum matches, but its payload belongs to another cluster with overlapping index numbers. What identity must validation also check?
Show answer and explanation
- The intended cluster and history context
- A guarantee an intact file is the right file.
- Only the numeric snapshot position
- Only the byte count
Answer: The intended cluster and history context
Integrity and identity are different. Verify cluster, configuration, term or history metadata, and appropriate state correspondence in addition to byte-level checks.
63.A consensus node restores a disk image from an older point while keeping the same voter identity, losing later promises. What protocol assumption is threatened?
Show answer and explanation
- Durable state does not move backward across supported recovery.
- Only its network latency
- A guarantee old backups preserve all later protocol decisions.
- Only the voter name's uniqueness
Answer: Durable state does not move backward across supported recovery.
Crash recovery generally assumes required persistent state survives. Restoring an old identity's forgotten history needs a sound recovery or rejoin procedure rather than silently resume voting.
64.A replacement machine reuses an active voter's identity while the old machine may still send messages. What must membership and authentication prevent?
Show answer and explanation
- A guarantee matching names make two machines one failure domain.
- Only a larger message buffer
- Only identical model numbers
- Two live processes acting as the same eligible voter
Answer: Two live processes acting as the same eligible voter
Quorum accounting assumes meaningful identities and protocol state. Duplicate active identity can undermine vote counting, persistence, and authority unless the design explicitly handles it safely.
65.A single physical host runs three voters from a five-voter group. What availability assumption is weakened?
Show answer and explanation
- Only the number of IP addresses
- A guarantee separate processes imply separate failure domains.
- Only the arithmetic majority size
- Independence of voter failures
Answer: Independence of voter failures
Losing that host removes three votes at once. Replica count must be related to actual correlated failure domains, not only process boundaries.
66.A five-voter group requires three votes. A common power failure removes three voters. What can the remaining two form?
Show answer and explanation
- A three-vote majority
- No required majority
- A guarantee quorum size shrinks automatically after failures.
- Two independent majorities
Answer: No required majority
Under the fixed membership rule, the required count remains three. Two survivors cannot commit new decisions without a valid membership or recovery protocol.
67.A nine-voter crash-tolerant group uses strict majority and all failure assumptions hold. What largest number of unavailable voters still leaves a majority available?
Show answer and explanation
- 3
- 5
- 8
- 4
Answer: 4
A majority of nine is five. Nine minus four leaves five available; losing five leaves only four and cannot meet the requirement.
68.A cluster has many replicas but all durable logs rely on one shared storage system. What should durability analysis consider?
Show answer and explanation
- Only the largest log index
- A guarantee replica count alone proves independent persistence.
- The shared storage failure domain
- Only the process count
Answer: The shared storage failure domain
A shared dependency can erase or block multiple replicas together. Align failure assumptions, deployment, persistence, and recovery evidence with the actual architecture.
69.A network partition heals after two sides received conflicting uncommitted proposals. What must recovery preserve rather than choose by wall-clock recency alone?
Show answer and explanation
- The protocol's chosen history and valid continuation rules
- Only the proposal with the latest local timestamp
- Only the longer text payload
- A guarantee healing makes all proposals committed.
Answer: The protocol's chosen history and valid continuation rules
Reconciliation follows the consensus history and safety rules. Physical timestamp recency is not a universal authority for replacing chosen decisions.
70.A node's disk checksum detects corruption in a committed log segment. What should automatic recovery avoid?
Show answer and explanation
- Obtaining a verified copy under the recovery protocol
- Treating corrupted data as authoritative without a valid repair procedure
- Restricting unsafe participation while state is unresolved
- Recording the corruption evidence
Answer: Treating corrupted data as authoritative without a valid repair procedure
Corruption can violate assumptions about persistent state. Preserve evidence and restore valid protocol state with a justified process rather than continue from untrusted bytes.
71.A failure detector falsely suspects a healthy leader during a long pause. What should a correct crash-tolerant protocol maintain despite unnecessary elections?
Show answer and explanation
- A guarantee no election is ever triggered
- A guarantee every request completes immediately.
- Its safety invariants under the stated model
- The same latency as a fault-free run
Answer: Its safety invariants under the stated model
False suspicion can reduce availability or performance. Safety should not depend on a timeout perfectly distinguishing slow from failed processes unless a stronger model is explicitly assumed.
72.A consensus benchmark tests only a stable leader with no loss or restart. What evidence remains necessary for its fault-tolerance claim?
Show answer and explanation
- Only the largest successful batch
- Only higher fault-free throughput
- A guarantee nominal replication proves crash recovery.
- Behavior under the supported failure and recovery conditions
Answer: Behavior under the supported failure and recovery conditions
An implementation's fault-tolerance claim needs evidence matching its failure model, including ambiguity, persistence, leadership, partition, and recovery conditions.
73.A test kills a leader only before it accepts any requests. What additional crash point probes client ambiguity?
Show answer and explanation
- After the effect is chosen but before the reply reaches the client
- A guarantee all crash times have identical semantics.
- Only the start of the benchmark process
- Only another clean idle shutdown
Answer: After the effect is chosen but before the reply reaches the client
Crashing around commitment and reply boundaries can reveal whether retry and recovery preserve chosen state and effect identity. Idle shutdown omits that ambiguity.
74.A model checker finds two different values chosen for one slot. The implementation has good throughput in load tests. What should determine the correctness response?
Show answer and explanation
- Validate the safety counterexample.
- Ignore it because average latency is low.
- Treat throughput as proof of agreement.
- Delete the slot from the result summary.
Answer: Validate the safety counterexample.
Performance and safety are separate. Validate the counterexample's assumptions and realization, then correct or explain the discrepancy with concrete evidence.
75.A finite stress run observes no conflicting choices. What does it not establish by itself?
Show answer and explanation
- Agreement for every allowed execution
- The fact that the tested workload executed
- The recorded absence of conflicts in that run
- The possibility of reporting the run's conditions
Answer: Agreement for every allowed execution
A finite test samples behavior. Universal guarantees require a sound argument and supporting implementation evidence under the modeled assumptions.
76.A liveness proof assumes message delays eventually become bounded and one suitable leader remains stable. What should the claim retain?
Show answer and explanation
- A guarantee nodes never pause
- Those eventual timing and leadership assumptions
- Only the proof's total runtime
- Guaranteed bounded completion under every asynchronous schedule
Answer: Those eventual timing and leadership assumptions
Progress can depend on eventual synchrony or related conditions. State assumptions separately from safety and avoid presenting a conditional liveness result as unconditional.
77.Two proposers continually preempt each other with higher ballots. No conflicting value is chosen, but no proposal finishes. What class of problem is illustrated?
Show answer and explanation
- Liveness without an observed agreement violation
- Only data serialization failure
- A guarantee increasing ballots always produces progress.
- A proven disagreement
Answer: Liveness without an observed agreement violation
A protocol can preserve safety while making no progress under contention. Leader stability, backoff, timing, or another justified mechanism may be needed for liveness.
78.A recovery policy manually reduces quorum size to one whenever most replicas are unreachable. What must be proven before claiming unchanged safety?
Show answer and explanation
- Only that one replica can reply quickly
- A guarantee emergency mode preserves all old quorum arguments.
- Only a smaller timeout
- A sound authority and history transition despite possible surviving replicas
Answer: A sound authority and history transition despite possible surviving replicas
Unreachable is not necessarily dead, and old history may exist elsewhere. Ad hoc quorum reduction can permit incompatible decisions unless a valid recovery and fencing procedure establishes authority.
79.A network link is bidirectionally down between two nodes but each can contact a third. What should quorum availability analysis model?
Show answer and explanation
- A guarantee every partition splits the system into two isolated sets.
- Only whether one ping failed
- The actual communication graph and protocol paths
- Only the total number of running processes
Answer: The actual communication graph and protocol paths
Partial connectivity can be asymmetric or nontransitive. Availability depends on who can exchange the required protocol messages, not just a simple count of live hosts.
80.A seven-voter design uses quorums of five. At most two voters may equivocate. What minimum number of non-equivocating voters lies in the intersection of any two such quorums?
Show answer and explanation
- 5
- 0
- 2
- 1
Answer: 1
Two size-five subsets overlap in at least 5+5−7=3 voters. With at most two equivocators, at least one in that intersection is non-equivocating under the stated assumptions.
81.A crash-only protocol is deployed where a faulty voter can send incompatible acknowledgments to different peers. What assumption must be revisited?
Show answer and explanation
- The non-Byzantine failure model
- A guarantee majority arithmetic alone handles arbitrary lying.
- Only the number of log files
- Only the request timeout value
Answer: The non-Byzantine failure model
A quorum protocol's rules rely on its fault model. Equivocation can violate the behavior expected of intersecting voters and requires an appropriate design and proof.
82.Messages are authenticated, but a compromised voter intentionally lies about its state using its valid key. What does authentication alone fail to provide?
Show answer and explanation
- The ability to bind a message to a credential
- Detection of an outsider lacking the key under the stated model
- Truthfulness of that voter's statements
- Identity verification under the authentication scheme
Answer: Truthfulness of that voter's statements
Authentication can establish who sent a statement, not that the sender followed the protocol. Malicious participant behavior needs its own fault model and safeguards.
83.A quorum certificate contains three signatures but two are from the same voter key. The rule requires three distinct eligible voters. What should validation do?
Show answer and explanation
- A guarantee all signatures represent independent identities.
- Reject it as insufficient under that rule.
- Count signature count only.
- Treat different message encodings as new voters.
Answer: Reject it as insufficient under that rule.
Certificate validation must enforce distinct membership, instance, epoch, value, and cryptographic validity. Signature quantity is not a substitute for the actual quorum predicate.
84.A valid certificate for slot 10 is replayed as authority for slot 11 because the signed payload omitted the slot. What needs to be bound by the protocol?
Show answer and explanation
- The full decision context
- Only the certificate's file extension
- Only the sender's display name
- A guarantee a valid signature authorizes every possible use.
Answer: The full decision context
Cryptographic evidence needs a precise meaning. Bind cluster, epoch, slot, proposal, value, and relevant context so old evidence cannot be repurposed for another decision.
85.A quorum spans regions with a mandatory remote acknowledgment whose round-trip path takes at least 40 ms. What lower bound affects an otherwise immediate write protocol requiring that round trip?
Show answer and explanation
- Only local memory access time
- At least that required remote communication time
- A guarantee batching removes every per-request dependency.
- Zero latency because the leader is local
Answer: At least that required remote communication time
A required communication dependency imposes a latency floor under the supplied path assumption. Overlap, batching, and pipelining can change throughput or additional overhead, not erase the dependency itself.
86.A five-voter leader needs itself and two follower acknowledgments. Followers respond after 5, 12, 30, and 50 ms, with no other delay. What acknowledgment time first meets the count?
Show answer and explanation
- 30 ms
- 12 ms
- 5 ms
- 50 ms
Answer: 12 ms
With the leader already counted, the second follower response completes the required three voters. The second-smallest supplied response time is 12 ms.
87.The same quorum count is required, but only one follower can currently respond. What should a latency report distinguish?
Show answer and explanation
- A guarantee one fast follower implies progress.
- Only the one response's fast timing
- Only the mean over successful requests
- Unavailable quorum from an arbitrarily slow successful commit
Answer: Unavailable quorum from an arbitrarily slow successful commit
A missing required quorum may prevent completion under the current conditions. Report timeouts, rejections, and availability rather than hide them inside successful-request latency.
88.A benchmark excludes every request during leader failover from its latency and success metrics. What should a failover-performance claim include?
Show answer and explanation
- The excluded interval's request outcomes and downtime
- Only steady-state successful latencies
- Only the fastest recovery run
- A guarantee omitted requests experienced no disruption.
Answer: The excluded interval's request outcomes and downtime
Failover affects the workload during the transition. Define denominators and include or explicitly qualify failed, delayed, and unserved requests.
89.A replicated log batches 100 commands into one consensus round. What still needs a defined response relation for each client command?
Show answer and explanation
- Only the batch's total byte size
- Its accepted position, outcome, and reply boundary
- A guarantee batching turns 100 user requests into one identity.
- Only one arbitrary client's success
Answer: Its accepted position, outcome, and reply boundary
Batching changes protocol efficiency without removing per-command semantics. Preserve ordering, errors, duplicates, and completion accounting for each logical operation.
90.A leader pipelines several log appends and receives an acknowledgment for index 20 before an older acknowledgment for index 15. What should per-follower match tracking avoid?
Show answer and explanation
- Applying the protocol's monotonic progress rule
- Validating which append the reply concerns
- Regressing a validated match position based solely on the delayed reply
- Recording the response's context
Answer: Regressing a validated match position based solely on the delayed reply
Out-of-order replies can carry stale progress information. Update state according to the actual protocol and request context rather than blindly assign every received number.
91.A follower's match position is recorded as 30, but an implementation accidentally attributes another follower's reply to it. What assumption can break?
Show answer and explanation
- Only the log's serialization format
- Only the average network rate
- Per-voter evidence for replicated positions
- A guarantee any reply can advance any replica's position.
Answer: Per-voter evidence for replicated positions
Commit calculations depend on correct identity-specific evidence. Correlate replies with the actual peer and proposal rather than inflate a fictitious replication state.
92.A consensus service chooses one node as work owner, but the old owner retains direct access to an external resource. What additional enforcement may be needed?
Show answer and explanation
- Only a new owner name in the log
- A guarantee choosing ownership automatically revokes every external action.
- Only the consensus leader's heartbeat frequency
- Resource-side fencing of superseded ownership
Answer: Resource-side fencing of superseded ownership
Agreement on ownership does not force an old process to stop. The protected resource must enforce the required authority relation or an equivalent sound mechanism.
93.A lock-service client pauses beyond its lease, then resumes a file write. What must a safety argument avoid depending on solely?
Show answer and explanation
- The stale client's local belief that it still owns the lock
- A resource checking the current valid generation
- A defined lease and clock model
- The protocol's ownership record
Answer: The stale client's local belief that it still owns the lock
A paused client can miss revocation or expiry. Enforce authority where effects occur and justify time assumptions rather than rely on the old process noticing promptly.
94.A quorum-based register returns the value with the largest version among replies but never defines concurrent-write version allocation. What is missing from its correctness argument?
Show answer and explanation
- Only an integer comparison function
- A sound version and concurrency protocol
- A guarantee any maximum over intersecting replies is linearizable.
- Only the replica count
Answer: A sound version and concurrency protocol
Quorum intersection is one ingredient. Version uniqueness, write/read protocols, concurrent operations, failure behavior, and any repair steps must establish the promised consistency.
95.A read contacts an intersecting quorum and sees a partially completed concurrent write. What should the protocol define?
Show answer and explanation
- A guarantee incomplete writes are invisible in every quorum algorithm.
- Which result can be returned and what completion or repair is required
- Always return the smallest value
- Only the response payload's size
Answer: Which result can be returned and what completion or repair is required
Concurrent and incomplete operations require careful semantics. A valid register protocol defines version selection and any write-back or recovery behavior needed for its guarantee.
96.A read schedules repair of an old replica after returning. What does scheduling alone fail to establish?
Show answer and explanation
- That the repair has completed durably
- That an old replica was identified
- The possibility of retrying failed repair
- That repair work was requested
Answer: That the repair has completed durably
Intent to repair is distinct from successful durable convergence. Track completion and failures where a claim depends on repaired state.
97.A membership entry is itself stored in the replicated log. A node applies a later configuration before the protocol permits the transition. What rule needs review?
Show answer and explanation
- Only the number of addresses
- Only the configuration's JSON formatting
- The activation point and quorum semantics of membership
- A guarantee writing a member list makes every activation order safe.
Answer: The activation point and quorum semantics of membership
Configuration data and effective authority are related by a specific transition protocol. Respect its commitment, activation, and rejoin rules.
98.A removed voter still sends delayed valid old messages. What should a current decision validate?
Show answer and explanation
- A guarantee a formerly valid voter remains eligible forever.
- Only the source IP address
- Only whether the old signature verifies
- Membership and epoch eligibility for the current context
Answer: Membership and epoch eligibility for the current context
Old messages can remain authentic yet no longer confer current authority. Bind eligibility to the relevant configuration and decision history.
99.A newly restored node is unsure whether its local history contains all committed decisions. What should it avoid before valid recovery establishes its state?
Show answer and explanation
- Preserving its local evidence
- Serving authoritative writes or reads beyond its justified state
- Following the supported catch-up procedure
- Checking cluster and snapshot identity
Answer: Serving authoritative writes or reads beyond its justified state
A recovery process needs a sound relation to current authority and history. Do not infer readiness solely from process startup or a plausible-looking local log.
100.A proof of consensus safety excludes membership changes, snapshots, and restarts, while production uses all three. What should the final claim state?
Show answer and explanation
- Unconditional correctness of the entire implementation
- Only the proof's passing status
- A guarantee excluded features cannot affect safety.
- The modeled scope and separate obligations for those features
Answer: The modeled scope and separate obligations for those features
Formal evidence is limited by its model. Connect feature interactions, persistence, recovery, and implementation behavior to the broader product claim.
101.A candidate must defend a quorum-based design. Which explanation is strongest?
Show answer and explanation
- Promise availability in every partition without changing any consistency guarantee.
- State only that a majority is mathematically larger than half.
- Treat message count as voter count.
- Connect set intersection, voter behavior, durability, epochs, recovery, and progress assumptions.
Answer: Connect set intersection, voter behavior, durability, epochs, recovery, and progress assumptions.
A quorum count supports correctness only within a complete protocol and failure model. Explain why shared participants preserve the required information and how lifecycle and progress conditions are handled.