RabbitMQ Clustering — Concept Check
Questions on RabbitMQ Clustering. Cluster nodes share metadata (exchanges, bindings, users) but not queue contents by default; quorum queues replicate content to a majority of nodes for durability.
Questions in this quiz
8 questions on RabbitMQ Clustering — Concept Check. Work through them here, then start the quiz to answer them and see your score.
1.You have a RabbitMQ cluster with three nodes. One node fails, and you notice that messages in a classic queue are unavailable. What should you do to ensure message availability in the future?
- ASwitch to quorum queues for message replication.
- BIncrease the number of nodes in the cluster.
- CUse RAM nodes to store queue contents.
- DRestart the failed node to recover messages.
2.A RabbitMQ cluster with five nodes uses quorum queues. How many node failures can it tolerate while still maintaining availability?
- ANo node failures
- BThree node failures
- CTwo node failures
- DOne node failure
3.You are configuring a RabbitMQ cluster and want to ensure high availability. Which of the following is a common mistake that might lead to reduced availability?
- AEnsuring all nodes have the same Erlang cookie
- BConnecting clients through a load balancer
- CUsing HAProxy for load balancing
- DUsing RAM nodes for quorum queues
4.Your RabbitMQ client is experiencing connection issues when a node fails. What is a recommended approach to handle this?
- AImplement reconnection logic in the client.
- BIncrease the connection timeout indefinitely.
- CSwitch to RAM nodes for faster recovery.
- DUse a single static node address.
5.A service using RabbitMQ quorum queues is experiencing slow message processing. You suspect the leader node is slow. What action should you take?
- AForce leader election to promote a faster node.
- BSwitch to classic queues for faster processing.
- CAdd more nodes to the cluster.
- DIncrease the x-quorum-initial-group-size.
6.What is a key difference between classic queues and quorum queues in RabbitMQ?
- AClassic queues do not replicate messages, while quorum queues do.
- BClassic queues are fault-tolerant, while quorum queues are not.
- CQuorum queues store metadata in memory, while classic queues do not.
- DClassic queues require a quorum to function, while quorum queues do not.
7.You are tasked with forming a RabbitMQ cluster. What must be identical across all nodes to successfully join them?
- ARAM size
- BErlang cookie
- CNode hostnames
- DQueue names
8.A RabbitMQ cluster with three nodes is using classic queues. What happens if the node owning a queue fails?
- AMessages are automatically replicated to another node.
- BClients automatically switch to quorum queues.
- CThe cluster shuts down until the node is restored.
- DThe queue and its messages become unavailable.