Questions: Paxos Consensus Algorithm

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A proposer sends Prepare(5) to a majority of acceptors. Two reply with promises; one reports it previously accepted value 'blue' at ballot 3, the other reports no previous acceptance. What value must the proposer use in its Phase 2 Accept message?

AAny value the proposer chooses, since ballot 5 supersedes ballot 3
B'blue', because it must use the value from the highest-numbered previously accepted proposal it discovered
CThe value that the majority of acceptors accepted, but only one reported 'blue' so it cannot be determined
DThe proposer's own preferred value, since it has not yet been committed by a majority
Question 2 Multiple Choice

A Paxos cluster of 5 nodes has 3 nodes simultaneously crash. The remaining 2 nodes attempt to run a new Paxos round. What happens?

AProgress continues because 2 nodes can still communicate and agree
BThe 2 remaining nodes can decide a value since they still form a quorum for a 3-node subset
CProgress is impossible because a majority (at least 3 out of 5) of acceptors cannot be reached, so neither Phase 1 nor Phase 2 can collect enough promises or acceptances
DPaxos automatically reconfigures to treat the 2 remaining nodes as a complete cluster
Question 3 True / False

Paxos guarantees that if a value is decided (accepted by a majority), no future round can decide a different value, even if messages are lost or delayed.

TTrue
FFalse
Question 4 True / False

A Paxos system with a single designated proposer (leader) is expected to typically make progress, because competing proposers can no longer issue conflicting Prepare messages.

TTrue
FFalse
Question 5 Short Answer

In Phase 2 of Paxos, why must a proposer use the value from the highest-numbered previously accepted proposal it discovered in Phase 1, rather than proposing its own preferred value?

Think about your answer, then reveal below.