Bird
0
0

Which Kafka CLI tool is primarily used to list all topics available in the Kafka cluster?

easy📝 Conceptual Q1 of 15
Kafka - Basics and Event Streaming
Which Kafka CLI tool is primarily used to list all topics available in the Kafka cluster?
Akafka-configs.sh
Bkafka-console-producer.sh
Ckafka-console-consumer.sh
Dkafka-topics.sh with --list option
Step-by-Step Solution
Solution:
  1. Step 1: Identify the tool for topic management

    The kafka-topics.sh tool manages topics including creation, deletion, and listing.
  2. Step 2: Understand the --list option

    The --list option with kafka-topics.sh lists all topics in the cluster.
  3. Final Answer:

    kafka-topics.sh with --list option -> Option D
  4. Quick Check:

    List topics = kafka-topics.sh --list [OK]
Quick Trick: Use kafka-topics.sh --list to see all topics quickly [OK]
Common Mistakes:
  • Confusing kafka-console-producer.sh as a listing tool
  • Using kafka-console-consumer.sh to list topics
  • Trying to list topics with kafka-configs.sh

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes