Recall & Review
beginner
What does At-least-once delivery mean in Kafka?
It means each message is delivered to the consumer one or more times, ensuring no message is lost but duplicates can occur.
Click to reveal answer
intermediate
How does Kafka achieve At-least-once delivery?
By committing offsets only after processing messages, so if a failure happens before commit, messages are reprocessed.
Click to reveal answer
beginner
What is the risk of At-least-once delivery?
The risk is duplicate message processing, because messages may be delivered more than once.
Click to reveal answer
intermediate
Which Kafka consumer setting helps control At-least-once delivery behavior?
The
enable.auto.commit setting controls if offsets are committed automatically or manually, affecting delivery guarantees.Click to reveal answer
beginner
Why might you choose At-least-once delivery over At-most-once?
Because it guarantees no message loss, which is important for critical data even if duplicates happen.
Click to reveal answer
What does At-least-once delivery guarantee in Kafka?
✗ Incorrect
At-least-once delivery ensures messages are never lost but may be delivered multiple times.
Which Kafka feature helps avoid message loss in At-least-once delivery?
✗ Incorrect
Manual offset commit after processing ensures messages are reprocessed if failure occurs before commit.
What is a common side effect of At-least-once delivery?
✗ Incorrect
Duplicates happen because messages may be delivered again if offsets are not committed.
If
enable.auto.commit is set to true, what happens?✗ Incorrect
Auto commit can cause offsets to be committed before processing, risking message loss (At-most-once).
Why is At-least-once delivery preferred for critical data?
✗ Incorrect
Critical data needs no loss, so At-least-once is safer despite duplicates.
Explain how Kafka ensures At-least-once delivery and what trade-offs it involves.
Think about when offsets are saved and what happens if a failure occurs.
You got /3 concepts.
Describe the difference between At-least-once and At-most-once delivery in Kafka.
Consider when offsets are committed relative to message processing.
You got /3 concepts.