0
0
RabbitMQdevops~20 mins

RabbitMQ cluster formation - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
RabbitMQ Cluster Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding RabbitMQ Cluster Nodes

In a RabbitMQ cluster, what is the role of a disc node compared to a ram node?

ARam nodes replicate data to disc nodes for persistence.
BDisc nodes only handle message routing, ram nodes store messages on disk.
CDisc nodes store messages and queue state on disk, while ram nodes keep state only in memory.
DDisc nodes are used only for backups, ram nodes handle all cluster operations.
Attempts:
2 left
💡 Hint

Think about data persistence and memory usage in cluster nodes.

💻 Command Output
intermediate
1:30remaining
Joining a Node to a RabbitMQ Cluster

You run the command rabbitmqctl join_cluster rabbit@node1 on node2. What is the expected output if the join is successful?

RabbitMQ
rabbitmqctl join_cluster rabbit@node1
ASyntax error: missing parameters
BError: node rabbit@node1 not reachable
CNode rabbit@node2 already clustered
DClustering node rabbit@node1 ... done
Attempts:
2 left
💡 Hint

Successful commands usually end with '... done'.

Configuration
advanced
2:30remaining
Configuring RabbitMQ Nodes for Cluster Formation

Which configuration snippet correctly sets the node name and enables clustering in rabbitmq.conf for a node named rabbit@node2?

A
node.name = rabbit@node2
cluster_formation.peer_discovery_backend = classic_config
B
node.name = rabbit@node2
cluster_formation.peer_discovery_backend = rabbitmq_peer_discovery_classic_config
C
node.name = node2
cluster_formation.peer_discovery_backend = rabbitmq_cluster
D
node.name = rabbit@node2
cluster_formation.peer_discovery_backend = classic
Attempts:
2 left
💡 Hint

Check the exact backend name for classic config peer discovery.

Troubleshoot
advanced
2:00remaining
Troubleshooting Cluster Node Communication Failure

After adding a node to the cluster, you see the error nodedown when running rabbitmqctl cluster_status. What is the most likely cause?

AThe nodes cannot communicate due to firewall blocking port 25672.
BThe RabbitMQ service is not installed on the new node.
CThe cluster name is mismatched between nodes.
DThe disk space on the new node is full.
Attempts:
2 left
💡 Hint

RabbitMQ nodes need open ports to communicate.

🔀 Workflow
expert
3:00remaining
Correct Sequence to Form a RabbitMQ Cluster

Arrange the steps in the correct order to form a RabbitMQ cluster with two nodes: rabbit@node1 and rabbit@node2.

A1,2,3,4
B2,1,3,4
C1,3,2,4
D3,1,2,4
Attempts:
2 left
💡 Hint

You must stop the application before joining, then start it again.