🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.The others commit anyway
  2. B.The coordinator retries forever
  3. C.The coordinator tells every participant to abort
  4. 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 →