nerdexam
Confluent

CCAAK · Question #18

You want to increase producer throughput for messages sent to your Kafka cluster by tuning the properties 'batch.size' and 'linger.ms'. According to best practices, what should you do?

The correct answer is D. Increase 'batch.size' and increase 'linger.ms'. Larger batches allow producers to send more data per request, and increasing linger time gives the producer more opportunity to accumulate records into each batch. Together, these settings improve throughput by maximizing batch efficiency before sending data to the broker.

Apache Kafka Fundamentals

Question

You want to increase producer throughput for messages sent to your Kafka cluster by tuning the properties 'batch.size' and 'linger.ms'. According to best practices, what should you do?

Options

  • ADecrease 'batch.size' and decrease 'linger.ms'.
  • BDecrease 'batch.size' and increase 'linger.ms'.
  • CIncrease 'batch.size' and decrease 'linger.ms'.
  • DIncrease 'batch.size' and increase 'linger.ms'.

How the community answered

(32 responses)
  • A
    6% (2)
  • B
    3% (1)
  • C
    16% (5)
  • D
    75% (24)

Explanation

Larger batches allow producers to send more data per request, and increasing linger time gives the producer more opportunity to accumulate records into each batch. Together, these settings improve throughput by maximizing batch efficiency before sending data to the broker.

Topics

#producer throughput#batch.size#linger.ms#producer tuning

Community Discussion

No community discussion yet for this question.

Full CCAAK Practice