Bird
0
0

You have a Kafka producer with retries=5 but enable.idempotency=false. What problem might occur?

medium📝 Debug Q14 of 15
Kafka - Producers
You have a Kafka producer with retries=5 but enable.idempotency=false. What problem might occur?
AMessages will be encrypted automatically
BDuplicate messages may be produced on retries
CProducer will crash on first failure
DMessages will never be sent
Step-by-Step Solution
Solution:
  1. Step 1: Understand retries without idempotency

    Retries resend messages on failure, but without idempotency duplicates can happen.
  2. Step 2: Identify the problem

    Without idempotency, each retry may produce the same message again, causing duplicates.
  3. Final Answer:

    Duplicate messages may be produced on retries -> Option B
  4. Quick Check:

    No idempotency + retries = duplicates risk [OK]
Quick Trick: Retries without idempotency cause duplicates [OK]
Common Mistakes:
  • Thinking producer crashes on failure
  • Assuming messages never send
  • Confusing encryption with idempotency

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes