Bird
0
0

In a Saga pattern implemented with Kafka, what role does the Kafka topic typically play?

easy📝 Conceptual Q2 of 15
Kafka - Event-Driven Architecture
In a Saga pattern implemented with Kafka, what role does the Kafka topic typically play?
AIt acts as a durable event log to coordinate transaction steps.
BIt locks the resources during the transaction.
CIt stores the final transaction state only.
DIt replaces the need for compensation transactions.
Step-by-Step Solution
Solution:
  1. Step 1: Understand Kafka's role in Saga

    Kafka topics store events durably and allow services to react asynchronously.
  2. Step 2: Coordination via event log

    Kafka topics act as the event log that sequences transaction steps and triggers compensations if needed.
  3. Final Answer:

    It acts as a durable event log to coordinate transaction steps. -> Option A
  4. Quick Check:

    Kafka topic role = durable event log [OK]
Quick Trick: Kafka topics log events, not lock resources [OK]
Common Mistakes:
  • Thinking Kafka locks resources
  • Assuming Kafka stores only final states
  • Believing Kafka replaces compensation logic

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes