🎙 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 5 of 10

In a saga, what is a compensating action?

In a saga, what is a compensating action?

  1. A.A database rollback of all services
  2. B.A retry of the failed step
  3. C.A new transaction that semantically undoes a completed step, like a refund
  4. D.A lock that stops other users
Answer & explanation

Correct answer: A new transaction that semantically undoes a completed step, like a refund

Each step has already committed, so it is undone by a new, opposite action.

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 →