Recall & Review
beginner
What does message durability mean in RabbitMQ?
Message durability means that messages are saved to disk so they are not lost if the RabbitMQ server crashes or restarts.
Click to reveal answer
beginner
How do you make a queue durable in RabbitMQ?
You set the queue property 'durable' to true when declaring the queue. This makes the queue survive server restarts.
Click to reveal answer
intermediate
What is the difference between a durable queue and a persistent message?
A durable queue survives server restarts, but messages must also be marked persistent to be saved to disk and survive restarts.
Click to reveal answer
beginner
How do you mark a message as persistent in RabbitMQ?
When publishing a message, set the property 'delivery_mode' to 2. This marks the message as persistent.
Click to reveal answer
intermediate
Does marking a message as persistent guarantee it is never lost?
No. It reduces the chance of loss by saving to disk, but messages can still be lost if RabbitMQ crashes before writing to disk.
Click to reveal answer
What must be true for a message to survive a RabbitMQ server restart?
✗ Incorrect
Only durable queues combined with persistent messages ensure messages survive server restarts.
How do you declare a durable queue in RabbitMQ?
✗ Incorrect
The 'durable' flag makes the queue survive server restarts.
Which delivery_mode value marks a message as persistent?
✗ Incorrect
delivery_mode=2 marks the message as persistent.
If a queue is durable but messages are not persistent, what happens on server restart?
✗ Incorrect
Durable queues survive, but non-persistent messages do not.
Which of these is NOT a guarantee of message durability?
✗ Incorrect
Message durability reduces loss risk but does not guarantee zero loss in all cases.
Explain how to ensure messages are not lost when RabbitMQ restarts.
Think about queue and message settings that affect saving to disk.
You got /3 concepts.
Describe the difference between durable queues and persistent messages in RabbitMQ.
One is about the queue, the other about the message.
You got /3 concepts.