Bird
0
0

Why does increasing max.poll.records beyond a certain point sometimes reduce consumer throughput?

hard📝 Conceptual Q10 of 15
Kafka - Performance Tuning
Why does increasing max.poll.records beyond a certain point sometimes reduce consumer throughput?
ABecause processing large batches increases poll processing time, causing session timeouts.
BBecause Kafka brokers limit max.poll.records to 500 by default.
CBecause increasing max.poll.records reduces fetch.max.bytes automatically.
DBecause consumers stop committing offsets when max.poll.records is too high.
Step-by-Step Solution
Solution:
  1. Step 1: Understand max.poll.records impact on processing

    Higher max.poll.records means more records per poll, increasing processing time per batch.
  2. Step 2: Effect on consumer session and throughput

    Long processing can delay next poll, causing session timeouts and rebalances, reducing throughput.
  3. Final Answer:

    Because processing large batches increases poll processing time, causing session timeouts. -> Option A
  4. Quick Check:

    Too large max.poll.records can cause session timeout [OK]
Quick Trick: Too many records per poll can cause session timeout [OK]
Common Mistakes:
MISTAKES
  • Believing brokers limit max.poll.records
  • Thinking max.poll.records affects fetch.max.bytes
  • Assuming offset commits stop at high max.poll.records

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes