Bird
0
0

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:
  1. 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.
  2. 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.
  3. Final Answer:

    cluster_nodes = ["rabbit@node1", "rabbit@node2"] -> Option A
  4. 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

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More RabbitMQ Quizzes