QuizzesBindings & Routing Keys — Concept Check
intermediate
rabbitmq

Bindings & Routing Keys — Concept Check

Questions on Bindings & Routing Keys. A binding connects an exchange to a queue with an optional routing key; a queue can have multiple bindings from different exchanges to receive diverse message streams.

8 minutes 8 questions Pass at 70%
Time Limit
8 minutes - timer starts when you begin
Change Answers Freely
Revisit and change any answer before submitting
Full Review After Submit
Correct answers and explanations shown for every question
Auto-submit on timeout
Quiz submits automatically when time runs out

Questions in this quiz

8 questions on Bindings & Routing Keys — Concept Check. Work through them here, then start the quiz to answer them and see your score.

  1. 1.A queue is bound to a direct exchange with the routing key 'order.shipped'. What happens when a message with the routing key 'order.shipped' is sent to the exchange?

    • AThe message is delivered to all queues bound to the exchange.
    • BThe message is delivered to the queue only if it has a wildcard binding.
    • CThe message is delivered to the queue.
    • DThe message is discarded as no matching queue exists.
  2. 2.A queue is bound to a topic exchange with the routing key 'order.eu.*'. Which message routing key will be delivered to this queue?

    • Aorder.eu.created.shipped
    • Border.created.eu
    • Corder.eu.created
    • Dorder.us.created
  3. 3.What is the role of a binding in a message queue system?

    • ATo define how messages are routed from an exchange to a queue.
    • BTo store messages temporarily before processing.
    • CTo encrypt messages during transmission.
    • DTo ensure messages are delivered in order.
  4. 4.A queue is bound to a topic exchange with the routing key 'payment.#'. What happens when a message with the routing key 'payment.us.completed' is sent to the exchange?

    • AThe message is delivered only if another queue also matches.
    • BThe message is ignored as no exact match exists.
    • CThe message is delivered only if the queue uses a direct exchange.
    • DThe message is delivered to the queue.
  5. 5.Multiple queues are bound to a direct exchange with the same routing key 'order.processed'. What happens when a message with this key is sent to the exchange?

    • AThe message is delivered only if the exchange type is fanout.
    • BThe message is discarded as multiple bindings exist.
    • CThe message is delivered to all bound queues.
    • DThe message is delivered to only one queue.
  6. 6.A queue is bound to two exchanges, one direct and one topic. What benefit does this provide?

    • AThe queue duplicates messages for redundancy.
    • BThe queue processes messages faster.
    • CThe queue requires less configuration.
    • DThe queue can receive diverse message streams.
  7. 7.Which routing key will match the binding key 'order.#' in a topic exchange?

    • Aorder
    • Border.created.eu
    • Corder.eu.created
    • Dorder.created
  8. 8.A queue is bound to a topic exchange with the routing key 'order.*.created'. Which message routing key will not be delivered to this queue?

    • Aorder.eu.created
    • Border.us.created
    • Corder.eu.cancelled
    • Dorder.created