Which statement correctly describes the main difference between RabbitMQ's Shovel and Federation plugins in a multi-data-center setup?
Think about which plugin adapts better to changing network conditions and scales automatically.
Federation is designed to handle dynamic topologies and scales well across multiple data centers by federating exchanges or queues. Shovel is configured per link and is more static, transferring messages continuously but requiring manual setup for each link.
What is the output of the following command on a RabbitMQ node with a configured shovel named 'shovel1' currently running?
rabbitmqctl shovel_status shovel1
Check the JSON output format for shovel status showing state and endpoints.
The shovel_status command returns a JSON object with the shovel's state and its source and destination URIs. If the shovel is running, the state is 'running'.
Which of the following RabbitMQ shovel configuration snippets correctly sets up a shovel to transfer messages from a queue named 'orders' in one data center to a queue named 'orders' in another data center?
Remember that queues and exchanges are different entities; the source and destination must match types.
To transfer messages from a queue to a queue, both source and destination must specify queues. Option C correctly uses source-queue and destination-queue. Other options mix exchanges and queues incorrectly.
You have a RabbitMQ federation link configured between two data centers. Messages are not flowing, and the federation link status shows 'down'. Which of the following is the most likely cause?
Check connectivity and URI correctness first when federation links are down.
A federation link depends on the downstream node connecting to the upstream URI. If the URI is wrong or network connectivity is blocked, the link will be down. Shovel plugin is unrelated, queue names do not have to match exactly, and federation does not require manual ack to start.
Arrange the following steps in the correct order to set up a RabbitMQ Federation link between two data centers:
Think about enabling features before configuring them and verifying last.
First, enable the federation plugin on both nodes. Then configure the upstream URI on the downstream node. Next, define the federated exchange or queue. Finally, verify the link status and message flow.