Bird
0
0

If Kafka's fetch.min.bytes is set to 50000, what happens when a consumer requests data?

medium📝 Predict Output Q5 of 15
Kafka - Performance Tuning
If Kafka's fetch.min.bytes is set to 50000, what happens when a consumer requests data?
AConsumer fetches data only if broker CPU usage is low
BConsumer immediately receives any available data regardless of size
CConsumer fetches exactly 50 messages each time
DConsumer waits until at least 50KB of data is available before receiving
Step-by-Step Solution
Solution:
  1. Step 1: Understand fetch.min.bytes meaning

    This setting tells Kafka to wait until minimum bytes are ready before responding.
  2. Step 2: Apply to consumer behavior

    The consumer will wait until 50KB data is ready to optimize network usage.
  3. Final Answer:

    Consumer waits until at least 50KB of data is available before receiving -> Option D
  4. Quick Check:

    fetch.min.bytes controls consumer wait = D [OK]
Quick Trick: fetch.min.bytes sets minimum data size before consumer fetch [OK]
Common Mistakes:
MISTAKES
  • Thinking consumer fetches immediately
  • Confusing bytes with message count
  • Assuming broker CPU affects fetch

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes