0
0
RabbitMQdevops~10 mins

Quorum queues (recommended) in RabbitMQ - Interactive Code Practice

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

Complete the command to declare a quorum queue named 'my_queue'.

RabbitMQ
rabbitmqctl add_queue --queue [1] --type quorum
Drag options to blanks, or click blank then click option'
Aclassic_queue
Bpriority_queue
Ctemp_queue
Dmy_queue
Attempts:
3 left
💡 Hint
Common Mistakes
Using a different queue name than 'my_queue'.
2fill in blank
medium

Complete the JSON configuration to set the queue type to quorum.

RabbitMQ
{"durable": true, "arguments": {"x-queue-type": [1]
Drag options to blanks, or click blank then click option'
A"classic"
B"quorum"
C"lazy"
D"priority"
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'classic' or other queue types instead of 'quorum'.
3fill in blank
hard

Fix the error in the command to declare a quorum queue with 3 replicas.

RabbitMQ
rabbitmqadmin declare queue name=my_quorum_queue [1]='quorum' arguments='{"x-quorum-initial-group-size": 3}'
Drag options to blanks, or click blank then click option'
Aqueue
Bqueue_type
Ctype
Dx-queue-type
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'queue_type' or 'x-queue-type' instead of 'type'.
4fill in blank
hard

Fill both blanks to create a policy that applies quorum queues to all queues starting with 'q_'.

RabbitMQ
rabbitmqctl set_policy [1] "^q_" '{{"[2]": "quorum"}}' --apply-to queues
Drag options to blanks, or click blank then click option'
Aquorum_policy
Bclassic_policy
Cx-queue-type
Ddurable
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong policy names or wrong argument keys like 'durable'.
5fill in blank
hard

Fill all three blanks to declare a quorum queue with 5 replicas and durable set to true.

RabbitMQ
rabbitmqadmin declare queue name=[1] durable=[2] arguments='{"[3]": 5}'
Drag options to blanks, or click blank then click option'
Amy_quorum_queue
Btrue
Cx-quorum-initial-group-size
Dfalse
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong queue names, setting durable to false, or wrong argument keys.