Advanced Web & Software Development
Q97 / 100

What is a saga's compensating transaction and when is it not possible?

Correct! Well done.

Incorrect.

The correct answer is B) A business-level undo operation (e.g., refund payment, unbook hotel) to reverse a completed step — not always possible for side effects like sending emails

B

Correct Answer

A business-level undo operation (e.g., refund payment, unbook hotel) to reverse a completed step — not always possible for side effects like sending emails

Explanation

Compensating transactions undo the business effect of a step. Challenges: some effects are irreversible (sending email, SMS, physically dispatching goods). Design sagas with reversibility in mind; for irreversible steps, use careful sequencing.

Progress
97/100