Bird
0
0

A developer implemented a Saga using Kafka but notices that compensating events are not triggered on failure. What is the most likely cause?

medium📝 Debug Q14 of 15
Kafka - Event-Driven Architecture
A developer implemented a Saga using Kafka but notices that compensating events are not triggered on failure. What is the most likely cause?
AThe service does not listen to failure events to trigger compensation
BKafka topics are not partitioned correctly
CKafka consumer group ID is missing
DKafka brokers are overloaded
Step-by-Step Solution
Solution:
  1. Step 1: Identify compensation trigger mechanism

    Compensation happens when a service listens for failure events and reacts by sending rollback events.
  2. Step 2: Analyze the problem

    If compensations are missing, likely the service is not listening or handling failure events properly.
  3. Final Answer:

    The service does not listen to failure events to trigger compensation -> Option A
  4. Quick Check:

    Missing compensation = no failure event listener [OK]
Quick Trick: Compensation needs failure event listeners active [OK]
Common Mistakes:
  • Blaming Kafka partitions for compensation logic
  • Confusing consumer group ID with compensation triggers
  • Assuming broker overload causes missing compensations

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes