Bird
0
0

A developer notices that some Saga transactions are not fully compensated after failures. Which common mistake could cause this behavior?

medium📝 Debug Q7 of 15
Kafka - Event-Driven Architecture
A developer notices that some Saga transactions are not fully compensated after failures. Which common mistake could cause this behavior?
ANot publishing compensating events for all completed steps
BUsing Kafka topics with replication factor greater than 1
CImplementing compensations as idempotent operations
DUsing unique message keys for each event
Step-by-Step Solution
Solution:
  1. Step 1: Identify incomplete compensation

    If some transactions are not fully rolled back, compensating events might be missing.
  2. Step 2: Common cause

    Failing to publish compensating events for all previously successful steps causes incomplete rollback.
  3. Final Answer:

    Not publishing compensating events for all completed steps -> Option A
  4. Quick Check:

    Missing compensations cause incomplete rollback [OK]
Quick Trick: All completed steps must have compensations published [OK]
Common Mistakes:
  • Assuming replication factor affects compensation
  • Confusing idempotency with missing compensations
  • Misusing message keys unrelated to compensation

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes