1. Home
  2. Explore
  3. Computer Science
  4. Distributed Systems Consensus

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Distributed Systems Consensus

  • 93Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Consensus Fundamentals
In distributed systems, the fundamental task of consensus is to make sure that only
value is chosen from among competing proposals.

93 questions

  1. 1
    In 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

  2. 2
    The 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

  3. 3
    In 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

  4. 4
    Shared 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

  5. 5
    Paxos 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

  6. 6
    Lamport 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

  7. 7
    Paxos 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

  8. 8
    The 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

  9. 9
    The 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

  10. 10
    A 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

  11. 11
    The 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

  12. 12
    Once 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

  13. 13
    A 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

  14. 14
    The 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

  15. 15
    One liveness requirement is that some proposed value must eventually be
    _____
    .
    Hint

    The system must make progress instead of freezing forever.

    Answer

    chosen

  16. 16
    The liveness requirement that prevents the system from freezing indefinitely is the requirement to avoid
    _____
    .
    Hint

    This condition means that progress stops completely.

    Answer

    deadlock

  17. 17
    A 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

  18. 18
    The 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

  19. 19
    Under 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

  20. 20
    Paxos assumes an asynchronous,
    _____
    model.
    Hint

    Participants may crash or be slow, but they do not intentionally lie.

    Answer

    non-Byzantine

  21. 21
    In the asynchronous model, processes may operate at completely
    _____
    speeds.
    Hint

    There is no predictable timing relationship among processes.

    Answer

    arbitrary

  22. 22
    In Paxos, a process can fail by stopping and may later
    _____
    .
    Hint

    The process comes back after a crash.

    Answer

    restart

  23. 23
    Messages 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

  24. 24
    Asynchronous networks may deliver the same message more than once, so messages can be
    _____
    .
    Hint

    The network may accidentally deliver multiple copies.

    Answer

    duplicated

  25. 25
    A message that never reaches its destination has been
    _____
    .
    Hint

    It vanishes before delivery.

    Answer

    lost

  26. 26
    The 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

  27. 27
    A 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

  28. 28
    Information 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

  29. 29
    Writing 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

  30. 30
    The 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

  31. 31
    The 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

  32. 32
    The 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

  33. 33
    The three Paxos roles are proposers, acceptors, and
    _____
    .
    Hint

    This role is responsible for finding out the decision.

    Answer

    learners

  34. 34
    A 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

  35. 35
    The 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

  36. 36
    If 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

  37. 37
    The 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

  38. 38
    To 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

  39. 39
    A 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

  40. 40
    P2 states that if a proposal with value VVV 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

    VVV

  41. 41
    P2A 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

  42. 42
    P2B 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

  43. 43
    The practical invariant that guarantees P2B is called
    _____
    .
    Hint

    It requires a proposer to gather information from a majority before issuing a proposal.

    Answer

    P2C

  44. 44
    Under 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

  45. 45
    Under condition A of P2C, if no acceptor in the majority has accepted a proposal numbered less than NNN, the proposer may choose
    _____
    value.
    Hint

    There is no earlier accepted value that must be carried forward.

    Answer

    its own

  46. 46
    Under 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

  47. 47
    Paxos has two main phases: prepare and
    _____
    .
    Hint

    The second phase attempts to have acceptors record the selected proposal.

    Answer

    accept

  48. 48
    In phase one, a proposer selects a new unique proposal number NNN that is higher than any number it has used for that consensus
    _____
    .
    Hint

    The number must increase within one specific decision process.

    Answer

    instance

  49. 49
    The phase-one message containing only proposal number NNN is called a
    _____
    request.
    Hint

    It asks acceptors to prepare for a possible proposal.

    Answer

    prepare

  50. 50
    When 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

  51. 51
    A positive response to a prepare request promises that the acceptor will not accept proposals numbered
    _____
    NNN.
    Hint

    Proposal number NNN itself remains acceptable in phase two.

    Answer

    less than

  52. 52
    In 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

  53. 53
    If 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

  54. 54
    A 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

  55. 55
    If 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

  56. 56
    If 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

  57. 57
    In 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

  58. 58
    An acceptor accepts a phase-two proposal if its number is greater than or
    _____
    its current maximum promised number.
    Hint

    The promise rejects numbers below NNN, not NNN itself.

    Answer

    equal to

  59. 59
    After 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

  60. 60
    A 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

  61. 61
    In the simplest learning method, every acceptor sends an accepted message to
    _____
    learners.
    Hint

    This approach broadcasts directly to every learner.

    Answer

    all

  62. 62
    With 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

  63. 63
    Direct 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

  64. 64
    A communication optimization designates one or more
    _____
    learners to collect acceptances.
    Hint

    These learners act as an information funnel.

    Answer

    distinguished

  65. 65
    A 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

  66. 66
    Using 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

  67. 67
    If 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

  68. 68
    A 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

  69. 69
    In a Paxos livelock, competing proposers repeatedly issue prepare requests with ever-increasing
    _____
    numbers.
    Hint

    Each new attempt preempts the previous attempt.

    Answer

    proposal

  70. 70
    The 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

  71. 71
    FLP 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

  72. 72
    To 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

  73. 73
    The 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

  74. 74
    Leader election is used primarily to improve Paxos
    _____
    rather than to establish its safety.
    Hint

    The leader helps the system eventually move forward.

    Answer

    liveness

  75. 75
    Even 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

  76. 76
    State 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

  77. 77
    A 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

  78. 78
    State machine replication uses Paxos to agree on a totally ordered
    _____
    of commands.
    Hint

    The commands are assigned positions and executed in order.

    Answer

    log

  79. 79
    Instead 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

  80. 80
    In 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

  81. 81
    A 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

  82. 82
    A 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

  83. 83
    When 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

  84. 84
    If 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

  85. 85
    If 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

  86. 86
    A 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

  87. 87
    When 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

  88. 88
    The 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

  89. 89
    The 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

  90. 90
    To 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

  91. 91
    Paxos 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

  92. 92
    Leader 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

  93. 93
    Algorithms 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

1 of 93
Question 1 of 93

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent