0
0
RabbitMQdevops~10 mins

Management plugin and HTTP API 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 enable the RabbitMQ management plugin.

RabbitMQ
rabbitmq-plugins [1] rabbitmq_management
Drag options to blanks, or click blank then click option'
Alist
Bdisable
Cenable
Dstatus
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'disable' instead of 'enable' disables the plugin.
Using 'list' only shows plugins but does not enable them.
2fill in blank
medium

Complete the URL to access the RabbitMQ management HTTP API for listing all queues.

RabbitMQ
http://localhost:15672/api/[1]
Drag options to blanks, or click blank then click option'
Aqueues
Bchannels
Cexchanges
Dbindings
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'exchanges' returns exchanges, not queues.
Using 'bindings' or 'channels' returns other resources.
3fill in blank
hard

Fix the error in the curl command to get RabbitMQ overview via HTTP API.

RabbitMQ
curl -u guest:guest http://localhost:15672/api/[1]
Drag options to blanks, or click blank then click option'
Aqueue
Boverview
Cqueues
Dstatus
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'queue' or 'queues' returns queue details, not overview.
Using 'status' is not a valid API endpoint.
4fill in blank
hard

Fill both blanks to create a dictionary comprehension that lists queue names and their message counts from API data.

RabbitMQ
{queue['name']: queue[1] for queue in data if queue[2] [3] 0}
Drag options to blanks, or click blank then click option'
A['messages']
B>
C==
D['messages_ready']
Attempts:
3 left
💡 Hint
Common Mistakes
Using '==' instead of '>' filters only queues with exactly zero messages.
Using 'messages_ready' may not reflect total messages.
5fill in blank
hard

Fill all three blanks to create a dictionary comprehension that maps queue names in uppercase to their consumers, filtering queues with consumers.

RabbitMQ
{queue[1]: queue[2] for queue in data if queue[3] > 0}
Drag options to blanks, or click blank then click option'
A['name'].upper()
B['consumers']
D['messages']
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'messages' instead of 'consumers' for values.
Not converting the name to uppercase.