At-Most-Once Delivery — Concept Check
Questions on At-Most-Once Delivery. At-most-once commits offsets before processing; a crash after commit but before processing causes data loss — acceptable for metrics but not for financial or order data.
Questions in this quiz
7 questions on At-Most-Once Delivery — Concept Check. Work through them here, then start the quiz to answer them and see your score.
1.A consumer application using Kafka with enable.auto.commit=true crashes after polling records. What happens to the unprocessed records?
- AThey are committed after restart.
- BThey are lost permanently and not reprocessed.
- CThey are reprocessed after restart.
- DThey are stored in a temporary buffer.
2.In which scenario is at-most-once delivery most suitable?
- AProcessing financial transactions.
- BHandling inventory updates.
- CUpdating user-facing state.
- DAggregating telemetry data.
3.A system using at-most-once delivery crashes during processing. What is a likely outcome?
- ASome records may be lost permanently.
- BDuplicate records are created.
- CAll records are reprocessed after restart.
- DData integrity is guaranteed.
4.What is the primary trade-off of using at-most-once delivery?
- AComplex implementation requirements.
- BPotential data loss but no duplicates.
- CIncreased latency due to retries.
- DGuaranteed data integrity.
5.Why might someone incorrectly choose at-most-once for order processing?
- AThey believe it ensures data integrity.
- BThey think it prevents duplicates.
- CThey assume it increases throughput.
- DThey believe it reduces latency.
6.A Kafka consumer with enable.auto.commit=true processes metrics data. Why is this configuration acceptable?
- AMetrics require exactly-once processing.
- BDuplicate metrics are more harmful than missing ones.
- CMetrics data is critical and must not be lost.
- DMissing a few metrics is acceptable.
7.If a consumer commits offsets after processing, which delivery semantic is being used?
- AExactly-once
- BAt-least-once
- CNo delivery semantic
- DAt-most-once