Bird
0
0

You want to monitor RabbitMQ queue health by alerting when the total messages (ready + unacknowledged) exceed 1000. Which approach is best to automate this monitoring?

hard📝 Best Practice Q15 of 15
RabbitMQ - Monitoring and Management
You want to monitor RabbitMQ queue health by alerting when the total messages (ready + unacknowledged) exceed 1000. Which approach is best to automate this monitoring?
AUse the Management Plugin's HTTP API to fetch queue metrics and trigger alerts
BManually run <code>rabbitmqctl list_queues</code> daily and check counts
CCheck server CPU usage as a proxy for queue length
DRestart RabbitMQ server every hour to clear queues
Step-by-Step Solution
Solution:
  1. Step 1: Identify automated monitoring methods

    The Management Plugin provides an HTTP API to programmatically get queue metrics for automation.
  2. Step 2: Evaluate options for alerting

    Manual checks are slow and error-prone; CPU usage does not reflect queue length; restarting server is disruptive and not a solution.
  3. Final Answer:

    Use the Management Plugin's HTTP API to fetch queue metrics and trigger alerts -> Option A
  4. Quick Check:

    Automate with API = best practice [OK]
Quick Trick: Automate with Management Plugin API for alerts [OK]
Common Mistakes:
MISTAKES
  • Relying on manual checks
  • Using unrelated metrics like CPU usage
  • Restarting server to fix queue issues

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More RabbitMQ Quizzes