0
0
RabbitMQdevops~20 mins

User and permission management in RabbitMQ - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
RabbitMQ User & Permission Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
2: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
A
Listing users ...
alice	[monitoring]
bob	[administrator]
B
Listing users ...
alice	[]
bob	[]
C
Listing users ...
alice	[administrator]
bob	[monitoring]
DError: user not found
Attempts:
2 left
💡 Hint
Remember that user tags are assigned explicitly and shown in brackets after the username.
Configuration
intermediate
2:00remaining
Setting RabbitMQ Permissions
Which configuration command correctly grants the user alice full permissions on the virtual host /?
Arabbitmqctl set_permissions -p / alice "." "." "."
Brabbitmqctl set_permissions alice / ".*" ".*" ".*"
Crabbitmqctl set_permissions -p alice / ".*" ".*" ".*"
Drabbitmqctl set_permissions -p / alice ".*" ".*" ".*"
Attempts:
2 left
💡 Hint
The correct syntax requires specifying the virtual host with -p before the username.
Troubleshoot
advanced
2: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?
AUser bob has no write permission on the virtual host for the queue.
BUser bob is not created in RabbitMQ.
CUser bob is not tagged as administrator.
DUser bob's password has expired.
Attempts:
2 left
💡 Hint
Publishing requires write permission on the virtual host.
🔀 Workflow
advanced
2: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?
A1,3,2
B3,1,2
C2,1,3
D1,2,3
Attempts:
2 left
💡 Hint
User must exist before assigning tags or permissions.
Best Practice
expert
2:00remaining
Best Practice for RabbitMQ User Permissions
Which option best follows the principle of least privilege when assigning permissions to a RabbitMQ user?
AGrant full permissions ".*" on all virtual hosts to simplify management.
BGrant only the necessary read and write permissions on specific virtual hosts and queues the user needs.
CCreate one user with full permissions and share credentials among team members.
DAssign administrator tag to all users to avoid permission issues.
Attempts:
2 left
💡 Hint
Least privilege means giving only what is needed, no more.