CCAAK · Question #8
The Consumer property 'auto offset reset' determines what to do if there is no valid offset for a Consumer Group. Which scenario is an example of a valid offset and therefore the 'auto.offset.reset'…
The correct answer is D. When an offset points to a message that has been removed by compaction but is still within the. In this scenario, the offset itself is still valid, even though the record at that offset was compacted away. The consumer can continue consuming from the next available record. Therefore, auto.offset.reset does NOT apply, because there is a valid offset present.
Question
The Consumer property ‘auto offset reset’ determines what to do if there is no valid offset for a Consumer Group. Which scenario is an example of a valid offset and therefore the ‘auto.offset.reset’ does NOT apply?
Options
- AThe Consumer offset is greater than the last offset in the partition (log end offset).
- BThe Consumer offset is less than the smallest offset in the partition (log start offset).
- CThe Consumer Group started for the first time.
- DWhen an offset points to a message that has been removed by compaction but is still within the
How the community answered
(25 responses)- A12% (3)
- B8% (2)
- C4% (1)
- D76% (19)
Explanation
In this scenario, the offset itself is still valid, even though the record at that offset was compacted away. The consumer can continue consuming from the next available record. Therefore, auto.offset.reset does NOT apply, because there is a valid offset present.
Topics
Community Discussion
No community discussion yet for this question.