Permissions & Access Control — Concept Check
Questions on Permissions & Access Control. RabbitMQ permissions are per-vhost with configure, write, and read regexes per user; grant least-privilege access — separate produce-only and consume-only users.
Questions in this quiz
8 questions on Permissions & Access Control — Concept Check. Work through them here, then start the quiz to answer them and see your score.
1.A RabbitMQ producer is unable to publish messages to an exchange. The permissions for the user are set as configure: "^$", write: "^orders\..*", read: "^$". What could be the issue?
- AThe exchange name doesn't match the 'orders.*' pattern.
- BThe configure permission is incorrectly set.
- CThe user needs read permissions to publish.
- DThe user must have administrator tags.
2.A RabbitMQ consumer user has the following permissions: configure: "^$", write: "^$", read: "^orders\..*". What operations can this user perform?
- ADeclare new exchanges and queues.
- BAccess the management UI.
- CConsume from queues matching 'orders.*'.
- DPublish messages to any exchange.
3.A developer is granted 'management' tag in RabbitMQ. What access does this provide?
- AFull access to user management.
- BOnly view statistics and logs.
- CLogin to the management UI without admin rights.
- DDeclare and delete exchanges.
4.A RabbitMQ service account has permissions set as configure: "^$", write: "^$", read: "^$". What does this imply?
- AThe account can only consume messages.
- BThe account can publish but not consume messages.
- CThe account cannot perform any operations.
- DThe account can fully manage queues and exchanges.
5.An administrator user in RabbitMQ can perform which of the following actions?
- APublish messages to exchanges.
- BOnly read statistics from the dashboard.
- CConsume messages from queues.
- DManage users and permissions.
6.Why is it important to restrict the default 'guest' user in RabbitMQ?
- ATo prevent unauthorized remote access.
- BTo enable TLS for secure connections.
- CTo automatically configure exchanges.
- DTo allow guest access from any network.
7.If a RabbitMQ user has the 'monitoring' tag, what can they do?
- AManage user permissions.
- BPublish messages to exchanges.
- CView statistics and logs in the dashboard.
- DConsume messages from queues.
8.What is the purpose of setting the write permission regex to "^orders\..*" for a RabbitMQ producer?
- ATo restrict access to the management UI.
- BTo prevent consuming from any queue.
- CTo allow publishing to exchanges that match 'orders.*'.
- DTo enable declaring new exchanges.