Complete the code to declare a shovel that moves messages from source to destination.
rabbitmqctl set_parameter shovel my_shovel '{"src-uri": "amqp://", "src-queue": "source_queue", "dest-uri": "amqp://", "dest-queue": "[1]"}'
The shovel moves messages to the destination_queue, so the destination queue name must be set correctly.
Complete the command to enable federation plugin in RabbitMQ.
rabbitmq-plugins [1] rabbitmq_federationTo use federation, the rabbitmq_federation plugin must be enabled with enable.
Fix the error in the federation upstream declaration by completing the missing URI.
rabbitmqctl set_parameter federation-upstream my-upstream '{"uri": "[1]", "expires": 3600000}'
The federation upstream URI must use the AMQP protocol with correct user credentials and remote host.
Fill both blanks to declare a federation upstream-set with the correct upstream and policy.
rabbitmqctl set_parameter federation-upstream-set my-upstream-set '{"upstreams": ["[1]"]}' rabbitmqctl set_policy federate-me '^fed\.' '{"federation-upstream-set": "[2]"}' --apply-to exchanges
The upstream-set must include the upstream name my-upstream, and the policy must reference the upstream-set my-upstream-set.
Fill all three blanks to create a shovel configuration with correct source URI, destination URI, and acknowledgement mode.
rabbitmqctl set_parameter shovel my-shovel '{"src-uri": "[1]", "src-queue": "queue1", "dest-uri": "[2]", "dest-queue": "queue2", "ack-mode": "[3]"}'
The shovel needs the correct source URI amqp://user:pass@source-dc, destination URI amqp://user:pass@dest-dc, and the acknowledgement mode on-confirm for reliable delivery.