Bird
Raised Fist0

Which Kafka producer configuration combination ensures at-most-once delivery?

easy🧠 Conceptual Q2 of Q15
Kafka - Message Delivery Semantics

Which Kafka producer configuration combination ensures at-most-once delivery?

A<code>acks=all</code> and <code>retries=5</code>
B<code>acks=0</code> and <code>retries=0</code>
C<code>acks=1</code> and <code>retries=3</code>
D<code>acks=all</code> and <code>retries=0</code>
Step-by-Step Solution
Solution:
  1. Step 1: Identify at-most-once settings

    At-most-once requires no retries and no acknowledgments.
  2. Step 2: Analyze options

    Only acks=0 and retries=0 disables retries and acknowledgments.
  3. Final Answer:

    acks=0 and retries=0 -> Option B
  4. Quick Check:

    No retries + no acks = at-most-once [OK]
Quick Trick: Set acks=0 and retries=0 for at-most-once [OK]
Common Mistakes:
MISTAKES
  • Setting retries > 0 which enables retries
  • Using acks=all which waits for all replicas

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes