21.) What is the minimum replication factor recommended for production?
22.) What happens when the leader partition fails?
A) Topic becomes unavailable
B) Kafka elects a new leader from ISR
C) Partition is deleted
D) Messages are lost
23.) How is message load distributed across partitions?
A) All messages go to one partition
B) Based on offset
C) Based on key (if provided) or round-robin (if not)
D) Based on time
24.) What happens when you increase the number of partitions for a topic?
A) Messages in existing partitions are redistributed
B) Existing partition offsets are reset
C) Messages are deleted
D) New partitions start with offset 0
25.) Can consumers read from a specific partition directly?
A) No
B) Yes, using assign() method
C) Only from the latest offset
D) Only in CLI
26.) What configuration sets the minimum ISR required to produce messages?
A) min.replica.count
B) replica.ack.min
C) min.insync.replicas
D) partition.ack.min
27.) What Kafka feature allows automatic topic creation?
A) enable.topic.auto.create
B) auto.create.topics.enable
C) topic.auto.enabled
D) auto.create.topic
28.) What happens if a topic doesn’t exist and auto.create.topics.enable=false?
A) Kafka creates the topic anyway
B) Message is routed to the default topic
C) Broker restarts
D) Producer throws a TopicAuthorizationException
29.) How do you delete a Kafka topic using CLI?
A) kafka-delete.sh
B) kafka-topics.sh –delete
C) kafka-remove-topic.sh
D) kafka-topic-remove.sh
30.) What is the main benefit of using multiple partitions in a topic?
A) Reduces storage
B) Enables real-time processing
C) Allows parallelism and scalability
D) Forces message compression
Related