CCAAK · Question #56
You notice that consumers of Topic X are starting to fall behind. - Topic X has four partitions - The consumer group has two consumers Which change will increase the performance of the consumer group?
The correct answer is D. Increase the number of consumers in the consumer group. With 4 partitions and only 2 consumers, some consumers are handling multiple partitions, which may cause lag if processing is slow. By increasing the number of consumers in the group (up to 4), Kafka can assign one partition per consumer, improving parallelism and throughput.
Question
You notice that consumers of Topic X are starting to fall behind.
- Topic X has four partitions
- The consumer group has two consumers
Which change will increase the performance of the consumer group?
Options
- AIncrease the partitions in Topic X.
- BCreate a new consumer group for Topic X containing two consumers.
- CDecrease the consumer acknowledgment property to increase throughput.
- DIncrease the number of consumers in the consumer group.
How the community answered
(19 responses)- A5% (1)
- B11% (2)
- C5% (1)
- D79% (15)
Explanation
With 4 partitions and only 2 consumers, some consumers are handling multiple partitions, which may cause lag if processing is slow. By increasing the number of consumers in the group (up to 4), Kafka can assign one partition per consumer, improving parallelism and throughput.
Topics
Community Discussion
No community discussion yet for this question.