Dead-letter exchanges (DLX) help handle messages that cannot be processed. What is the main reason to use DLX in RabbitMQ?
Think about what happens when a message cannot be handled properly.
Dead-letter exchanges catch messages that are rejected, expired, or failed, so they can be inspected or retried later instead of being lost.
What is the effect of declaring a queue with the argument {"x-message-ttl": 5000} in RabbitMQ?
rabbitmqctl list_queues name messages_ready messages_unacknowledged
TTL means 'time to live' for messages.
The x-message-ttl argument sets how long messages stay in the queue before expiring if not consumed.
You enabled publisher confirms in RabbitMQ to ensure messages are not lost. However, some messages still disappear. What is a likely cause?
Think about what happens if the publisher closes before confirmation.
Publisher confirms require waiting for the broker to acknowledge message receipt before closing the connection to avoid message loss.
Arrange the steps in the correct order to create a mirrored queue that replicates messages across nodes.
Think about cluster setup before policies and queue declaration.
You must start the cluster nodes first, then define the mirroring policy, declare the queue to apply the policy, and finally publish messages.
Which approach best ensures message order is preserved when multiple consumers process messages from a RabbitMQ queue?
Consider how message order is affected by parallel processing.
Only a single consumer per queue guarantees strict message order because multiple consumers can process messages out of order.