Learn Labs
Exactly-Once

Self-test

Check your understanding

Self-test9 questions

—/9
  1. What does a Kafka transaction guarantee that idempotence alone doesn't?

  2. Are aborted records removed from the log? What decides whether a consumer sees them?

  3. Why did the first version of the lab show no aborted records even to read_uncommitted?

  4. What are the transaction coordinator and control records?

  5. Explain consume-transform-produce and why committing offsets inside the transaction matters.

  6. How does init_transactions() fence a zombie producer?

  7. Why doesn't exactly-once cover a consumer that charges a credit card?

  8. Why do offsets in transactional topics have gaps?

  9. Design question

    A service reads orders, enriches them with customer data, and writes to an enriched topic that billing consumes. Make it exactly-once end to end, and say where it stops being exactly-once.