Challenge - 5 Problems
RabbitMQ User & Permission Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
RabbitMQ User Listing Output
What is the output of the command
rabbitmqctl list_users after creating two users named alice and bob with tags administrator and monitoring respectively?RabbitMQ
rabbitmqctl add_user alice password123 rabbitmqctl add_user bob password456 rabbitmqctl set_user_tags alice administrator rabbitmqctl set_user_tags bob monitoring rabbitmqctl list_users
Attempts:
2 left
💡 Hint
Remember that user tags are assigned explicitly and shown in brackets after the username.
✗ Incorrect
The command
list_users shows all users with their assigned tags. Since alice was tagged as administrator and bob as monitoring, their tags appear accordingly.❓ Configuration
intermediate2:00remaining
Setting RabbitMQ Permissions
Which configuration command correctly grants the user alice full permissions on the virtual host
/?Attempts:
2 left
💡 Hint
The correct syntax requires specifying the virtual host with -p before the username.
✗ Incorrect
The command syntax is
rabbitmqctl set_permissions -p [vhost] [user] [conf] [write] [read]. Option D correctly uses this syntax with regex patterns ".*" to allow all.❓ Troubleshoot
advanced2:00remaining
Diagnosing Permission Denied Error
A user bob tries to publish messages to a queue but receives a permission denied error. Which of the following is the most likely cause?
Attempts:
2 left
💡 Hint
Publishing requires write permission on the virtual host.
✗ Incorrect
Permission denied errors when publishing usually mean the user lacks write permission on the virtual host. Tags like administrator do not grant permissions automatically.
🔀 Workflow
advanced2:00remaining
User Creation and Permission Setup Workflow
What is the correct order of commands to create a user charlie, assign the tag management, and grant read and write permissions on virtual host
/app?Attempts:
2 left
💡 Hint
User must exist before assigning tags or permissions.
✗ Incorrect
First create the user, then assign tags, then set permissions. Permissions depend on the user existing.
✅ Best Practice
expert2:00remaining
Best Practice for RabbitMQ User Permissions
Which option best follows the principle of least privilege when assigning permissions to a RabbitMQ user?
Attempts:
2 left
💡 Hint
Least privilege means giving only what is needed, no more.
✗ Incorrect
Best practice is to limit user permissions to only what they require to reduce security risks. Administrator tags and full permissions increase risk.