Which broker setting controls the retention period for consumer offsets when no new data is read for a period (for example seven days)?

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 broker setting controls the retention period for consumer offsets when no new data is read for a period (for example seven days)?

Explanation:
Kafka keeps track of what each consumer group has read by storing offsets on the broker, and it will purge those offsets after a configured retention window if the group stays inactive. The setting that controls this retention window is the one that specifies the time in minutes. So, offset.retention.minutes is the correct choice. If you want seven days, you’d set it to 10080 minutes (7 days × 24 hours × 60 minutes). Other options don’t match the actual broker configuration for this behavior: they refer to different units or use a name that doesn’t correspond to the broker’s offset retention setting.

Kafka keeps track of what each consumer group has read by storing offsets on the broker, and it will purge those offsets after a configured retention window if the group stays inactive. The setting that controls this retention window is the one that specifies the time in minutes. So, offset.retention.minutes is the correct choice. If you want seven days, you’d set it to 10080 minutes (7 days × 24 hours × 60 minutes). Other options don’t match the actual broker configuration for this behavior: they refer to different units or use a name that doesn’t correspond to the broker’s offset retention setting.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy