Recall & Review
beginner
What is a consumer group in Kafka?
A consumer group is a set of consumers that work together to read data from Kafka topics. Each consumer in the group reads from different partitions, allowing the group to share the workload.
Click to reveal answer
beginner
How do consumer groups enable parallel processing?
Consumer groups split the topic's partitions among their members. Each consumer reads from its assigned partitions independently, so multiple consumers process data at the same time.
Click to reveal answer
beginner
Why can't a single consumer read all partitions in parallel?
A single consumer reads partitions one by one or sequentially. It cannot process multiple partitions at the same time, so it cannot achieve parallel processing alone.
Click to reveal answer
intermediate
What happens if there are more consumers than partitions in a consumer group?
Some consumers will be idle because each partition can only be assigned to one consumer. Parallel processing is limited by the number of partitions.
Click to reveal answer
intermediate
How does Kafka ensure each message is processed once in a consumer group?
Kafka assigns each partition to only one consumer in the group, so messages in a partition are read by only one consumer, preventing duplicate processing.
Click to reveal answer
What does a Kafka consumer group do?
✗ Incorrect
Consumer groups divide partitions among consumers so they can process data in parallel.
If a topic has 4 partitions and a consumer group has 2 consumers, how are partitions assigned?
✗ Incorrect
Partitions are divided evenly among consumers for parallel processing.
Can a single consumer process multiple partitions at the same time?
✗ Incorrect
A single consumer reads partitions one after another, not in parallel.
What limits the maximum parallelism in Kafka consumer groups?
✗ Incorrect
Parallelism is limited by how many partitions the topic has.
Why does Kafka assign each partition to only one consumer in a group?
✗ Incorrect
Assigning partitions exclusively prevents duplicate processing of messages.
Explain how consumer groups in Kafka enable parallel processing of messages.
Think about how dividing work helps multiple people finish faster.
You got /3 concepts.
Describe the relationship between partitions and consumers in a Kafka consumer group.
Consider how tasks are shared among team members.
You got /3 concepts.