← 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?
- A.A database rollback of all services
- B.A retry of the failed step
- C.A new transaction that semantically undoes a completed step, like a refund
- 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 →