Bird
0
0

Which Kafka consumer configuration helps reduce CPU usage by waiting for more data before returning?

easy📝 Conceptual Q2 of 15
Kafka - Performance Tuning
Which Kafka consumer configuration helps reduce CPU usage by waiting for more data before returning?
Afetch.min.bytes
Bmax.poll.records
Csession.timeout.ms
Dauto.offset.reset
Step-by-Step Solution
Solution:
  1. Step 1: Identify fetch.min.bytes purpose

    This setting defines the minimum amount of data the broker should wait to accumulate before responding to a fetch request.
  2. Step 2: How it reduces CPU usage

    By waiting for more data, the consumer reduces the number of fetch calls, lowering CPU overhead.
  3. Final Answer:

    fetch.min.bytes -> Option A
  4. Quick Check:

    fetch.min.bytes = wait for more data [OK]
Quick Trick: fetch.min.bytes delays fetch until enough data arrives [OK]
Common Mistakes:
  • Confusing with max.poll.records which limits records per poll
  • Thinking session.timeout.ms controls fetch size
  • Assuming auto.offset.reset affects fetch timing

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes