Which command creates a Kafka topic named 'my-first-topic' with 3 partitions and replication factor 3 using ZooKeeper?

Study for the CCDAK Apache Kafka Test. Use flashcards and multiple choice questions with hints and explanations for each question. Prepare thoroughly for your exam!

Multiple Choice

Which command creates a Kafka topic named 'my-first-topic' with 3 partitions and replication factor 3 using ZooKeeper?

Explanation:
This tests the ZooKeeper-based topic creation syntax: you connect to ZooKeeper, specify the topic name, request creation, and then set the topic’s configuration (partitions and replication factor). The command that follows this pattern places the topic name immediately after the ZooKeeper address, then uses the create action, and finally supplies the desired settings. This aligns with common, well-documented usage: you create the topic named my-first-topic with 3 partitions and a replication factor of 3. The replication factor indicates how many copies of each partition will be stored across brokers for fault tolerance, and the number of partitions determines how much parallelism you can achieve for consumers. Other forms either use a different order that isn’t as standard in examples, or attempt a delete, which does not create a topic.

This tests the ZooKeeper-based topic creation syntax: you connect to ZooKeeper, specify the topic name, request creation, and then set the topic’s configuration (partitions and replication factor). The command that follows this pattern places the topic name immediately after the ZooKeeper address, then uses the create action, and finally supplies the desired settings. This aligns with common, well-documented usage: you create the topic named my-first-topic with 3 partitions and a replication factor of 3. The replication factor indicates how many copies of each partition will be stored across brokers for fault tolerance, and the number of partitions determines how much parallelism you can achieve for consumers. Other forms either use a different order that isn’t as standard in examples, or attempt a delete, which does not create a topic.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy