Bird
0
0

In a Kafka-based Saga, if a compensation event fails to execute, what is the best practice?

medium📝 Predict Output Q5 of 15
Kafka - Event-Driven Architecture
In a Kafka-based Saga, if a compensation event fails to execute, what is the best practice?
ARollback the entire Kafka cluster to a previous state.
BIgnore the failure and proceed with the next transaction.
CLog the failure and retry compensation until success or manual intervention.
DDelete the failed compensation event from the topic.
Step-by-Step Solution
Solution:
  1. Step 1: Understand compensation failure impact

    Compensation failure means the system is inconsistent and needs attention.
  2. Step 2: Best practice for compensation failure

    Retry compensation and alert for manual intervention if retries fail.
  3. Final Answer:

    Log the failure and retry compensation until success or manual intervention. -> Option C
  4. Quick Check:

    Compensation failure = retry and alert [OK]
Quick Trick: Retry compensation failures; alert if persistent [OK]
Common Mistakes:
  • Ignoring compensation failures
  • Trying to rollback Kafka cluster
  • Deleting events from Kafka topics

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes