0
0
RabbitMQdevops~20 mins

Default exchange behavior in RabbitMQ - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Default Exchange Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding the Default Exchange Routing
In RabbitMQ, what happens when a message is published to the default exchange with a routing key matching a queue name?
AThe message is routed directly to the queue with the name equal to the routing key.
BThe message is broadcast to all queues regardless of the routing key.
CThe message is discarded because the default exchange does not route messages.
DThe message is routed to a queue with a name that partially matches the routing key.
Attempts:
2 left
💡 Hint
Think about how the default exchange uses the routing key as the queue name.
💻 Command Output
intermediate
2:00remaining
Result of Publishing to Default Exchange
Given a queue named task_queue exists, what is the output or effect of running this command?

rabbitmqadmin publish exchange= routing_key=task_queue payload='Hello'
AThe message is discarded silently.
BThe message 'Hello' is delivered to the 'task_queue' queue.
CThe message is sent to all queues bound to the default exchange.
DAn error occurs because the exchange name is empty.
Attempts:
2 left
💡 Hint
The default exchange is identified by an empty string as its name.
Troubleshoot
advanced
2:00remaining
Why is my message not delivered when using the default exchange?
You published a message to the default exchange with routing key my_queue, but the message does not appear in the queue. Which of the following is the most likely cause?
AMessages to the default exchange require a special header to be delivered.
BThe default exchange is disabled by default and must be enabled manually.
CThe routing key must be empty when publishing to the default exchange.
DThe queue <code>my_queue</code> does not exist or is not declared.
Attempts:
2 left
💡 Hint
The default exchange routes only to queues that exist with the exact routing key name.
🔀 Workflow
advanced
3:00remaining
Sequence to Bind a Queue to the Default Exchange
Which sequence correctly describes how to send a message to a queue using the default exchange in RabbitMQ?
A4,1,2,3
B1,4,2,3
C4,2,1,3
D1,3,4,2
Attempts:
2 left
💡 Hint
Think about what must be ready before declaring queues and publishing messages.
Best Practice
expert
3:00remaining
Best Practice for Using the Default Exchange in Production
Which practice is recommended when using the default exchange in a production RabbitMQ environment?
AUse the default exchange exclusively to simplify routing logic.
BBind multiple queues to the default exchange with the same routing key for load balancing.
CAvoid using the default exchange for complex routing; use named exchanges instead.
DDisable the default exchange to prevent accidental message loss.
Attempts:
2 left
💡 Hint
Consider scalability and routing flexibility in production systems.