🎙 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 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?

  1. A.SMS is the slowest step
  2. B.If a later step fails there is no way to "unsend" it, so do it only after the risky steps succeed
  3. C.SMS providers require it
  4. 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 →