Complete the code to declare a lazy queue in RabbitMQ using the command line.
rabbitmqadmin declare queue name=my_lazy_queue durable=true arguments={'x-queue-mode': '[1]'}Setting the argument 'x-queue-mode' to 'lazy' makes the queue lazy, which helps with memory management by keeping messages on disk.
Complete the JSON configuration snippet to declare a lazy queue in RabbitMQ.
{
"queue": "my_queue",
"durable": true,
"arguments": {"x-queue-mode": "[1]"}
}In RabbitMQ, setting "x-queue-mode" to "lazy" ensures the queue stores messages on disk to reduce memory usage.
Fix the error in the queue declaration command to make the queue lazy.
rabbitmqadmin declare queue name=task_queue durable=true arguments={'x-queue-mode': '[1]'}The queue argument 'x-queue-mode' must be set to 'lazy' to enable lazy queue behavior.
Fill both blanks to declare a durable lazy queue with the correct argument key and value.
rabbitmqadmin declare queue name=lazy_queue durable=true arguments={{'[1]': '[2]'}}The argument key for lazy queues is 'x-queue-mode' and its value should be 'lazy' to enable lazy queue behavior.
Fill all three blanks to create a Python dictionary for a lazy queue declaration with the correct key, value, and durability flag.
{'[1]': '[2]', 'durable': [3]The key for lazy queue mode is 'x-queue-mode', the value is 'lazy', and the queue should be durable, so durable is set to true.