Bird
0
0

In RabbitMQ, what is the effect of setting prefetch_count to 0 for a consumer?

medium📝 Command Output Q5 of 15
RabbitMQ - Performance Tuning

In RabbitMQ, what is the effect of setting prefetch_count to 0 for a consumer?

AThe consumer will automatically reject all messages
BThe consumer will not receive any messages until prefetch_count is increased
CThe consumer will only receive one message at a time
DThe consumer will receive unlimited messages without waiting for acknowledgments
Step-by-Step Solution
Solution:
  1. Step 1: Understand prefetch_count=0

    Setting prefetch_count to 0 disables the limit on unacknowledged messages.
  2. Step 2: Effect on message delivery

    The consumer can receive an unlimited number of messages without waiting for acknowledgments, which may cause overload.
  3. Final Answer:

    The consumer will receive unlimited messages without waiting for acknowledgments -> Option D
  4. Quick Check:

    Prefetch 0 means no limit on unacked messages [OK]
Quick Trick: Prefetch 0 means unlimited unacked messages [OK]
Common Mistakes:
MISTAKES
  • Assuming prefetch 0 blocks message delivery
  • Thinking it limits to one message
  • Believing it causes message rejection

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More RabbitMQ Quizzes