Bird
0
0

Given a consumer with prefetch count set to 3, and it has 2 unacknowledged messages, how many more messages can RabbitMQ deliver to it before waiting for acknowledgments?

medium📝 Command Output Q4 of 15
RabbitMQ - Performance Tuning

Given a consumer with prefetch count set to 3, and it has 2 unacknowledged messages, how many more messages can RabbitMQ deliver to it before waiting for acknowledgments?

A0
B2
C1
D3
Step-by-Step Solution
Solution:
  1. Step 1: Understand prefetch count meaning

    Prefetch count 3 means max 3 unacknowledged messages allowed.
  2. Step 2: Calculate remaining allowed messages

    2 unacknowledged messages means 2 slots used, so 1 slot remains for delivery.
  3. Final Answer:

    1 -> Option C
  4. Quick Check:

    Prefetch 3 - 2 unacked = 1 message allowed [OK]
Quick Trick: Prefetch minus unacked = messages allowed [OK]
Common Mistakes:
MISTAKES
  • Counting acknowledged messages as unacknowledged
  • Assuming prefetch is total messages delivered
  • Ignoring current unacknowledged count

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More RabbitMQ Quizzes