What is the purpose of the auto.create.topics.enable configuration in Kafka?
auto.create.topics.enable
Configures automatic data balancing across partitions within a topic.
Allows dynamic adjustment of the replication factor for existing topics.
Enables automatic topic deletion after a specified retention period.
Automatically creates topics if they don't exist when producers or consumers try to access them.
What command line option is used with the Kafka console producer to specify the topic to which messages should be sent?
--bootstrap-server
--topic
--partition
--message
What is a key advantage of Kafka's 'publish-subscribe' model?
It guarantees real-time message delivery with no latency
It eliminates the need for message brokers
It allows multiple consumers to process the same data independently
It reduces the need for data transformation
What command line tool is used to create a new topic in Kafka?
kafka-console-consumer.sh
kafka-topics.sh
kafka-console-producer.sh
zookeeper-shell.sh
What is the role of the zookeeper.connect property in Kafka configuration?
zookeeper.connect
Sets the data retention period for messages.
Configures the replication factor for topics.
Defines the compression codec for messages.
Specifies the ZooKeeper quorum for Kafka to connect to.
What is a key advantage of Kafka's distributed architecture?
It provides fault tolerance and scalability by replicating data across multiple brokers.
It ensures messages are always processed in real-time with minimal latency.
It limits the amount of data Kafka can handle, making it more manageable.
It simplifies the deployment and management of Kafka clusters.
To view the configuration details of a specific topic, which command would you use?
kafka-topics.sh --describe --topic <topic-name>
kafka-topics.sh --list --topic <topic-name>
kafka-console-consumer.sh --describe --topic <topic-name>
kafka-configs.sh --describe --topic <topic-name>
What is the purpose of a message key in Kafka?
Determine the message's partition assignment
Store the message's timestamp
Ensure message ordering within a topic
Uniquely identify a message within a partition
Which command would you use to list all existing topics in a Kafka cluster?
kafka-topics.sh --describe
kafka-configs.sh --list
kafka-console-consumer.sh --list
kafka-topics.sh --list
How are messages in Kafka organized and categorized?
Into queues with a first-in, first-out (FIFO) order.
Into files stored in a hierarchical directory structure.
Into tables with rows and columns like a relational database.
Into topics, which are further divided into partitions.