Bird
Raised Fist0

Which Kafka CLI command provides detailed information about the current state of all brokers in the cluster?

easy📝 Syntax Q3 of Q15
Kafka - Monitoring and Operations
Which Kafka CLI command provides detailed information about the current state of all brokers in the cluster?
Akafka-broker-api-versions.sh --bootstrap-server localhost:9092
Bkafka-consumer-groups.sh --list --bootstrap-server localhost:9092
Ckafka-topics.sh --list --bootstrap-server localhost:9092
Dkafka-configs.sh --describe --bootstrap-server localhost:9092
Step-by-Step Solution
Solution:
  1. Step 1: Identify the command to check broker status

    The command kafka-broker-api-versions.sh queries brokers to show their API versions and confirms their availability.
  2. Step 2: Understand other options

    kafka-consumer-groups.sh --list lists consumer groups, not broker status.
    kafka-topics.sh --list lists topics, not broker health.
    kafka-configs.sh --describe shows configs but not broker status.
  3. Final Answer:

    kafka-broker-api-versions.sh --bootstrap-server localhost:9092 -> Option A
  4. Quick Check:

    Command that queries brokers directly for status [OK]
Quick Trick: Use kafka-broker-api-versions.sh to check broker health [OK]
Common Mistakes:
MISTAKES
  • Confusing topic or consumer commands with broker status commands
  • Using kafka-topics.sh to check broker health
  • Assuming kafka-configs.sh shows broker availability

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes