🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Kafka: all 10 questions

Quiz: Kafka · Question 9 of 10

Saving an order to the database and publishing its event cannot be one transaction. What does the outbox pattern do?

Saving an order to the database and publishing its event cannot be one transaction. What does the outbox pattern do?

  1. A.Publishes the event first, then saves the order
  2. B.Stores the event in the same database transaction as the order, then publishes it afterwards
  3. C.Sends the event by email
  4. D.Disables Kafka retries
Answer & explanation

Correct answer: Stores the event in the same database transaction as the order, then publishes it afterwards

A separate step reads the outbox table and publishes reliably.

Can you get the rest right without peeking?

Take the timed Quiz: Kafka quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →