CCAAK · Question #92
A group of five consumers is consuming a topic with 10 partitions. You notice that the consumer group is not catching up with the rate of messages produced in the topic. You need to recommend a…
The correct answer is B. Increase the number of consumers in the group. The consumer group has fewer consumers than partitions, so each consumer is handling multiple partitions. Adding more consumers increases parallelism, allowing more partitions to be processed simultaneously and improving overall throughput.
Question
A group of five consumers is consuming a topic with 10 partitions. You notice that the consumer group is not catching up with the rate of messages produced in the topic. You need to recommend a solution to the application team to improve the throughput of the consumer group. Which solution should you recommend?
Options
- AIncrease the number of partitions of the topic.
- BIncrease the number of consumers in the group.
- CReduce the number of partitions of the topic.
- DIncrease the replication factor of the topic.
How the community answered
(28 responses)- A4% (1)
- B79% (22)
- C4% (1)
- D14% (4)
Explanation
The consumer group has fewer consumers than partitions, so each consumer is handling multiple partitions. Adding more consumers increases parallelism, allowing more partitions to be processed simultaneously and improving overall throughput.
Topics
Community Discussion
No community discussion yet for this question.