Bird
0
0

What will happen if max.poll.records is set to 10 in a Kafka consumer configuration?

medium📝 Predict Output Q5 of 15
Kafka - Consumers

What will happen if max.poll.records is set to 10 in a Kafka consumer configuration?

AConsumer will fetch exactly 10 records every time
BConsumer will fetch 10 records total and stop
CConsumer will fetch up to 10 records per poll call
DConsumer will ignore this setting and fetch all available records
Step-by-Step Solution
Solution:
  1. Step 1: Understand max.poll.records meaning

    This setting limits the maximum number of records returned in one poll call.
  2. Step 2: Clarify the behavior

    The consumer fetches up to the limit, but may return fewer if fewer are available.
  3. Final Answer:

    Consumer will fetch up to 10 records per poll call -> Option C
  4. Quick Check:

    max.poll.records limits max records per poll [OK]
Quick Trick: max.poll.records caps records per poll call [OK]
Common Mistakes:
  • Thinking it fetches exactly that number always
  • Assuming it limits total records consumed
  • Believing it is ignored by consumer

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes