← Quiz: Distributed Transactions and Sagas: all 10 questions
Quiz: Distributed Transactions and Sagas · Question 2 of 10
In two-phase commit, what happens if one participant votes "no" in the prepare phase?
In two-phase commit, what happens if one participant votes "no" in the prepare phase?
- A.The others commit anyway
- B.The coordinator retries forever
- C.The coordinator tells every participant to abort
- D.Only that participant aborts
Answer & explanation
Correct answer: The coordinator tells every participant to abort
2PC is all-or-nothing: any no vote aborts the whole transaction.
Can you get the rest right without peeking?
Take the timed Quiz: Distributed Transactions and Sagas quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →