Bird
0
0

Which Kafka producer configuration enables exactly-once semantics?

easy📝 Syntax Q12 of 15
Kafka - Advanced Stream Processing
Which Kafka producer configuration enables exactly-once semantics?
Acompression.type = none
Benable.idempotence = true
Cacks = 0
Dmax.in.flight.requests.per.connection = 10
Step-by-Step Solution
Solution:
  1. Step 1: Identify config for exactly-once

    Enabling idempotence ensures the producer can retry without duplicates.
  2. Step 2: Match config options

    Only 'enable.idempotence = true' enables this feature.
  3. Final Answer:

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

    Idempotence enabled = exactly-once [OK]
Quick Trick: Idempotence true enables exactly-once in Kafka producer [OK]
Common Mistakes:
  • Choosing acks=0 which disables acknowledgments
  • Confusing compression with processing guarantees
  • Setting max.in.flight.requests without idempotence

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes