Recall & Review
beginner
What is a mirrored queue in RabbitMQ?
A mirrored queue is a queue that is replicated across multiple nodes in a RabbitMQ cluster to ensure messages are not lost if one node fails.
Click to reveal answer
beginner
How do mirrored queues improve message reliability?
They keep copies of the queue on multiple nodes, so if one node crashes, another node still has the messages, preventing data loss.
Click to reveal answer
intermediate
Which RabbitMQ configuration file is used to define mirrored queues policies?
The policies for mirrored queues are set in the RabbitMQ configuration or via the rabbitmqctl command using policy definitions.
Click to reveal answer
intermediate
What is the command to set a policy for mirroring all queues in RabbitMQ?
rabbitmqctl set_policy ha-all ".*" '{"ha-mode":"all"}'
Click to reveal answer
intermediate
What happens if the master node of a mirrored queue fails?
One of the mirrors is promoted to master automatically, so the queue continues working without message loss.
Click to reveal answer
What is the main purpose of mirrored queues in RabbitMQ?
✗ Incorrect
Mirrored queues replicate queues across nodes to ensure messages are safe if a node fails.
Which command sets a policy to mirror all queues in RabbitMQ?
✗ Incorrect
The correct syntax uses set_policy with ha-mode set to all.
If the master node of a mirrored queue fails, what happens next?
✗ Incorrect
RabbitMQ promotes a mirror to master to keep the queue running without message loss.
Mirrored queues help prevent which of the following?
✗ Incorrect
Mirrored queues replicate messages to avoid loss if a node fails.
Where are mirrored queue policies typically defined?
✗ Incorrect
Policies for mirroring are set in RabbitMQ config or with rabbitmqctl commands.
Explain how mirrored queues provide redundancy in RabbitMQ.
Think about what happens when a node fails.
You got /3 concepts.
Describe the steps to enable mirrored queues using RabbitMQ policies.
Focus on the command and policy settings.
You got /3 concepts.