1. Home
  2. Explore
  3. Computer Science
  4. Paxos Consensus Algorithm

Study methods

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

Paxos Consensus Algorithm

  • 48Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Consensus Meaning

Which description best defines Paxos?

48 questions

  1. 1

    Which description best defines Paxos?

    1. A

      It is a single-node algorithm for storing replicated data

    2. B

      It is a communication protocol that guarantees messages are never lost

    3. C

      It is a family of distributed algorithms for reaching consensus

    4. D

      It is a family of algorithms for electing a permanent leader

    Correct answer
    C

    It is a family of distributed algorithms for reaching consensus

    Explanation

    Paxos is a family of distributed consensus algorithms with multiple variants. The presentation focuses on vanilla Paxos.

  2. 2

    In the friends' decision example, what constitutes consensus?

    1. A

      Every participant must support the same proposal from the beginning

    2. B

      The group must accept the proposal made by the first participant

    3. C

      A majority must agree on one result, even if opinions initially differ

    4. D

      Each participant must receive every message sent during discussion

    Correct answer
    C

    A majority must agree on one result, even if opinions initially differ

    Explanation

    In the example, consensus is reached when a majority agrees on one result, even if some participants initially supported different proposals.

  3. 3

    Why can a Paxos participant change its mind during a run?

    1. A

      Participants can change their choices to agree on a result

    2. B

      Every participant must preserve their original proposal

    3. C

      The result must combine every proposal into a new value

    4. D

      The proposer must select the result without consulting others

    Correct answer
    A

    Participants can change their choices to agree on a result

    Explanation

    Paxos participants need to agree on a result, not necessarily on the value any individual initially proposed. They can change their proposed choice to help reach agreement.

  4. 4

    What communication problem does the presentation allow for in Paxos?

    1. A

      Messages are guaranteed to arrive but may be duplicated

    2. B

      Messages can be lost while participants continue trying to agree

    3. C

      Only proposers may experience communication failures

    4. D

      Nodes are allowed to forget previously accepted values

    Correct answer
    B

    Messages can be lost while participants continue trying to agree

    Explanation

    Communication channels may be faulty, so messages can be lost. The algorithm is designed to make progress despite such communication problems, though they may delay agreement.

  5. 5

    What does it mean that a reached consensus may eventually be known by everyone?

    1. A

      Participants must restart consensus whenever a message is delayed

    2. B

      Agreement may take time to become known to everyone

    3. C

      Agreement is valid only after every node replies simultaneously

    4. D

      A chosen value is known only to the proposer that initiated the run

    Correct answer
    B

    Agreement may take time to become known to everyone

    Explanation

    Consensus can take time to reach and then become known more widely. Participants can ask others whether agreement was reached and what value was chosen.

  6. 6

    What is the scope of a single Paxos run?

    1. A

      A single run repeatedly changes its agreed value as new proposals arrive

    2. B

      A single run agrees on one value for every node in the system

    3. C

      A single run agrees on one value and does not later change it

    4. D

      A single run can agree only if all proposals contain the same value

    Correct answer
    C

    A single run agrees on one value and does not later change it

    Explanation

    Each Paxos run reaches consensus on a single value. To change a value over time, the system uses a different run, often for another position in a replicated log.

  7. 7

    Why might a growing service need to move beyond one workstation?

    1. A

      A single computer cannot store more than one accepted value

    2. B

      A single computer cannot send messages to remote users

    3. C

      A single computer must use peer-to-peer communication

    4. D

      A single computer has finite resources and scaling limits

    Correct answer
    D

    A single computer has finite resources and scaling limits

    Explanation

    A single computer has finite resources and cannot be upgraded indefinitely. As use grows, a system may need multiple computers rather than relying on one increasingly powerful machine.

  8. 8

    How does the leader coordinate writes in a leader-replicas design?

    1. A

      The leader orders proposed writes and distributes them to replicas

    2. B

      The leader stores writes without sending them to replicas

    3. C

      Every replica independently chooses its own write order

    4. D

      Replicas select a value and instruct the leader to store it

    Correct answer
    A

    The leader orders proposed writes and distributes them to replicas

    Explanation

    In a leader-replicas design, clients or nodes direct proposed writes to the leader. The leader serializes the proposals and sends them to replicas.

  9. 9

    What distinguishes the peer-to-peer design described in the presentation?

    1. A

      Each node applies operations in the order it receives them

    2. B

      A central server chooses which peer may accept each operation

    3. C

      A designated leader orders all writes for passive replicas

    4. D

      Equal nodes exchange proposals and agree on the next operation

    Correct answer
    D

    Equal nodes exchange proposals and agree on the next operation

    Explanation

    In a peer-to-peer design, nodes behave as equals and communicate to agree on the next operation so that operations are applied in the same order.

  10. 10

    What must a leader-replicas system do if its leader becomes unavailable?

    1. A

      The nodes must reach consensus to elect a replacement leader

    2. B

      The system must discard all values previously accepted

    3. C

      A learner automatically becomes leader without agreement

    4. D

      The replicas can continue accepting writes in any order

    Correct answer
    A

    The nodes must reach consensus to elect a replacement leader

    Explanation

    If a leader becomes unavailable, the remaining nodes need consensus to elect a new leader. Without one, the system may stall.

  11. 11

    Why does a peer-to-peer system need ongoing consensus?

    1. A

      To ensure that operations are applied in the same order

    2. B

      To ensure that each node applies only its own proposals

    3. C

      To ensure that no node ever becomes unavailable

    4. D

      To ensure that every proposal is accepted by every node

    Correct answer
    A

    To ensure that operations are applied in the same order

    Explanation

    In a peer-to-peer design, nodes repeatedly reach consensus so that operations are applied in the same order across the system, supporting consistency.

  12. 12

    How does the need for consensus compare between the two system designs?

    1. A

      Neither design needs consensus if all nodes store the same data

    2. B

      Only leader-replicas systems need consensus to order writes

    3. C

      Only peer-to-peer systems need consensus because replicas are passive

    4. D

      Both designs need consensus, though they use it for different purposes

    Correct answer
    D

    Both designs need consensus, though they use it for different purposes

    Explanation

    Both designs need consensus: leader-replicas systems may need it to elect a replacement leader, while peer-to-peer systems use it to order operations consistently.

  13. 13

    Which option correctly matches the three Paxos roles to their functions?

    1. A

      Proposers elect leaders, acceptors replicate data, and learners suggest values

    2. B

      Proposers learn results, acceptors suggest values, and learners elect leaders

    3. C

      Proposers suggest values, acceptors participate, and learners learn the result

    4. D

      Proposers accept values, acceptors learn results, and learners serialize writes

    Correct answer
    C

    Proposers suggest values, acceptors participate, and learners learn the result

    Explanation

    Proposers put forward values, acceptors participate in reaching agreement, and learners find out which value was agreed upon.

  14. 14

    How may Paxos roles be assigned to physical servers in practice?

    1. A

      Learners cannot also participate in accepting proposals

    2. B

      A single node may perform several or even all Paxos roles

    3. C

      Only leaders may perform more than one Paxos role

    4. D

      Each physical server must perform exactly one Paxos role

    Correct answer
    B

    A single node may perform several or even all Paxos roles

    Explanation

    In practice, one node can perform multiple Paxos roles, including proposing values, acting as an acceptor, and learning the agreed value.

  15. 15

    What important property do two majorities of acceptors have?

    1. A

      Any two majorities share every acceptor

    2. B

      Any two majorities share at least one acceptor

    3. C

      Two majorities cannot exist at the same time

    4. D

      Two majorities always contain exactly the same acceptors

    Correct answer
    B

    Any two majorities share at least one acceptor

    Explanation

    Any two majorities in the same set of acceptors overlap in at least one acceptor. Paxos relies on this intersection in its safety reasoning.

  16. 16

    What persistence requirement does vanilla Paxos place on acceptors?

    1. A

      Acceptors must retain every message they have received

    2. B

      Acceptors must not forget values they have accepted

    3. C

      Acceptors must store only the latest proposal number

    4. D

      Acceptors must reply to every request immediately

    Correct answer
    B

    Acceptors must not forget values they have accepted

    Explanation

    Vanilla Paxos requires acceptors to retain what they have accepted. If they forgot accepted values, later steps could fail to preserve an already chosen value.

  17. 17

    What happens to the chosen value after consensus is reached in a run?

    1. A

      A run changes its value whenever a new proposer appears

    2. B

      A run cannot move to a different value after consensus

    3. C

      A run reaches consensus only after several values are accepted

    4. D

      A run can change its value if learners have not heard about it

    Correct answer
    B

    A run cannot move to a different value after consensus

    Explanation

    Once a value has been chosen in one run, that run does not move to a different value. A system that needs a changing value must start another run.

  18. 18

    What must Paxos nodes know about the acceptor group?

    1. A

      They must know how many proposers are currently active

    2. B

      They must know the location of every learner

    3. C

      They must know the order in which messages will arrive

    4. D

      They must know how many acceptors form a majority

    Correct answer
    D

    They must know how many acceptors form a majority

    Explanation

    Paxos nodes must know the number of acceptors required for a majority so they can tell when promise and acceptance thresholds have been met.

  19. 19

    In a system with three acceptors, how many acceptors form a majority?

    1. A

      A majority is one acceptor because it is the smallest group

    2. B

      A majority is four acceptors because proposals require two phases

    3. C

      A majority is two acceptors because it is more than half of three

    4. D

      A majority is three acceptors because every node must respond

    Correct answer
    C

    A majority is two acceptors because it is more than half of three

    Explanation

    With three acceptors, a majority is two. In general, a majority is enough because any two majorities overlap.

  20. 20

    What is the initial message sent by a Paxos proposer?

    1. A

      It sends an ACCEPT REQUEST to all learners before preparing

    2. B

      It sends an ACCEPT message to one learner with a value

    3. C

      It sends a PROMISE message to a majority of proposers

    4. D

      It sends a PREPARE message to a majority or all acceptors

    Correct answer
    D

    It sends a PREPARE message to a majority or all acceptors

    Explanation

    A proposer begins by sending a PREPARE message to a majority or all acceptors. The message carries the proposal's identifier.

  21. 21

    What property must a Paxos proposal ID have?

    1. A

      Each proposal ID must identify the value being proposed

    2. B

      Each proposal ID must be shared by all active proposers

    3. C

      Each proposal ID must be unique and never reused

    4. D

      Each proposal ID must remain the same across every Paxos run

    Correct answer
    C

    Each proposal ID must be unique and never reused

    Explanation

    Proposal IDs must be unique so proposals can be ordered unambiguously. The example assigns alternating IDs to different proposers to avoid reusing an ID.

  22. 22

    What should a proposer do after timing out while waiting for responses?

    1. A

      It retries with a new ID higher than the previous one

    2. B

      It sends an ACCEPT REQUEST with no proposal ID

    3. C

      It retries with the same ID and a different value

    4. D

      It waits for learners to choose a new ID

    Correct answer
    A

    It retries with a new ID higher than the previous one

    Explanation

    After a timeout, the proposer retries using a new, higher ID. This allows it to try to obtain promises that supersede earlier proposals.

  23. 23

    What does an acceptor promise when it responds to a new PREPARE?

    1. A

      It promises to accept every future proposal with that ID

    2. B

      It promises to reject every proposal with a higher ID

    3. C

      It promises to ignore requests with lower IDs

    4. D

      It promises that the proposed value has already reached consensus

    Correct answer
    C

    It promises to ignore requests with lower IDs

    Explanation

    An acceptor that receives a sufficiently new PREPARE promises not to accept proposals with lower IDs. It responds with a PROMISE carrying the current ID.

  24. 24

    How should an acceptor respond to a PREPARE whose ID is below an ID it has already promised?

    1. A

      It forwards the request to learners for a decision

    2. B

      It ignores the lower request because of its higher promise

    3. C

      It replaces its higher promise with the lower ID

    4. D

      It accepts the lower proposal if the value is unchanged

    Correct answer
    B

    It ignores the lower request because of its higher promise

    Explanation

    If an acceptor has already promised to ignore IDs below a higher one, it ignores a PREPARE carrying a lower ID rather than promising that lower ID.

  25. 25

    Why does receiving a majority of promises block a lower-ID proposal from also getting a majority of promises?

    1. A

      Every acceptor must reply to the same proposer before any proposal proceeds

    2. B

      A majority promise permanently prevents all higher IDs from progressing

    3. C

      The proposer can cancel lower IDs by changing their proposed values

    4. D

      Majority overlap prevents a lower ID from obtaining a majority of promises

    Correct answer
    D

    Majority overlap prevents a lower ID from obtaining a majority of promises

    Explanation

    Once a proposer has promises from a majority, any competing majority would overlap with that group. At least one acceptor in the competing majority will therefore reject a lower ID.

  26. 26

    Why might acceptors receive competing PREPARE messages in different orders?

    1. A

      Acceptors delay all PREPARE messages until every proposer has sent one

    2. B

      Messages always arrive in the order in which proposers send them

    3. C

      Message order depends only on the proposal's numeric value

    4. D

      Different network latencies can cause messages to arrive in different orders

    Correct answer
    D

    Different network latencies can cause messages to arrive in different orders

    Explanation

    Messages from different nodes may arrive in different orders because of network latency. A lower-ID request can sometimes receive an individual promise, even though it cannot obtain a majority after a higher-ID majority promise.

  27. 27

    What does a proposer do after obtaining a majority of PROMISE messages?

    1. A

      It asks the acceptors to select a value independently

    2. B

      It sends a new PREPARE with the same ID to the learners

    3. C

      It declares consensus immediately without sending another message

    4. D

      It sends an ACCEPT REQUEST carrying the ID and a value

    Correct answer
    D

    It sends an ACCEPT REQUEST carrying the ID and a value

    Explanation

    After receiving a majority of PROMISE messages for an ID, the proposer sends an ACCEPT REQUEST with that ID and a value to a majority or all acceptors.

  28. 28

    If none of the promises reports a previously accepted value, which value may the proposer put in its ACCEPT REQUEST?

    1. A

      It may choose any value it wants to propose

    2. B

      It must choose a value selected by the learners

    3. C

      It must choose the oldest value ever proposed

    4. D

      It must wait until another proposer supplies a value

    Correct answer
    A

    It may choose any value it wants to propose

    Explanation

    If the promises include no previously accepted value, the proposer is free to use the value it originally wanted to propose.

  29. 29

    What does an acceptor send after accepting an ACCEPT REQUEST?

    1. A

      It sends an ACCEPT message with the ID and value to the proposer and learners

    2. B

      It sends a PREPARE message with a new ID to every learner

    3. C

      It sends a PROMISE message containing only the value to all proposers

    4. D

      It sends an ACCEPT REQUEST to the other acceptors but not learners

    Correct answer
    A

    It sends an ACCEPT message with the ID and value to the proposer and learners

    Explanation

    An acceptor that can accept the request sends an ACCEPT message containing the proposal ID and value to the proposer and to learners.

  30. 30

    What does a majority of acceptors accepting the same ID and value establish?

    1. A

      Consensus is reached on the ID, while the value remains undecided

    2. B

      Consensus requires every acceptor to accept the same ID and value

    3. C

      Consensus is reached when a proposer receives any one ACCEPT

    4. D

      Consensus is reached on the value accepted by a majority

    Correct answer
    D

    Consensus is reached on the value accepted by a majority

    Explanation

    When a majority of acceptors accept the same ID and value, consensus is reached on the value. The ID is an internal Paxos mechanism, not the agreed result.

  31. 31

    What can a proposer or learner infer from a majority of ACCEPT messages?

    1. A

      It knows the proposal ID has become the permanent system value

    2. B

      It knows no later proposal can use a higher ID

    3. C

      It knows the associated value has reached consensus

    4. D

      It knows every acceptor has stored the value

    Correct answer
    C

    It knows the associated value has reached consensus

    Explanation

    A proposer or learner that receives ACCEPT messages from a majority for a proposal knows consensus was reached on the associated value, not on the proposal ID itself.

  32. 32

    Which sequence gives the three Paxos milestones in their usual order?

    1. A

      A majority accepts, a majority promises, and then a value is proposed

    2. B

      A majority promises, a majority accepts, and a proposer or learner learns

    3. C

      A proposer learns the value, acceptors promise, and then consensus begins

    4. D

      A value is chosen, learners propose it, and acceptors select an ID

    Correct answer
    B

    A majority promises, a majority accepts, and a proposer or learner learns

    Explanation

    The milestones occur in order: a majority promises an ID, a majority accepts an ID and value, and then a proposer or learner learns of consensus by receiving a majority of ACCEPT messages.

  33. 33

    What does an acceptor report in response to a later PREPARE if it has already accepted a value?

    1. A

      It reports the previously accepted ID and value with its promise

    2. B

      It changes the earlier value to match the new proposal

    3. C

      It sends the earlier value only if the new proposer uses the same ID

    4. D

      It hides the earlier value so that the new proposer can choose freely

    Correct answer
    A

    It reports the previously accepted ID and value with its promise

    Explanation

    An acceptor that has previously accepted a value includes that value and its accepted ID in its response to a later PREPARE, so the proposer can preserve the established choice.

  34. 34

    How does a proposer choose among previously accepted values reported in its promises?

    1. A

      It may choose any value if most acceptors report the same ID

    2. B

      It must use the value attached to the lowest accepted ID it learned about

    3. C

      It must select the value that appeared in the most recent PREPARE

    4. D

      It must use the value attached to the highest accepted ID it learned about

    Correct answer
    D

    It must use the value attached to the highest accepted ID it learned about

    Explanation

    When a proposer receives promises that report accepted values, it must select the value associated with the highest accepted ID among those reports.

  35. 35

    A proposer receives a majority of promises, including an earlier accepted value. What must it do?

    1. A

      It must propose the previously accepted value with the highest reported ID

    2. B

      It must stop the run because any earlier acceptance prevents progress

    3. C

      It can use its original value if its own ID is higher

    4. D

      It must ask learners to vote between the old and new values

    Correct answer
    A

    It must propose the previously accepted value with the highest reported ID

    Explanation

    If a majority of promises includes an earlier accepted value, the proposer cannot substitute its original choice. It must carry forward the value associated with the highest accepted ID it learned.

  36. 36

    A proposer using ID 6 learns from promises that 'cat' was accepted with ID 5. What request must it make?

    1. A

      It must issue ACCEPT REQUEST 6 with the value 'cat'

    2. B

      It must issue ACCEPT REQUEST 5 with a newly chosen value

    3. C

      It must issue ACCEPT REQUEST 6 with its original value

    4. D

      It must abandon ID 6 and repeat PREPARE 5

    Correct answer
    A

    It must issue ACCEPT REQUEST 6 with the value 'cat'

    Explanation

    In the example, a proposer with ID 6 learns that value 'cat' was accepted with ID 5. It must issue an ACCEPT REQUEST using ID 6 and value 'cat'.

  37. 37

    What may happen when a proposer uses a higher ID after consensus has been reached?

    1. A

      A higher-ID proposal may succeed, but it must carry forward the chosen value

    2. B

      A higher-ID proposal can succeed only if every acceptor has forgotten the old value

    3. C

      A higher-ID proposal must always be rejected after a value is accepted

    4. D

      A higher-ID proposal can replace the chosen value if it reaches more acceptors

    Correct answer
    A

    A higher-ID proposal may succeed, but it must carry forward the chosen value

    Explanation

    Once a majority has accepted a value, a later higher-ID proposal may still succeed, but the promise and accepted-value rules require it to preserve that value.

  38. 38

    What does a majority promise for a higher ID imply for a later lower-ID accept request?

    1. A

      A lower-ID request cannot subsequently be accepted by a majority

    2. B

      A lower-ID request can succeed if learners have not heard the result

    3. C

      A lower-ID request is accepted whenever one acceptor accepts it

    4. D

      A lower-ID request can succeed if it carries the same value

    Correct answer
    A

    A lower-ID request cannot subsequently be accepted by a majority

    Explanation

    After a majority has promised a higher ID, an accept request with a lower ID cannot be accepted by a majority because the overlapping acceptors will reject it.

  39. 39

    How can a proposer learn a consensus value if it missed the earlier ACCEPT messages?

    1. A

      It can recover the value through promises and propose it again

    2. B

      It must ask the original proposer to restart the same ID

    3. C

      It can infer the result from the highest ID alone

    4. D

      It can learn the value only after every learner replies

    Correct answer
    A

    It can recover the value through promises and propose it again

    Explanation

    A proposer that missed earlier ACCEPT messages can learn the chosen value by preparing with a higher ID, receiving an acceptor's reported value, and proposing that value.

  40. 40

    Why can several proposers create contention in one Paxos run?

    1. A

      Higher proposal IDs prevent all messages from being delivered

    2. B

      Competing proposals can repeatedly invalidate one another's progress

    3. C

      Different values are automatically combined into one result

    4. D

      Competing proposals make acceptors forget their persistent state

    Correct answer
    B

    Competing proposals can repeatedly invalidate one another's progress

    Explanation

    Competing proposers may repeatedly obtain majorities for successively higher IDs, causing lower-ID attempts to fail before they complete. This contention can delay or stall progress.

  41. 41

    How can exponential backoff help with proposer contention?

    1. A

      It forces every proposer to use the same ID on its next attempt

    2. B

      It increases retry delays so one proposal can complete without repeated clashes

    3. C

      It instructs acceptors to accept requests without promises

    4. D

      It makes all proposers send requests at exactly the same time

    Correct answer
    B

    It increases retry delays so one proposal can complete without repeated clashes

    Explanation

    Exponential backoff makes a proposer wait progressively longer before retrying, reducing collisions and giving another proposal time to complete.

  42. 42

    How does a replicated log allow Paxos to represent a value that changes over time?

    1. A

      By letting one Paxos run continuously overwrite its chosen value

    2. B

      By storing the changing record only on the leader

    3. C

      By asking each replica to update the record independently

    4. D

      By assigning each change to a new position in a replicated log

    Correct answer
    D

    By assigning each change to a new position in a replicated log

    Explanation

    Paxos agrees on one value per run, so a changing record can be represented as a sequence of consensus decisions, one for each successive log position.

  43. 43

    What does position 0 represent in the bank-account replicated log?

    1. A

      It records the identity of the current Paxos leader

    2. B

      It holds the initial state of the bank account

    3. C

      It holds the first value ever proposed by a client

    4. D

      It stores the most recent change after all later positions

    Correct answer
    B

    It holds the initial state of the bank account

    Explanation

    Log position 0 holds the initial state, such as the account state on its opening date. Subsequent changes are decided at later positions.

  44. 44

    How are the example's transfer and withdrawal represented in the replicated log?

    1. A

      Both transactions use position 1, with the later one replacing the earlier one

    2. B

      The transaction amounts are used as proposal IDs rather than log entries

    3. C

      The transfer and withdrawal are stored only in the initial position

    4. D

      The transfer uses position 1 and the withdrawal uses position 2

    Correct answer
    D

    The transfer uses position 1 and the withdrawal uses position 2

    Explanation

    The example records a transfer of 50 dollars at position 1 and a withdrawal of 20 dollars at position 2. Each mutation uses a different consensus run, and the resulting balance can be included for efficiency.

  45. 45

    What Paxos roles can a storage server perform in the simplified system?

    1. A

      A storage server can act as proposer, acceptor, and learner

    2. B

      A storage server acts only as learner while a separate leader accepts

    3. C

      Each replica performs one role and cannot participate in the others

    4. D

      A storage server acts only as proposer and never learns values

    Correct answer
    A

    A storage server can act as proposer, acceptor, and learner

    Explanation

    In the simplified storage system, a storage server acts in multiple roles, including proposer, acceptor, and learner, and communicates with the other replicas.

  46. 46

    How does a user write reach Paxos in the storage-system example?

    1. A

      The contacted storage server proposes the write to the acceptors

    2. B

      Each replica independently writes the value before consensus

    3. C

      The contacted storage server forwards the write only to a leader

    4. D

      The user directly sends ACCEPT messages to all learners

    Correct answer
    A

    The contacted storage server proposes the write to the acceptors

    Explanation

    When a user proposes a write, the contacted storage server acts as proposer and sends the proposal to the acceptors, including itself and the other replicas.

  47. 47

    In a three-replica system, how many acceptors are needed for a majority decision?

    1. A

      Two of the three acceptors can establish consensus

    2. B

      All three replicas must accept and write before consensus exists

    3. C

      The user must approve the value after two replicas write it

    4. D

      One replica can establish consensus if it is the proposer

    Correct answer
    A

    Two of the three acceptors can establish consensus

    Explanation

    With three replicas, consensus can be reached when two acceptors accept the value. It is not necessary for all three replicas to write it immediately.

  48. 48

    What can happen to a replica that misses writing a value when the majority first accepts it?

    1. A

      It must remain permanently behind because consensus has ended

    2. B

      It can later learn the decided value and catch up

    3. C

      It can catch up only if the user submits the same write again

    4. D

      It must overwrite the majority's value with its local value

    Correct answer
    B

    It can later learn the decided value and catch up

    Explanation

    A replica that did not write a decided value immediately can catch up later. One described path is to participate in a later proposal for the next log position and learn the earlier value through Paxos messages.

Question 1 of 48
Question 1 of 48

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent