Bird
Raised Fist0

What is the output behavior when a Kafka consumer reads from a topic with EOS enabled and a transaction is aborted?

medium📝 Predict Output Q5 of Q15
Kafka - Message Delivery Semantics
What is the output behavior when a Kafka consumer reads from a topic with EOS enabled and a transaction is aborted?
AConsumer does not see any messages from the aborted transaction
BConsumer sees all messages including aborted ones
CConsumer receives duplicate messages from aborted transactions
DConsumer crashes due to transaction abort
Step-by-Step Solution
Solution:
  1. Step 1: Understand consumer visibility with EOS

    Consumers only see committed transactions; aborted transactions are invisible.
  2. Step 2: Effect of aborted transactions on consumer

    Messages from aborted transactions are discarded and not delivered to consumers.
  3. Final Answer:

    Consumer does not see any messages from the aborted transaction -> Option A
  4. Quick Check:

    Aborted transaction messages = hidden from consumer [OK]
Quick Trick: Aborted transactions are invisible to consumers [OK]
Common Mistakes:
MISTAKES
  • Assuming aborted messages are delivered
  • Expecting duplicates from aborted transactions
  • Thinking consumer crashes on abort

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes