Apache Kafka Objective Questions and Answers

This Apache Kafka quiz contains carefully curated objective questions with correct answers and clear explanations. It is designed for developers, data engineers, and interview preparation, covering Kafka internals, distributed messaging concepts, fault tolerance, and real-time streaming best practices.

Practice Apache Kafka MCQs with Detailed Explanations

Answer at least 12 questions to submit.

16

What is KRaft mode in Kafka?

High
17

Which configuration controls message durability?

Medium
18

What does acks=all mean?

High
19

Which API is used for stream processing in Kafka?

Medium
20

What is Kafka Connect used for?

Medium
21

Which partitioner decides message distribution?

High
22

What is log compaction?

High
23

Which retention policy deletes messages after time?

Medium
24

What happens when retention.ms expires?

Medium
25

What is the default partitioner behavior without a key?

High
26

Which metric indicates consumer lag?

Medium
27

What is a rebalance in Kafka?

High
28

What causes frequent rebalances?

High
29

Which serializer converts objects to bytes?

Medium
30

What is the role of deserializer?

Medium