0
0
RabbitMQdevops~20 mins

Quorum queues (recommended) in RabbitMQ - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Quorum Queue Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Quorum Queue Replication
In RabbitMQ, what is the main difference between a quorum queue and a classic mirrored queue regarding message replication?
AQuorum queues replicate messages using the Raft consensus algorithm, ensuring strong consistency, while classic mirrored queues replicate asynchronously without consensus.
BQuorum queues replicate messages asynchronously without consensus, while classic mirrored queues use Raft for strong consistency.
CNeither quorum nor classic mirrored queues replicate messages; replication is handled by external plugins.
DBoth quorum and classic mirrored queues use the Raft consensus algorithm for replication.
Attempts:
2 left
💡 Hint
Think about how quorum queues ensure data safety and consistency.
💻 Command Output
intermediate
2:00remaining
Queue Declaration Output
What is the output of the following RabbitMQ CLI command when declaring a quorum queue named 'task_queue'? rabbitmqctl add_queue --quorum task_queue
RabbitMQ
rabbitmqctl add_queue --quorum task_queue
AError: unknown command 'add_queue'
BQueue 'task_queue' declared as quorum queue
CQueue 'task_queue' declared as classic mirrored queue
DCommand executed successfully with no output
Attempts:
2 left
💡 Hint
Check the correct RabbitMQ CLI command for declaring queues.
Configuration
advanced
2:00remaining
Configuring a Quorum Queue Policy
Which of the following JSON policy definitions correctly sets all queues with names starting with 'q_' to be quorum queues in RabbitMQ?
A{"pattern":"q_*","definition":{"queue-type":"classic"},"priority":0,"apply-to":"queues"}
B{"pattern":"^q_","definition":{"ha-mode":"all"},"priority":0,"apply-to":"queues"}
C{"pattern":"^q_","definition":{"queue-type":"quorum"},"priority":0,"apply-to":"queues"}
D{"pattern":"^q_","definition":{"queue-type":"quorum"},"priority":10,"apply-to":"exchanges"}
Attempts:
2 left
💡 Hint
Look for the correct pattern, queue-type, and apply-to fields.
Troubleshoot
advanced
2:00remaining
Diagnosing Quorum Queue Node Failure
A quorum queue with 3 nodes loses one node unexpectedly. What is the expected behavior of the queue after this failure?
AThe quorum queue stops accepting messages until the failed node is restored.
BThe quorum queue switches to classic mirrored mode automatically.
CThe quorum queue loses all messages and deletes itself automatically.
DThe quorum queue continues operating normally with the remaining 2 nodes, maintaining data availability.
Attempts:
2 left
💡 Hint
Consider how quorum queues handle node failures with Raft consensus.
Best Practice
expert
3:00remaining
Choosing Queue Type for High Availability
For a critical messaging system requiring strong consistency and automatic recovery from node failures, which queue type and configuration is the best practice in RabbitMQ?
AUse classic mirrored queues with ha-mode set to 'all' and manual failover.
BUse quorum queues with at least 3 nodes and enable automatic leader election.
CUse classic queues without mirroring and rely on client retries.
DUse quorum queues with a single node to reduce complexity.
Attempts:
2 left
💡 Hint
Think about consistency, fault tolerance, and automation.