Bird
0
0

Why would you configure the prefetch_count for a RabbitMQ consumer?

easy📝 Conceptual Q1 of 15
RabbitMQ - Performance Tuning

Why would you configure the prefetch_count for a RabbitMQ consumer?

ATo increase the total number of queues in RabbitMQ
BTo limit the number of unacknowledged messages sent to the consumer
CTo set the maximum size of the message payload
DTo control the number of producers connected to the broker
Step-by-Step Solution
Solution:
  1. Step 1: Understand prefetch_count

    The prefetch_count controls how many messages a consumer can receive without acknowledging.
  2. Step 2: Purpose of limiting unacknowledged messages

    Limiting unacknowledged messages prevents the consumer from being overwhelmed and helps balance load.
  3. Final Answer:

    To limit the number of unacknowledged messages sent to the consumer -> Option B
  4. Quick Check:

    Prefetch controls unacknowledged messages [OK]
Quick Trick: Prefetch limits unacked messages to balance load [OK]
Common Mistakes:
MISTAKES
  • Confusing prefetch_count with queue size
  • Thinking prefetch_count controls producers
  • Assuming it sets message size limits

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More RabbitMQ Quizzes