Bird
0
0

Which Kafka CLI tool is used to create a new topic?

easy📝 Conceptual Q11 of 15
Kafka - Basics and Event Streaming
Which Kafka CLI tool is used to create a new topic?
A<code>kafka-topics.sh --create</code>
B<code>kafka-console-producer.sh</code>
C<code>kafka-console-consumer.sh</code>
D<code>kafka-configs.sh</code>
Step-by-Step Solution
Solution:
  1. Step 1: Identify the tool for topic management

    The kafka-topics.sh tool is used to manage topics including creation, deletion, and listing.
  2. Step 2: Confirm the create option usage

    Using --create with kafka-topics.sh creates a new topic.
  3. Final Answer:

    kafka-topics.sh --create -> Option A
  4. Quick Check:

    Topic creation = kafka-topics.sh --create [OK]
Quick Trick: Topic creation always uses kafka-topics.sh with --create [OK]
Common Mistakes:
  • Confusing producer or consumer tools for topic creation
  • Using kafka-configs.sh which manages configs, not topics
  • Omitting --create option

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes