Bird
0
0

What is wrong with this command?

medium📝 Debug Q7 of 15
Kafka - Topics and Partitions
What is wrong with this command?
kafka-topics.sh --create --topic logs --partitions 3 --replication-factor
ATopic name is invalid
BPartitions flag is incorrect
CMissing replication factor value after the flag
DCommand will create topic with default replication factor
Step-by-Step Solution
Solution:
  1. Step 1: Check command flags and values

    The '--replication-factor' flag requires a value after it, which is missing here.
  2. Step 2: Understand command error

    Missing value causes the command to fail or throw an error.
  3. Final Answer:

    Missing replication factor value after the flag -> Option C
  4. Quick Check:

    Flags must have values [OK]
Quick Trick: Always provide values after flags [OK]
Common Mistakes:
  • Omitting values after flags
  • Assuming default replication factor applies
  • Misreading partitions flag

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes