Bird
0
0

Identify the error in this Kafka Streams configuration for exactly-once:

medium📝 Debug Q6 of 15
Kafka - Advanced Stream Processing
Identify the error in this Kafka Streams configuration for exactly-once:
props.put("processing.guarantee", "at_least_once");
props.put("enable.idempotence", "true");
ABoth properties are correct for exactly-once
Bprocessing.guarantee should be set to exactly_once
Cenable.idempotence should be false for exactly-once
Dprocessing.guarantee is deprecated and ignored
Step-by-Step Solution
Solution:
  1. Step 1: Check processing.guarantee value

    For exactly-once, processing.guarantee must be "exactly_once".
  2. Step 2: Evaluate enable.idempotence

    enable.idempotence=true is correct and needed.
  3. Final Answer:

    processing.guarantee should be set to exactly_once -> Option B
  4. Quick Check:

    processing.guarantee=exactly_once needed [OK]
Quick Trick: Set processing.guarantee=exactly_once for exactly-once [OK]
Common Mistakes:
  • Leaving processing.guarantee as at_least_once
  • Thinking idempotence=false is needed
  • Ignoring processing.guarantee setting

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes