nerdexam
Confluent

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.

Apache Kafka Fundamentals

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)
  • A
    5% (1)
  • B
    11% (2)
  • C
    5% (1)
  • D
    79% (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

#consumer group#consumer lag#partition parallelism#throughput tuning

Community Discussion

No community discussion yet for this question.

Full CCAAK Practice