Bird
0
0

Which Kafka configuration setting controls the size of the buffer used to batch data before sending to brokers?

easy📝 Conceptual Q11 of 15
Kafka - Performance Tuning
Which Kafka configuration setting controls the size of the buffer used to batch data before sending to brokers?
A<code>fetch.min.bytes</code>
B<code>batch.size</code>
C<code>buffer.memory</code>
D<code>linger.ms</code>
Step-by-Step Solution
Solution:
  1. Step 1: Understand buffer settings in Kafka producer

    The batch.size setting controls the maximum size of a batch of records sent to brokers.
  2. Step 2: Differentiate from other buffer-related settings

    buffer.memory controls total memory for buffering, fetch.min.bytes is for consumers, and linger.ms controls delay before sending batches.
  3. Final Answer:

    batch.size -> Option B
  4. Quick Check:

    Batch size controls batch buffer size [OK]
Quick Trick: Batch size sets buffer for sending data batches [OK]
Common Mistakes:
  • Confusing total buffer memory with batch size
  • Mixing consumer fetch settings with producer buffers
  • Thinking linger.ms controls buffer size

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes