Bird
0
0

When attempting to access http://localhost:15672/api/queues via a GET request, you receive a 401 Unauthorized error. What should you verify first to resolve this?

medium📝 Command Output Q5 of 15
RabbitMQ - Monitoring and Management
When attempting to access http://localhost:15672/api/queues via a GET request, you receive a 401 Unauthorized error. What should you verify first to resolve this?
ACheck if the RabbitMQ server is running on port 5672
BEnsure that the request includes valid basic authentication credentials
CConfirm that the management plugin is disabled
DVerify that the firewall is blocking port 15672
Step-by-Step Solution
Solution:
  1. Step 1: Check Authentication

    The 401 Unauthorized error typically indicates missing or invalid credentials when accessing the HTTP API.
  2. Step 2: Confirm Credentials Are Sent

    Ensure the GET request includes basic authentication headers with a valid username and password.
  3. Final Answer:

    Ensure that the request includes valid basic authentication credentials -> Option B
  4. Quick Check:

    Authentication missing or incorrect causes 401 Unauthorized [OK]
Quick Trick: Always include basic auth credentials for HTTP API requests [OK]
Common Mistakes:
MISTAKES
  • Assuming the management plugin is disabled without checking
  • Confusing port 5672 (AMQP) with 15672 (HTTP API)
  • Ignoring the need for authentication headers

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More RabbitMQ Quizzes