0
0
RabbitMQdevops~10 mins

Virtual hosts for isolation in RabbitMQ - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the command to list all virtual hosts in RabbitMQ.

RabbitMQ
rabbitmqctl list_[1]
Drag options to blanks, or click blank then click option'
Aqueues
Bconnections
Cvhosts
Dusers
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'queues' instead of 'vhosts' will list queues, not virtual hosts.
Using 'users' or 'connections' will list other entities, not virtual hosts.
2fill in blank
medium

Complete the command to add a new virtual host named 'dev_env'.

RabbitMQ
rabbitmqctl add_[1] dev_env
Drag options to blanks, or click blank then click option'
Avhost
Buser
Cqueue
Dexchange
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'add_user' adds a user, not a virtual host.
Using 'add_queue' or 'add_exchange' adds other entities, not virtual hosts.
3fill in blank
hard

Fix the error in the command to delete a virtual host named 'test_env'.

RabbitMQ
rabbitmqctl delete_[1] test_env
Drag options to blanks, or click blank then click option'
Auser
Bvhost
Cqueue
Dexchange
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'delete_user' deletes a user, not a virtual host.
Using 'delete_queue' or 'delete_exchange' deletes other entities.
4fill in blank
hard

Fill both blanks to set permissions for user 'alice' on virtual host 'prod_env'.

RabbitMQ
rabbitmqctl set_permissions -p [1] [2] ".*" ".*" ".*"
Drag options to blanks, or click blank then click option'
Aprod_env
Balice
Cbob
Ddev_env
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping the virtual host and username positions.
Using the wrong virtual host or username.
5fill in blank
hard

Fill all three blanks to list permissions for user 'charlie' on virtual host 'test_env'.

RabbitMQ
rabbitmqctl list_permissions -p [1] | grep [2] | awk '[3]'
Drag options to blanks, or click blank then click option'
Atest_env
Bcharlie
C{print $1, $2, $3}
D{print $2, $3, $4}
Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong virtual host or username.
Using an incorrect awk print statement that prints wrong columns.