Bird
0
0

After creating a topic with 3 partitions, what will be the output of the command:

medium📝 Predict Output Q5 of 15
Kafka - Topics and Partitions
After creating a topic with 3 partitions, what will be the output of the command:
kafka-topics.sh --describe --topic my-topic
?
ATopic: my-topic PartitionCount: 3 ReplicationFactor: 1
BTopic: my-topic PartitionCount: 1 ReplicationFactor: 3
CError: Topic my-topic does not exist
DTopic: my-topic PartitionCount: 3 ReplicationFactor: 3
Step-by-Step Solution
Solution:
  1. Step 1: Recall topic description output format

    The describe command shows partition count and replication factor for the topic.
  2. Step 2: Match created topic properties

    Since topic was created with 3 partitions and default replication factor 1, output matches Topic: my-topic PartitionCount: 3 ReplicationFactor: 1.
  3. Final Answer:

    Topic: my-topic PartitionCount: 3 ReplicationFactor: 1 -> Option A
  4. Quick Check:

    Describe shows partitions and replication factor [OK]
Quick Trick: Describe command shows partitions and replication factor [OK]
Common Mistakes:
  • Confusing partition count with replication factor
  • Expecting replication factor 3 by default
  • Assuming topic does not exist

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes