Apache Kafka Complete Practice Exam 2025 – All-in-One Prep

Question: 1 / 400

Which command is used to create a new topic in Kafka?

kafka-topics.sh --add

kafka-topics.sh --init

kafka-topics.sh --create

The command that is used to create a new topic in Kafka is `kafka-topics.sh --create`. This command is specifically designed to initiate the process of establishing a new topic within the Kafka cluster. When executing this command, you typically provide additional parameters such as the topic name, the number of partitions, and the replication factor, which define the topic's configuration and how it behaves within the Kafka ecosystem.

This command is part of the Kafka command-line tools that facilitate interaction with the Kafka broker, allowing users to manage topics effectively. The other options mentioned do not correspond to valid commands for topic creation in Kafka and would not successfully initiate the creation process. Understanding the correct command enables users to manage and scale their Kafka topics properly, ensuring their messaging system functions as expected.

Get further explanation with Examzify DeepDiveBeta

kafka-topics.sh --new

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy