Bird
0
0

How does increasing buffer.memory interact with max.block.ms in Kafka producer configuration?

hard📝 Application Q9 of 15
Kafka - Performance Tuning
How does increasing buffer.memory interact with max.block.ms in Kafka producer configuration?
ALarger buffer.memory reduces chance of blocking, so max.block.ms is less likely to be reached
BIncreasing buffer.memory increases blocking time, causing max.block.ms to trigger more often
Cbuffer.memory and max.block.ms are unrelated and do not affect each other
Dmax.block.ms controls buffer.memory size dynamically
Step-by-Step Solution
Solution:
  1. Step 1: Understand buffer.memory and blocking

    Larger buffer.memory means more space to buffer messages, reducing blocking occurrences.
  2. Step 2: Role of max.block.ms

    max.block.ms sets max time producer blocks when buffer is full; less blocking means less chance to hit this timeout.
  3. Final Answer:

    Larger buffer.memory reduces chance of blocking, so max.block.ms is less likely to be reached -> Option A
  4. Quick Check:

    More buffer.memory means fewer blocks and timeouts [OK]
Quick Trick: More buffer.memory means less blocking and fewer max.block.ms hits [OK]
Common Mistakes:
  • Thinking buffer.memory increases blocking time
  • Assuming max.block.ms changes buffer size
  • Believing they are unrelated

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes