Understanding Kafka Topics and Partitioning is crucial for designing a scalable, fault-tolerant, and high-throughput Kafka-based system. Topics are the core abstraction in Kafka where messages are published, while partitions are the unit of parallelism, scaling, and ordering within a topic.
These MCQs are designed to help both beginners and experienced developers prepare for interviews and certification exams by testing their knowledge of topic configuration, partitioning logic, producer and consumer behavior with partitions, replication, and more.
1.) What is a Kafka topic?
2.) What are Kafka partitions?
3.) What is the default number of partitions in a newly created topic (if not specified)?
4.) In Kafka, how is data replicated?
5.) What does a Kafka partition guarantee?
6.) What determines the partition a message is sent to in Kafka?
7.) Which of the following is NOT a partitioning strategy in Kafka?
8.) Which of the following is the default Kafka partitioner?
9.) Which command lists all topics in Kafka using CLI?
10.) What does replication factor define in a Kafka topic?