Distributed Systems Consensus
- 93Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
93 questions
- 1In distributed systems, the fundamental task of consensus is to make sure that only_____value is chosen from among competing proposals.
Hint
The system must establish one shared truth for a specific decision.
Answer
one single
- 2The chosen value in a consensus decision becomes the_____for everyone in the system.
Hint
Think of the authoritative result that all participants must use.
Answer
single source of truth
- 3In an online game distributed across multiple servers, consensus prevents different servers from recording conflicting updates to the same_____.
Hint
A rare sword and a shield should not occupy the same unique location differently on different servers.
Answer
item slot
- 4Shared configuration services such as Google’s Chubby and Apache Zookeeper use consensus so that services agree on their current_____.
Hint
These services act as a central coordination mechanism for configuration information.
Answer
settings
- 5Paxos was presented in a simplified and more accessible form in Leslie Lamport’s_____paper from 2001.
Hint
The paper’s title describes its goal of making the algorithm easier to understand.
Answer
Paxos made simple
- 6Lamport originally described the Paxos algorithm as being_____to many readers.
Hint
The phrase means that the original description was extremely difficult to understand.
Answer
Greek
- 7Paxos is designed to achieve fault-tolerant agreement even when messages are delayed or lost and computers can_____at any moment.
Hint
The failure involves a computer stopping unexpectedly.
Answer
crash
- 8The property of a consensus system concerned with correctness and consistency is called_____.
Hint
It prevents the system from doing anything incorrect, even during failures.
Answer
safety
- 9The property concerned with eventually making decisions and communicating them to processes is called_____.
Hint
It means the system eventually does something useful rather than remaining stuck.
Answer
liveness
- 10A consensus algorithm must ensure that only a value that has actually been_____may be chosen.
Hint
The chosen value cannot appear from nowhere.
Answer
proposed
- 11The safety rule stating that only one value can ever be chosen is known as the_____rule.
Hint
It prevents two different balances or ownership records from existing for one decision.
Answer
one truth
- 12Once a value has been chosen for a particular decision, no other value can ever be chosen for that same_____.
Hint
The rule applies to one specific consensus outcome.
Answer
decision
- 13A process must never learn that a value has been chosen unless the value actually_____chosen.
Hint
This rule prevents false reports of agreement.
Answer
has been
- 14The safety rule preventing processes from acting on an unfinalized transaction avoids potentially disastrous_____.
Hint
The problem is believing that agreement happened when it did not.
Answer
false positives
- 15One liveness requirement is that some proposed value must eventually be_____.
Hint
The system must make progress instead of freezing forever.
Answer
chosen
- 16The liveness requirement that prevents the system from freezing indefinitely is the requirement to avoid_____.
Hint
This condition means that progress stops completely.
Answer
deadlock
- 17A second liveness requirement is that once a value has been chosen, a process can eventually_____that value.
Hint
The decision must be communicated to system components.
Answer
learn
- 18The approach of assigning one acceptor to decide every proposal fails because that acceptor is a_____.
Hint
If this one component fails, the whole system cannot continue deciding.
Answer
single point of failure
- 19Under the naive P1 rule, a single acceptor simply accepts the_____valid proposal it receives.
Hint
The rule uses arrival order rather than a more coordinated protocol.
Answer
first
- 20Paxos assumes an asynchronous,_____model.
Hint
Participants may crash or be slow, but they do not intentionally lie.
Answer
non-Byzantine
- 21In the asynchronous model, processes may operate at completely_____speeds.
Hint
There is no predictable timing relationship among processes.
Answer
arbitrary
- 22In Paxos, a process can fail by stopping and may later_____.
Hint
The process comes back after a crash.
Answer
restart
- 23Messages in the asynchronous model may take an arbitrarily long time to arrive, meaning there is no guaranteed_____bound.
Hint
The model does not provide a maximum delivery time.
Answer
upper
- 24Asynchronous networks may deliver the same message more than once, so messages can be_____.
Hint
The network may accidentally deliver multiple copies.
Answer
duplicated
- 25A message that never reaches its destination has been_____.
Hint
It vanishes before delivery.
Answer
lost
- 26The non-Byzantine assumption means that messages may be delayed, lost, or duplicated, but they are not_____.
Hint
What arrives has the same content as what was sent.
Answer
corrupted
- 27A process that crashes or becomes slow but does not intentionally deceive other processes is a_____participant.
Hint
The participant is unreliable but honest rather than malicious.
Answer
non-Byzantine
- 28Information that must survive a crash and restart is stored in_____.
Hint
Unlike RAM, this storage remains available after power loss or process failure.
Answer
stable storage
- 29Writing critical data safely to disk before updating in-memory state is commonly implemented using write-ahead logging or_____.
Hint
Both techniques preserve changes durably before state updates.
Answer
journaling
- 30The Paxos role that initiates the process by suggesting values is the_____.
Hint
This role generates ideas such as a transaction or account update.
Answer
proposer
- 31The Paxos role that receives proposals, votes on them, and accepts them is the_____.
Hint
These agents act as voters or judges responsible for consistency.
Answer
acceptor
- 32The Paxos role that discovers the value chosen by acceptors and updates its own state is the_____.
Hint
This role needs to find out the result after consensus is reached.
Answer
learner
- 33The three Paxos roles are proposers, acceptors, and_____.
Hint
This role is responsible for finding out the decision.
Answer
learners
- 34A value is considered chosen when a_____of the acceptors has accepted it.
Hint
The required group is more than half of the acceptors.
Answer
majority
- 35The reason any two majorities preserve safety is that any two majorities have at least one acceptor in_____.
Hint
The two groups must overlap.
Answer
common
- 36If an acceptor can accept at most one value, the overlap between two majorities prevents two different values from both being_____.
Hint
A shared acceptor could not have accepted both conflicting values.
Answer
chosen
- 37The naive P1 rule can cause a deadlock when multiple proposers divide acceptors so that neither proposal obtains a_____.
Hint
Neither competing value has enough acceptances to be selected.
Answer
majority
- 38To allow an acceptor to participate in different rounds without sacrificing safety, Paxos identifies each proposal with a unique_____.
Hint
This is a natural, strictly increasing integer associated with a proposal.
Answer
proposal number
- 39A Paxos proposal consists of a unique proposal number paired with a_____.
Hint
The pair identifies both the round and the data being proposed.
Answer
value
- 40P2 states that if a proposal with value V is chosen, every higher-numbered proposal that is chosen must also have value_____.
Hint
The rule preserves the original chosen value across later rounds.
Answer
V
- 41P2A strengthens P2 by requiring that every higher-numbered proposal_____by any acceptor must carry the already chosen value.
Hint
The rule applies even when the later proposal does not receive a majority.
Answer
accepted
- 42P2B strengthens the guarantee further by requiring every higher-numbered proposal_____by any proposer to carry the chosen value.
Hint
This rule controls proposals before they reach acceptors.
Answer
issued
- 43The practical invariant that guarantees P2B is called_____.
Hint
It requires a proposer to gather information from a majority before issuing a proposal.
Answer
P2C
- 44Under P2C, the proposer must consult a set of acceptors containing a_____before issuing a proposal.
Hint
The set must overlap with every other qualifying set.
Answer
majority
- 45Under condition A of P2C, if no acceptor in the majority has accepted a proposal numbered less than N, the proposer may choose_____value.
Hint
There is no earlier accepted value that must be carried forward.
Answer
its own
- 46Under condition B of P2C, the proposer must use the value from the highest-numbered proposal previously_____within the majority set.
Hint
The newest relevant accepted proposal determines the value.
Answer
accepted
- 47Paxos has two main phases: prepare and_____.
Hint
The second phase attempts to have acceptors record the selected proposal.
Answer
accept
- 48In phase one, a proposer selects a new unique proposal number N that is higher than any number it has used for that consensus_____.
Hint
The number must increase within one specific decision process.
Answer
instance
- 49The phase-one message containing only proposal number N is called a_____request.
Hint
It asks acceptors to prepare for a possible proposal.
Answer
prepare
- 50When an acceptor receives a prepare request with a number greater than its current maximum promise, it updates that maximum and saves it to_____.
Hint
The promise must survive a crash.
Answer
stable storage
- 51A positive response to a prepare request promises that the acceptor will not accept proposals numbered_____N.
Hint
Proposal number N itself remains acceptable in phase two.
Answer
less than
- 52In its promise response, an acceptor reports the highest-numbered proposal it has previously_____in phase two, if any.
Hint
The proposer needs this history to apply P2C.
Answer
accepted
- 53If an incoming prepare number is less than or equal to an acceptor’s maximum promised number, the acceptor_____the prepare request.
Hint
It does not respond because it has already made a higher or equal promise.
Answer
ignores
- 54A proposer may proceed to phase two after receiving positive promise responses from a_____of acceptors.
Hint
The same quorum principle used for choosing values applies here.
Answer
majority
- 55If any phase-one response reports an accepted proposal, the proposer must use the value associated with the_____accepted proposal reported.
Hint
The most recent relevant proposal determines the carried-forward value.
Answer
highest-numbered
- 56If no phase-one response reports a previously accepted proposal, the proposer may use its originally intended_____.
Hint
The majority has no earlier value that constrains the new proposal.
Answer
value
- 57In phase two, the proposer sends an_____request containing the proposal number-value pair to the same majority.
Hint
This message asks acceptors to record the proposal.
Answer
accept
- 58An acceptor accepts a phase-two proposal if its number is greater than or_____its current maximum promised number.
Hint
The promise rejects numbers below N, not N itself.
Answer
equal to
- 59After accepting a proposal, an acceptor records the number-value pair in_____.
Hint
The record must remain available after a crash and restart.
Answer
stable storage
- 60A proposer can forget a failed proposal attempt without harming safety as long as it uses a new,_____proposal number when trying again.
Hint
Proposal numbers must continue increasing.
Answer
higher
- 61In the simplest learning method, every acceptor sends an accepted message to_____learners.
Hint
This approach broadcasts directly to every learner.
Answer
all
- 62With direct broadcasting, a learner knows a value is chosen after observing the same proposal accepted by a_____of acceptors.
Hint
The learning threshold is the same as the choosing threshold.
Answer
majority
- 63Direct communication from every acceptor to every learner can create a communication cost proportional to the_____of acceptors and learners.
Hint
Each acceptor may contact each learner.
Answer
product
- 64A communication optimization designates one or more_____learners to collect acceptances.
Hint
These learners act as an information funnel.
Answer
distinguished
- 65A distinguished learner informs the other learners after it observes a majority accepting a proposal, reducing communication from roughly a product to a_____of acceptors and learners.
Hint
The optimized cost is approximately acceptors plus learners.
Answer
sum
- 66Using only one distinguished learner introduces a potential bottleneck and a_____of failure for learning.
Hint
If that learner fails, information may not spread.
Answer
single point
- 67If a learner suspects that a value may have been chosen but cannot determine it, the learner can run the entire Paxos algorithm again for the same consensus_____.
Hint
The new round concerns the original decision rather than a different one.
Answer
instance
- 68A situation in which processes remain active but repeatedly fail to make forward progress is called_____.
Hint
Unlike deadlock, the processes continue sending messages and using CPU.
Answer
livelock
- 69In a Paxos livelock, competing proposers repeatedly issue prepare requests with ever-increasing_____numbers.
Hint
Each new attempt preempts the previous attempt.
Answer
proposal
- 70The FLP impossibility result applies to a purely asynchronous system in which messages may have arbitrary delays and at least one process may_____.
Hint
The result considers crash failures.
Answer
fail
- 71FLP shows that no deterministic consensus algorithm can guarantee both perfect safety and guaranteed_____in the stated asynchronous model.
Hint
This is the formal progress property that may be impossible to guarantee.
Answer
termination
- 72To guarantee progress despite the FLP limitation, a system must introduce randomness or_____time, such as timeouts.
Hint
This adds timing information beyond the purely asynchronous model.
Answer
real
- 73The standard practical method for preventing competing proposers from causing livelock is to elect a distinguished proposer, usually called the_____.
Hint
This process becomes the main proposer while others remain passive.
Answer
leader
- 74Leader election is used primarily to improve Paxos_____rather than to establish its safety.
Hint
The leader helps the system eventually move forward.
Answer
liveness
- 75Even if two servers temporarily believe they are leaders, Paxos may suffer livelock but will not choose two different values for the same consensus_____.
Hint
The safety guarantee applies to one decision.
Answer
instance
- 76State machine replication requires replicas to execute the same sequence of commands from the same initial state so they produce identical_____.
Hint
The replicated program must behave deterministically.
Answer
states and outputs
- 77A state machine is deterministic when the same initial state and the same command sequence always produce the same final state and the same_____.
Hint
These are the observable results produced while processing commands.
Answer
outputs
- 78State machine replication uses Paxos to agree on a totally ordered_____of commands.
Hint
The commands are assigned positions and executed in order.
Answer
log
- 79Instead of running Paxos once, a replicated state machine runs separate Paxos_____for successive command positions.
Hint
There is one decision process for each slot in the sequence.
Answer
instances
- 80In state machine replication, the value chosen by each Paxos instance is the state machine_____assigned to that position.
Hint
Each slot contains an operation to execute.
Answer
command
- 81A leader proposing a client command for slot 135 uses Paxos to ensure that only_____command can be chosen for that slot.
Hint
The slot must have a unique agreed-upon operation.
Answer
one
- 82A replica executes a command for slot 135 only after it has learned the command and processed commands_____through 134.
Hint
Execution must follow the contiguous order of the log.
Answer
1
- 83When a new leader finds missing positions in the replicated log, it fills each gap by running phase_____of Paxos for that slot.
Hint
The leader first investigates previous acceptances before proposing a value.
Answer
one
- 84If phase one reveals that a command was previously accepted for a missing slot, the new leader must propose that same command because of_____.
Hint
This invariant forces the proposer to adopt the highest relevant previously accepted value.
Answer
P2C
- 85If no command was previously accepted for a missing slot, the leader fills it with a special_____command.
Hint
This placeholder does not change the state machine.
Answer
no-op
- 86A no-op command is used to make the replicated log_____when a missing slot has no recovered command.
Hint
There can be no gaps between earlier and later command positions.
Answer
contiguous
- 87When a leader already has standing promises for future slots, normal-case consensus may require only phase_____.
Hint
The prepare work has already been completed in advance.
Answer
two
- 88The effective cost of reaching consensus in the optimized normal case is considered essentially_____for fault-tolerant agreement.
Hint
It is difficult to improve on one round trip while tolerating failures.
Answer
optimal
- 89The current membership configuration of the Paxos group can be stored as part of the state machine’s_____.
Hint
The list of acceptors is treated like other replicated information.
Answer
state
- 90To add or remove a server, the system proposes a special state machine command that changes the group_____.
Hint
The command modifies which servers belong to the consensus group.
Answer
configuration
- 91Paxos provides safety through logical invariants, a two-phase strategy involving promises, and reliance on_____for durable memory.
Hint
Acceptors must preserve promises and accepted values across crashes.
Answer
stable storage
- 92Leader election and timeouts are additional mechanisms needed primarily to improve_____in practical Paxos systems.
Hint
The core algorithm is already safe but may otherwise become stuck.
Answer
liveness
- 93Algorithms such as Raft are described as being directly inspired by or echoing ideas from_____.
Hint
This is the consensus algorithm discussed throughout the content.
Answer
Paxos

Ask anything
We've read this whole study set, so questions about it get the best answers.