Which command resets a consumer group's committed offset to an earlier point?

Study for the Apache Kafka CCDAK Test. Use flashcards and multiple choice questions, with hints and explanations for each answer. Prepare effectively for your certification!

Multiple Choice

Which command resets a consumer group's committed offset to an earlier point?

Explanation:
Resetting a consumer group's committed offset to an earlier point is done with the kafka-consumer-groups tool by using the --reset-offsets option. This command targets a specific group (and topic, if you want to narrow it) and moves the committed position backward, such as to the earliest available offset or to a specific offset you choose. In practice you’d run something like --reset-offsets --to-earliest (often paired with --execute to apply the change, or --dry-run to preview). Once applied, the next time the group’s consumers read messages, they will start from that earlier point, effectively reprocessing messages from there. Other approaches don’t accomplish this targeted offset movement: restarting the broker doesn’t change what offsets are committed for a group; deleting the consumer group removes its metadata and offsets rather than repositioning them; and changing the topic replication factor affects storage and replication, not the consumer’s committed offsets.

Resetting a consumer group's committed offset to an earlier point is done with the kafka-consumer-groups tool by using the --reset-offsets option. This command targets a specific group (and topic, if you want to narrow it) and moves the committed position backward, such as to the earliest available offset or to a specific offset you choose. In practice you’d run something like --reset-offsets --to-earliest (often paired with --execute to apply the change, or --dry-run to preview). Once applied, the next time the group’s consumers read messages, they will start from that earlier point, effectively reprocessing messages from there.

Other approaches don’t accomplish this targeted offset movement: restarting the broker doesn’t change what offsets are committed for a group; deleting the consumer group removes its metadata and offsets rather than repositioning them; and changing the topic replication factor affects storage and replication, not the consumer’s committed offsets.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy