0
0
RabbitMQdevops~5 mins

Quorum queues (recommended) in RabbitMQ - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a quorum queue in RabbitMQ?
A quorum queue is a type of queue in RabbitMQ designed for high availability and data safety. It replicates messages across multiple nodes to prevent data loss if a node fails.
Click to reveal answer
intermediate
How does a quorum queue differ from a classic mirrored queue?
Quorum queues use the Raft consensus algorithm for replication, providing stronger consistency and better fault tolerance than classic mirrored queues, which rely on simpler mirroring.
Click to reveal answer
beginner
What happens if a node in a quorum queue cluster fails?
The quorum queue continues working with the remaining nodes. The Raft algorithm elects a new leader to keep the queue operational without losing messages.
Click to reveal answer
intermediate
How do you declare a quorum queue using RabbitMQ's CLI?
Use the command: rabbitmqctl set_policy ha-quorum-queues "^quorum-" '{"queue-type":"quorum"}' --apply-to queues to apply quorum queue policy to queues starting with 'quorum-'.
Click to reveal answer
beginner
Why are quorum queues recommended over classic mirrored queues?
Because quorum queues provide better data safety, automatic leader election, and improved recovery after failures, making them more reliable for critical messaging.
Click to reveal answer
What algorithm do quorum queues use for replication?
ASimple mirroring
BRaft consensus algorithm
CTwo-phase commit
DPaxos algorithm
Which feature is NOT true about quorum queues?
AThey lose messages if a node fails
BThey provide automatic leader election
CThey replicate messages across multiple nodes
DThey are recommended for high availability
How do you specify a queue as a quorum queue in RabbitMQ?
AEnable mirroring manually
BUse the 'classic' queue type
CSet the queue-type to 'quorum' in the policy
DUse the 'lazy' queue type
What happens when the leader node in a quorum queue cluster fails?
AThe queue stops working until manual restart
BThe cluster shuts down
CMessages are lost immediately
DA new leader is elected automatically
Why might you choose quorum queues over classic mirrored queues?
ABetter fault tolerance and data safety
BThey use less disk space
CThey are simpler to configure
DThey do not replicate messages
Explain what quorum queues are and why they are recommended in RabbitMQ.
Think about how quorum queues keep messages safe and available even if some nodes fail.
You got /5 concepts.
    Describe how to configure a quorum queue in RabbitMQ and what happens if a node fails.
    Focus on the configuration steps and the fault tolerance behavior.
    You got /5 concepts.