Challenge - 5 Problems
Priority Queue Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
RabbitMQ Priority Queue Declaration Output
What is the output when you declare a priority queue with max priority 10 using the rabbitmqctl command?
RabbitMQ
rabbitmqctl list_queues name arguments # Assume the queue was declared with: # arguments = {"x-max-priority": 10}
Attempts:
2 left
💡 Hint
Check the exact argument key name for priority in RabbitMQ queue declaration.
✗ Incorrect
The argument key for setting max priority in RabbitMQ queues is exactly 'x-max-priority'. The command lists queues with their arguments, showing the priority setting.
🧠 Conceptual
intermediate2:00remaining
Priority Queue Message Ordering Behavior
In RabbitMQ, if a priority queue is declared with max priority 5, what happens when messages with priorities 1, 3, and 5 are published?
Attempts:
2 left
💡 Hint
Think about how priority affects message delivery order in RabbitMQ queues.
✗ Incorrect
RabbitMQ priority queues deliver messages with higher priority first, regardless of the order they were published.
❓ Configuration
advanced2:00remaining
Correct Queue Declaration with Priority in RabbitMQ
Which of the following queue declarations correctly sets a max priority of 15 using the RabbitMQ management HTTP API JSON payload?
Attempts:
2 left
💡 Hint
Check the exact argument key RabbitMQ expects for max priority in queue arguments.
✗ Incorrect
The correct argument key for max priority is 'x-max-priority'. Other keys are invalid and ignored.
❓ Troubleshoot
advanced2:00remaining
Why Are Messages Not Prioritized in RabbitMQ Queue?
You declared a queue with max priority 10, but messages are delivered in publish order ignoring priority. What is the most likely cause?
Attempts:
2 left
💡 Hint
Priority only affects delivery if messages have priority set.
✗ Incorrect
Even if the queue supports priority, messages must have the 'priority' property set to be prioritized.
🔀 Workflow
expert3:00remaining
Steps to Enable and Verify Priority Queue in RabbitMQ
What is the correct sequence of steps to create a priority queue and verify it works in RabbitMQ?
Attempts:
2 left
💡 Hint
Think about declaring the queue first, then verifying, then publishing and consuming.
✗ Incorrect
First declare the queue with priority, then verify the declaration, then publish messages with priority, finally consume to observe order.