How are messages within a Kafka topic further divided for scalability and parallelism?
Clusters
Offsets
Segments
Partitions
What is the role of a Kafka consumer?
Manage the cluster and its configuration
Publish messages to topics
Store message offsets
Subscribe to and process messages from topics
What happens to messages in Kafka after they are consumed?
They remain in the topic until manually deleted
They are archived to a long-term storage system
They are moved to a separate 'consumed messages' queue
They are immediately deleted from the topic
Which configuration parameter determines the number of partitions a topic will have?
replication.factor
num.partitions
topic.partitions
partition.count
What is the purpose of a message key in Kafka?
Uniquely identify a message within a partition
Store the message's timestamp
Determine the message's partition assignment
Ensure message ordering within a topic
What is the primary mechanism for achieving fault tolerance in Kafka?
Use of a distributed commit log
Data replication across partitions
Message acknowledgments
Message queueing
Which Kafka CLI tool is used to produce messages to a Kafka topic?
kafka-console-consumer.sh
kafka-topics.sh
kafka-configs.sh
kafka-console-producer.sh
What is the significance of the replication.factor setting in topic configuration?
Determines the number of brokers where topic data is replicated.
Specifies the maximum message size allowed in the topic.
Sets the compression algorithm for messages.
Configures the message delivery semantics (at-least-once, at-most-once).
Which of these is NOT a common use case for Kafka?
Storing large files like images and videos.
Data pipelines for ingesting and processing data.
Building a message queue for asynchronous communication.
Real-time data analytics and monitoring.
What is a key advantage of Kafka's 'publish-subscribe' model?
It guarantees real-time message delivery with no latency
It reduces the need for data transformation
It allows multiple consumers to process the same data independently
It eliminates the need for message brokers