Bird
Raised Fist0

Which Kafka consumer setting helps achieve at-least-once delivery?

easy🧠 Conceptual Q2 of Q15
Kafka - Message Delivery Semantics
Which Kafka consumer setting helps achieve at-least-once delivery?
AManually commit offsets after processing
BDisable retries on failure
CSet max.poll.records to 1
DEnable auto commit of offsets
Step-by-Step Solution
Solution:
  1. Step 1: Identify offset commit strategies

    At-least-once delivery requires that offsets are committed only after processing messages successfully to avoid losing unprocessed messages.
  2. Step 2: Choose the correct offset commit method

    Manual offset commit after processing ensures messages are not lost and can be retried if failure occurs, matching at-least-once semantics.
  3. Final Answer:

    Manually commit offsets after processing -> Option A
  4. Quick Check:

    Manual offset commit = at-least-once delivery [OK]
Quick Trick: Commit offsets after processing to avoid message loss [OK]
Common Mistakes:
MISTAKES
  • Using auto commit which may lose messages
  • Disabling retries which reduces reliability
  • Assuming max.poll.records affects delivery guarantee

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes