Bird
0
0

Given this Kafka event flow in choreography style:

medium📝 Predict Output Q13 of 15
Kafka - Event-Driven Architecture
Given this Kafka event flow in choreography style:
Service A publishes event 'OrderCreated' to topic 'orders'.
Service B listens to 'orders' and publishes 'PaymentProcessed' to topic 'payments'.
Service C listens to 'payments' and updates inventory.

What happens if Service B fails to publish 'PaymentProcessed' event?
AService C will not update inventory because it never receives the event.
BService C updates inventory anyway because it listens to 'orders'.
CService A retries publishing 'OrderCreated' event automatically.
DA central orchestrator will resend 'PaymentProcessed' event.
Step-by-Step Solution
Solution:
  1. Step 1: Trace event flow in choreography

    Service A publishes 'OrderCreated', Service B reacts and publishes 'PaymentProcessed', Service C listens to 'payments'.
  2. Step 2: Analyze failure impact

    If Service B fails to publish 'PaymentProcessed', Service C never receives that event and cannot update inventory.
  3. Final Answer:

    Service C will not update inventory because it never receives the event. -> Option A
  4. Quick Check:

    Missing event means downstream service does not act [OK]
Quick Trick: In choreography, missing event stops downstream actions [OK]
Common Mistakes:
  • Assuming Service C listens to 'orders' directly
  • Thinking Service A retries automatically
  • Expecting a central orchestrator in choreography

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes