Skip to content
Sharp

Microservice Architecture · interview question

Which component in a Saga pattern is responsible for undoing actions if a transaction fails?

Multiple choiceMediumchapter-18-curatedpremiummicroservice-architectureeventual-consistency-sagas
Choose one answer
Answer and explanation

Correct answer

D. Compensating Transaction

Why

A Compensating Transaction is designed to logically undo previous steps in a Saga when a failure occurs. This is similar to issuing a refund rather than rolling back a database transaction.

Test yourself on Microservice Architecture

A free test with instant, explained results. No account needed.

Start free test
All Microservice Architecture questions →