Question 1 · Apache Kafka Fundamentals
Which delivery semantic means a consumer may process a message more than once if a failure occurs after processing but before the offset is committed?
Show answer & explanation
Correct answer: D
- D. At-least-once
At-least-once delivery commits offsets after processing; if a failure happens before the commit, the message is reprocessed on restart (possible duplicates). At-most-once (B) commits before processing (possible loss), exactly-once (A) avoids both with additional guarantees, and 'no-delivery' (C) isn't a semantic.