Bird
0
0

Given this policy command:

medium📝 Command Output Q13 of 15
RabbitMQ - Clustering
Given this policy command:
rabbitmqctl set_policy ha-two ".*" '{"ha-mode":"exactly","ha-params":2}'
What will happen when a queue is created?
AThe queue will be mirrored on one node only
BThe queue will be mirrored on all nodes
CThe queue will be mirrored on exactly two nodes
DThe queue will not be mirrored at all
Step-by-Step Solution
Solution:
  1. Step 1: Understand ha-mode 'exactly' with ha-params

    The policy sets ha-mode to 'exactly' with ha-params 2, meaning the queue is mirrored on exactly 2 nodes.
  2. Step 2: Apply policy effect on new queues

    Any queue matching ".*" will be mirrored on exactly two nodes as per the policy.
  3. Final Answer:

    The queue will be mirrored on exactly two nodes -> Option C
  4. Quick Check:

    ha-mode exactly + ha-params 2 = mirror on 2 nodes [OK]
Quick Trick: ha-mode 'exactly' with ha-params sets mirror count [OK]
Common Mistakes:
MISTAKES
  • Confusing 'all' with 'exactly'
  • Ignoring ha-params value
  • Assuming no mirroring without ha-mode 'all'

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More RabbitMQ Quizzes