0
0
RabbitMQdevops~10 mins

Mirrored queues for redundancy in RabbitMQ - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to declare a mirrored queue in RabbitMQ using policy.

RabbitMQ
rabbitmqctl set_policy [1] ".*" '{"ha-mode":"all"}'
Drag options to blanks, or click blank then click option'
Aall_mirrors
Bqueue_mirror
Cha-all
Dmirror_all
Attempts:
3 left
💡 Hint
Common Mistakes
Using an invalid or empty policy name
Confusing the policy name with the pattern
2fill in blank
medium

Complete the code to set the ha-mode to mirror all queues.

RabbitMQ
rabbitmqctl set_policy mirror_all ".*" '{"ha-mode":"[1]"}'
Drag options to blanks, or click blank then click option'
Aall
Bnodes
Cexactly
Dnodes_exactly
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'nodes' or 'exactly' when wanting full mirroring
Misspelling the ha-mode value
3fill in blank
hard

Fix the error in the command to apply the mirroring policy correctly.

RabbitMQ
rabbitmqctl set_policy mirror_all ".*" '{"ha-mode": [1]'
Drag options to blanks, or click blank then click option'
A"all"
B'all'
Call
Dall"
Attempts:
3 left
💡 Hint
Common Mistakes
Omitting quotes around 'all'
Using single quotes inside JSON incorrectly
4fill in blank
hard

Fill both blanks to declare a mirrored queue named 'task_queue' with ha-mode 'all'.

RabbitMQ
rabbitmqadmin declare queue name=[1] durable=true arguments='{"[2]":"all"}'
Drag options to blanks, or click blank then click option'
Atask_queue
Bha-mode
Cha-params
Ddurable
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong argument keys like 'ha-params'
Misspelling the queue name
5fill in blank
hard

Fill all three blanks to create a policy named 'mirror_policy' that matches queues starting with 'task' and sets ha-mode to 'all'.

RabbitMQ
rabbitmqctl set_policy [1] "[2]" '{"[3]":"all"}'
Drag options to blanks, or click blank then click option'
Amirror_policy
B^task.*
Cha-mode
Dtask_queue
Attempts:
3 left
💡 Hint
Common Mistakes
Using queue name instead of pattern
Wrong argument key for ha-mode