Bird
Raised Fist0

Which command syntax correctly describes consumer group lag for group 'analytics-group'?

easy📝 Syntax Q3 of Q15
Kafka - Monitoring and Operations
Which command syntax correctly describes consumer group lag for group 'analytics-group'?
Akafka-consumer-groups.sh --list --group analytics-group
Bkafka-consumer-groups.sh --describe --group analytics-group
Ckafka-topics.sh --describe --group analytics-group
Dkafka-consumer-groups.sh --delete --group analytics-group
Step-by-Step Solution
Solution:
  1. Step 1: Understand command options

    --describe shows detailed info including lag; --list lists groups; --delete removes group; kafka-topics.sh does not handle groups.
  2. Step 2: Match correct syntax for lag info

    Using --describe with --group and group name is correct to see lag.
  3. Final Answer:

    kafka-consumer-groups.sh --describe --group analytics-group -> Option B
  4. Quick Check:

    Describe lag command = --describe --group [OK]
Quick Trick: Use --describe with --group to see lag [OK]
Common Mistakes:
MISTAKES
  • Using --list instead of --describe for lag
  • Trying kafka-topics.sh for consumer groups
  • Using --delete which removes group

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes