nerdexam
Confluent

CCDAK · Question #194

You have a consumer group with default configuration settings reading messages from your Kafka cluster. You need to optimize throughput so the consumer group processes more messages in the same…

The correct answer is B. Increase the number of bytes the consumers read with each fetch request. Increasing the number of bytes consumers read with each fetch request allows them to process more messages per poll, thereby increasing overall throughput.

Developing Kafka Consumers

Question

You have a consumer group with default configuration settings reading messages from your Kafka cluster. You need to optimize throughput so the consumer group processes more messages in the same amount of time. Which change should you make to increase the consumption throughput?

Options

  • ARemove some consumers from the consumer group.
  • BIncrease the number of bytes the consumers read with each fetch request.
  • CDisable auto commit and having the consumers manually commit offsets.
  • DDecrease the session timeout of each consumer.

How the community answered

(32 responses)
  • A
    9% (3)
  • B
    81% (26)
  • C
    3% (1)
  • D
    6% (2)

Explanation

Increasing the number of bytes consumers read with each fetch request allows them to process more messages per poll, thereby increasing overall throughput.

Topics

#consumer throughput#fetch.min.bytes#fetch configuration#consumption optimization

Community Discussion

No community discussion yet for this question.

Full CCDAK Practice