11.) Can Kafka topics be configured with a different number of partitions?
A) No, it’s fixed globally
B) Only during cluster setup
C) Yes, each topic can have its own partition count
D) Only one partition is allowed per topic
12.) What is a leader partition?
A) A partition assigned to a leader consumer
B) The main copy of a partition that handles all read/write requests
C) Partition with highest offset
D) A partition containing replicated metadata
13.) Who controls the assignment of partition leaders in Kafka?
A) Kafka Connect
B) Kafka broker
C) ZooKeeper / Kafka controller
D) Consumer
14.) What is the role of ISR (In-Sync Replica) in Kafka?
A) Backup of producers
B) Consumers waiting for data
C) Faulty partitions
D) Replicas that are in sync with the leader
15.) Can the number of partitions in a Kafka topic be increased after creation?
A) No
B) Yes, but not recommended
C) Yes, using –alter
D) Only through ZooKeeper
16.) What happens if no key is provided while producing a Kafka message?
A) Kafka assigns a partition randomly (round-robin)
B) It goes to partition 0
C) Message is dropped
D) Message is stored in buffer
17.) What is the maximum number of partitions a topic can have?
A) 100
B) 1000
C) 10,000
D) There is no hard limit
18.) How is ordering guaranteed in Kafka?
A) Across all brokers
B) Only within a partition
C) Across all topics
D) Kafka doesn’t guarantee order
19.) Which CLI command shows detailed topic info like partition count and replication?
A) kafka-topics.sh –describe
B) kafka-configs.sh –describe
C) kafka-topics.sh –status
D) kafka-metadata.sh
20.) What is a Kafka topic offset?
A) ID of a topic
B) Number of partitions
C) Sequence number of a message in a partition
D) Consumer ID
Related