Recall & Review
beginner
What does At-most-once delivery mean in message systems like Kafka?
It means each message is delivered zero or one time. Messages might be lost but never duplicated.
Click to reveal answer
intermediate
How does Kafka achieve at-most-once delivery?
By committing the message offset before processing, so if a failure happens, some messages might be skipped but never repeated.
Click to reveal answer
beginner
What is a risk of at-most-once delivery?
Messages can be lost if a failure happens after committing the offset but before processing the message.
Click to reveal answer
intermediate
Compare at-most-once and at-least-once delivery.
At-most-once: messages delivered zero or one time (no duplicates, possible loss).<br>At-least-once: messages delivered one or more times (no loss, possible duplicates).
Click to reveal answer
beginner
Why might a system choose at-most-once delivery?
To prioritize speed and simplicity over guaranteed delivery, especially when losing some messages is acceptable.
Click to reveal answer
In Kafka, what happens if you commit the offset before processing a message?
✗ Incorrect
Committing offset before processing means messages might be skipped if failure occurs, so at-most-once delivery is achieved.
Which delivery guarantee allows message loss but no duplicates?
✗ Incorrect
At-most-once delivery can lose messages but never delivers duplicates.
What is a downside of at-most-once delivery?
✗ Incorrect
At-most-once delivery risks losing messages if failures happen after offset commit.
If you want to avoid duplicates but can accept some message loss, which delivery mode fits best?
✗ Incorrect
At-most-once delivery avoids duplicates but may lose messages.
Which Kafka feature controls which messages a consumer has processed?
✗ Incorrect
Offset tracks the position of the consumer in the message stream.
Explain in your own words what at-most-once delivery means and how Kafka can implement it.
Think about when the offset is saved and what happens if a failure occurs.
You got /4 concepts.
Describe the trade-offs between at-most-once and at-least-once delivery in Kafka.
Consider what happens if a failure occurs before or after processing.
You got /4 concepts.