0
0
Kafkadevops~10 mins

Consumer lag monitoring in Kafka - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the command to list consumer groups in Kafka.

Kafka
kafka-consumer-groups.sh --bootstrap-server localhost:9092 --list --[1]
Drag options to blanks, or click blank then click option'
Adescribe
Ball
Cgroup
Dverbose
Attempts:
3 left
💡 Hint
Common Mistakes
Using '--list' with '--describe' together incorrectly
Omitting the '--group' option when describing a group
2fill in blank
medium

Complete the command to describe a specific consumer group named 'my-group'.

Kafka
kafka-consumer-groups.sh --bootstrap-server localhost:9092 --describe --group [1]
Drag options to blanks, or click blank then click option'
Amy-group
Btest-group
Cdefault
Dgroup1
Attempts:
3 left
💡 Hint
Common Mistakes
Using a wrong or default group name
Omitting the group name
3fill in blank
hard

Fix the error in the command to monitor consumer lag by completing the missing option.

Kafka
kafka-consumer-groups.sh --bootstrap-server localhost:9092 --describe --group my-group --[1]
Drag options to blanks, or click blank then click option'
Alag
Boffsets
Creset-offsets
Dstate
Attempts:
3 left
💡 Hint
Common Mistakes
Using '--lag' which is not a valid option
Using '--reset-offsets' which changes offsets instead of showing lag
4fill in blank
hard

Fill both blanks to create a command that resets the consumer group offsets to the earliest position.

Kafka
kafka-consumer-groups.sh --bootstrap-server localhost:9092 --group my-group --[1] --to-[2] earliest --execute
Drag options to blanks, or click blank then click option'
Areset-offsets
Blatest
Cearliest
Ddescribe
Attempts:
3 left
💡 Hint
Common Mistakes
Using '--describe' instead of '--reset-offsets'
Using '--to-latest' instead of '--to-earliest'
5fill in blank
hard

Fill all three blanks to create a command that describes consumer group 'analytics', shows lag, and uses a specific bootstrap server.

Kafka
kafka-consumer-groups.sh --bootstrap-server [1] --describe --group [2] --[3]
Drag options to blanks, or click blank then click option'
Alocalhost:9092
Banalytics
Coffsets
Dmy-group
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong bootstrap server address
Using wrong group name
Omitting the '--offsets' option