Bird
0
0

Given this consumer config snippet:

medium📝 Predict Output Q4 of 15
Kafka - Performance Tuning
Given this consumer config snippet:
props.put("max.poll.records", "500");
props.put("fetch.max.bytes", "1048576");
props.put("fetch.min.bytes", "1");

What is the maximum number of records the consumer can receive in one poll?
A1048576
B500
C1
DUnlimited
Step-by-Step Solution
Solution:
  1. Step 1: Identify max.poll.records role

    This setting limits the maximum number of records returned in a single poll call.
  2. Step 2: Understand fetch.max.bytes and fetch.min.bytes

    fetch.max.bytes limits data size, fetch.min.bytes is minimum data to fetch; neither directly limits record count.
  3. Final Answer:

    500 -> Option B
  4. Quick Check:

    max.poll.records = max records per poll [OK]
Quick Trick: max.poll.records caps records per poll call [OK]
Common Mistakes:
  • Confusing fetch.max.bytes as record count limit
  • Assuming fetch.min.bytes limits records
  • Thinking poll returns unlimited records

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes