Bird
Raised Fist0

Which Kafka producer configuration is required to enable idempotent message sending?

easy🧠 Conceptual Q2 of Q15
Kafka - Message Delivery Semantics

Which Kafka producer configuration is required to enable idempotent message sending?

Abatch.size=16384
Bcompression.type=snappy
Cacks=all and enable.idempotence=true
Dretries=0
Step-by-Step Solution
Solution:
  1. Step 1: Identify settings related to idempotence

    Idempotence requires enable.idempotence=true and acks=all to ensure full acknowledgment.
  2. Step 2: Check other options

    Compression, retries, and batch size are unrelated to enabling idempotence.
  3. Final Answer:

    acks=all and enable.idempotence=true -> Option C
  4. Quick Check:

    Idempotence config = acks=all + enable.idempotence [OK]
Quick Trick: Enable idempotence with acks=all for full delivery guarantee [OK]
Common Mistakes:
MISTAKES
  • Setting retries=0 disables retries but not idempotence
  • Confusing compression with idempotence
  • Ignoring the need for acks=all

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes