Skip to content
Sharp

Microservice Architecture · interview question

What does the term 'compensating transaction' refer to in a Saga?

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

Correct answer

C. An operation that reverses a previous transaction step

Why

A compensating transaction is an operation that reverses a previous step in a Saga if an error occurs. This ensures that the system remains consistent even when distributed transactions are not atomic.

Test yourself on Microservice Architecture

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

Start free test
All Microservice Architecture questions →