0
0
RabbitMQdevops~5 mins

Mirrored queues for redundancy in RabbitMQ - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
ATo encrypt messages
BTo speed up message delivery
CTo reduce message size
DTo replicate queues across nodes for fault tolerance
Which command sets a policy to mirror all queues in RabbitMQ?
Arabbitmqctl mirror_queue all
Brabbitmqctl start_mirroring all
Crabbitmqctl set_policy ha-all ".*" '{"ha-mode":"all"}'
Drabbitmqctl enable_ha all
If the master node of a mirrored queue fails, what happens next?
AA mirror is promoted to master automatically
BThe queue is deleted
CMessages are lost
DThe cluster shuts down
Mirrored queues help prevent which of the following?
AUnauthorized access
BMessage loss during node failure
CSlow network connections
DMessage duplication
Where are mirrored queue policies typically defined?
AIn RabbitMQ configuration or via rabbitmqctl
BIn the application code
CIn the operating system settings
DIn the database schema
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.