When should a consumer commit an offset for reliable processing?
Practice this question from Quiz: Kafka Consumer Design and Reliability, with options and an explanation.
Question
When should a consumer commit an offset for reliable processing?
Option A — Correct answer
After the message has been processed successfully
Option B
Before reading the message
Option C
Only once per day
Option D
Before writing to downstream systems
Explanation
Post-processing commits avoid marking unprocessed messages as done.