What is the role of ZooKeeper in a Kafka cluster?
Storing message data
Performing data aggregation
Consuming messages from topics
Managing and coordinating Kafka brokers
What is the role of the zookeeper.connect property in Kafka configuration?
zookeeper.connect
Specifies the ZooKeeper quorum for Kafka to connect to.
Sets the data retention period for messages.
Defines the compression codec for messages.
Configures the replication factor for topics.
How are messages within a Kafka topic organized?
Randomly distributed
Grouped by consumer group
Divided into ordered, immutable sequences called partitions
Sorted by message key
What is the fundamental unit of data organization in Kafka?
Partition
Message
Topic
Broker
What is the primary function of a Kafka producer?
Storing messages persistently
Managing user permissions
Publishing messages to a topic
Reading messages from a topic
Where is the Kafka data directory configured?
In the topic.properties file, using the data.dir property.
topic.properties
data.dir
It's configured automatically based on the operating system.
In the ZooKeeper configuration, using the kafka.data.path property.
kafka.data.path
In the server.properties file, using the log.dirs property.
server.properties
log.dirs
How are messages within a Kafka topic further divided for scalability and parallelism?
Segments
Clusters
Partitions
Offsets
Which component in Kafka is responsible for publishing messages to topics?
Producer
Consumer
ZooKeeper
Which of the following describes Kafka's message delivery semantics?
At-least-once delivery with potential for duplicates.
Messages are delivered in a random order.
Best-effort delivery with no guarantee of order.
Guaranteed exactly-once delivery for all messages.
What does it mean for a Kafka message to be 'persisted'?
It is immediately deleted after being read
It is encrypted for security purposes
It is stored in memory for fast access
It is written to disk and stored durably