Which of the following is the correct way to define a RabbitMQ cluster node in configuration?
easy📝 Syntax Q12 of 15
RabbitMQ - Clustering
Which of the following is the correct way to define a RabbitMQ cluster node in configuration?
Acluster_nodes = ["rabbit@node1", "rabbit@node2"]
Bcluster_nodes = 'rabbit@node1 rabbit@node2'
Ccluster_nodes = [rabbit@node1, rabbit@node2]
Dcluster_nodes = (rabbit@node1, rabbit@node2)
Step-by-Step Solution
Solution:
Step 1: Identify correct syntax for list of nodes
RabbitMQ config uses a list of strings for cluster nodes, so quotes and brackets are needed.
Step 2: Check each option
cluster_nodes = ["rabbit@node1", "rabbit@node2"] uses a list with strings correctly: ["rabbit@node1", "rabbit@node2"]. Others miss quotes or use wrong brackets.
Final Answer:
cluster_nodes = ["rabbit@node1", "rabbit@node2"] -> Option A
Quick Check:
List of strings = cluster_nodes = ["rabbit@node1", "rabbit@node2"] [OK]
Quick Trick:Cluster nodes list needs quotes and square brackets [OK]
Common Mistakes:
MISTAKES
Omitting quotes around node names
Using parentheses instead of brackets
Using a single string instead of list
Master "Clustering" in RabbitMQ
9 interactive learning modes - each teaches the same concept differently