11.) Which broker acts as the controller in Kafka?
A) Any broker chosen by Zookeeper
B) The oldest broker
C) Broker with highest ID
D) Always broker 0
12.) Which element does a consumer group subscribe to?
A) Individual messages
B) Partitions
C) Producers
D) Topics
13.) Kafka ensures message ordering:
A) Across all topics
B) Within each consumer
C) Across all brokers
D) Within a partition
14.) What is log compaction used for?
A) Encrypting messages
B) Removing duplicate or old records by key
C) Partition balancing
D) Schema validation
15.) What is the maximum number of partitions a topic can have?
A) 1
B) 10
C) Unlimited
D) 100
16.) What is the default number of partitions for a new topic (if not specified)?
17.) What is the primary benefit of having more partitions in a topic?
A) Increased durability
B) Improved ordering
C) Better parallelism and throughput
D) Better message encryption
18.) A Kafka topic with 6 partitions can be consumed by how many consumers in a group in parallel?
19.) Kafka uses what for high performance disk writes?
A) XML storage
B) Write-ahead logging
C) Memory cache only
D) SSD-level compression
20.) Which component in Kafka tracks and manages offsets?
A) Consumer
B) Kafka Connect
C) Zookeeper
D) Schema Registry
Related