← Quiz: Distributed Transactions and Sagas: all 10 questions
Quiz: Distributed Transactions and Sagas · Question 6 of 10
Why should a step that cannot be undone, like sending an SMS, come last in a saga?
Why should a step that cannot be undone, like sending an SMS, come last in a saga?
- A.SMS is the slowest step
- B.If a later step fails there is no way to "unsend" it, so do it only after the risky steps succeed
- C.SMS providers require it
- D.It makes the saga use fewer services
Answer & explanation
Correct answer: If a later step fails there is no way to "unsend" it, so do it only after the risky steps succeed
Irreversible actions belong after every step that might still fail.
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 →