Challenge - 5 Problems
RabbitMQ Cluster Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
Difference between disc and RAM nodes in RabbitMQ cluster
Which statement correctly describes the difference between disc nodes and RAM nodes in a RabbitMQ cluster?
Attempts:
2 left
💡 Hint
Think about where the message data is saved permanently.
✗ Incorrect
Disc nodes save queue and message data on disk, making them persistent. RAM nodes keep data only in memory, so data is lost if the node restarts.
💻 Command Output
intermediate2:00remaining
Output of rabbitmqctl cluster_status with mixed node types
Given a RabbitMQ cluster with two disc nodes and one RAM node, what will the 'rabbitmqctl cluster_status' command output show under 'disc' and 'ram' nodes?
RabbitMQ
rabbitmqctl cluster_status
Attempts:
2 left
💡 Hint
Disc nodes are usually the main persistent nodes.
✗ Incorrect
The cluster_status command lists disc nodes and RAM nodes separately. Disc nodes are those that store data on disk, RAM nodes only in memory.
🔀 Workflow
advanced3:00remaining
Adding a RAM node to an existing RabbitMQ cluster
Which sequence of commands correctly adds a RAM node named 'rabbit@node3' to an existing cluster with disc nodes 'rabbit@node1' and 'rabbit@node2'?
Attempts:
2 left
💡 Hint
You must stop the app before joining the cluster.
✗ Incorrect
To add a RAM node, stop the RabbitMQ app, join the cluster with --ram option, then start the app and check status.
❓ Troubleshoot
advanced2:00remaining
Troubleshooting node type mismatch error
You try to join a RAM node to a cluster but get an error about node type mismatch. What is the most likely cause?
Attempts:
2 left
💡 Hint
Think about leftover data from previous node roles.
✗ Incorrect
If a node was previously a disc node, it keeps data on disk that conflicts with joining as a RAM node. Clearing data or resetting the node fixes this.
✅ Best Practice
expert3:00remaining
Choosing node types for a highly available RabbitMQ cluster
For a RabbitMQ cluster that must remain highly available and preserve messages during node restarts, which node type configuration is best?
Attempts:
2 left
💡 Hint
Persistence is key for message safety during restarts.
✗ Incorrect
Disc nodes store messages on disk, so having all nodes as disc nodes ensures persistence and high availability. RAM nodes lose data on restart.