Bird
Raised Fist0

Which configuration must be enabled in a Kafka producer to support Exactly-once semantics?

easy📝 Syntax Q12 of Q15
Kafka - Message Delivery Semantics
Which configuration must be enabled in a Kafka producer to support Exactly-once semantics?
Amax.poll.records = 500
Backs = 0
Ccompression.type = gzip
Denable.idempotence = true
Step-by-Step Solution
Solution:
  1. Step 1: Identify EOS required producer setting

    Enabling idempotence (enable.idempotence = true) is necessary for EOS to avoid duplicates.
  2. Step 2: Review other options

    Options B, C, and D relate to acknowledgments, compression, and consumer polling, not EOS.
  3. Final Answer:

    enable.idempotence = true -> Option D
  4. Quick Check:

    Idempotence enabled = EOS support [OK]
Quick Trick: Enable idempotence for EOS in producer config [OK]
Common Mistakes:
MISTAKES
  • Setting acks to 0 disables guarantees
  • Confusing compression with EOS
  • Using consumer settings instead of producer

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes