
1) What is RabbitMQ?
a) A database management system
b) A message broker
c) A web server
d) An operating system
Answer: b) A message broker
2) Which protocol is used by RabbitMQ?
a) TCP/IP
b) HTTP
c) FTP
d) SMTP
Answer: a) TCP/IP
3) What is a producer in RabbitMQ?
a) A consumer application
b) A message sender
c) A queue manager
d) A topic exchange
Answer: b) A message sender
4) What is a consumer in RabbitMQ?
a) A message receiver
b) A queue manager
c) A producer application
d) A fanout exchange
Answer: a) A message receiver
5) Which exchange type forwards messages to all queues that are bound to it?
a) Direct exchange
b) Topic exchange
c) Fanout exchange
d) Headers exchange
Answer: c) Fanout exchange
6) Which exchange type matches messages based on routing keys?
a) Direct exchange
b) Topic exchange
c) Fanout exchange
d) Headers exchange
Answer: a) Direct exchange
7) What is a virtual host in RabbitMQ?
a) A physical server
b) A logical grouping of resources
c) A message queue
d) A message producer
Answer: b) A logical grouping of resources
8) Which command is used to start RabbitMQ?
a) sudo start rabbitmq
b) sudo service rabbitmq start
c) sudo systemctl start rabbitmq
d) sudo initctl start rabbitmq
Answer: c) sudo systemctl start rabbitmq
9) Which language is used to write RabbitMQ?
a) Java
b) Python
c) Erlang
d) Ruby
Answer: c) Erlang
10) What is the maximum size of a message in RabbitMQ?
a) 1 MB
b) 10 MB
c) 100 MB
d) No limit
Answer: d) No limit
11) What is clustering in RabbitMQ?
a) A way to group multiple virtual hosts together
b) A way to group multiple message brokers together
c) A way to group multiple exchanges together
d) A way to group multiple queues together
Answer: b) A way to group multiple message brokers together
12) Which type of exchange routes messages based on their headers?
a) Direct exchange
b) Topic exchange
c) Fanout exchange
d) Headers exchange
Answer: d) Headers exchange
13) Which protocol is used by RabbitMQ to communicate with client applications?
a) HTTP
b) AMQP
c) SMTP
d) FTP
Answer: b) AMQP
14) Which command is used to stop RabbitMQ?
a) sudo stop rabbitmq
b) sudo service rabbitmq stop
c) sudo systemctl stop rabbitmq
d) sudo initctl stop rabbitmq
Answer: c) sudo systemctl stop rabbitmq
15) Which plugin is used to manage RabbitMQ from the web browser?
a) RabbitMQ Management
b) RabbitMQ Shovel
c) RabbitMQ Federation
d) RabbitMQ Stomp
Answer: a) RabbitMQ Management
16) Which exchange type routes messages based on wildcard expressions?
a) Direct exchange
b) Topic exchange
c) Fanout exchange
d) Headers exchange
Answer: b) Topic exchange
17) Which type of message broker architecture does RabbitMQ use?
a) Point-to-point
b) Publish/subscribe
c) Peer-to-peer
d) Hybrid
Answer: b) Publish/subscribe
18) What is a dead-letter exchange in RabbitMQ?
a) An exchange that routes messages to a special queue for handling failed messages
b) An exchange that subscribes to all messages in a virtual host
c) An exchange that routes messages to another exchange
d) An exchange that routes messages based on their headers
Answer: c) An exchange that routes messages to another exchange
19) Which plugin is used to replicate messages between two RabbitMQ brokers?
a) RabbitMQ Management
b) RabbitMQ Shovel
c) RabbitMQ Federation
d) RabbitMQ Stomp
Answer: b) RabbitMQ Shovel
20) What is a queue in RabbitMQ?
a) A message sender
b) A message receiver
c) An exchange
d) A virtual host
Answer: b) A message receiver
21) Which command is used to restart RabbitMQ?
a) sudo restart rabbitmq
b) sudo service rabbitmq restart
c) sudo systemctl restart rabbitmq
d) sudo initctl restart rabbitmq
Answer: c) sudo systemctl restart rabbitmq
22) Which plugin is used to connect RabbitMQ with non-AMQP systems using messaging protocols?
a) RabbitMQ Management
b) RabbitMQ Shovel
c) RabbitMQ Federation
d) RabbitMQ Stomp
Answer: d) RabbitMQ Stomp
23) What is a binding in RabbitMQ?
a) A connection between a queue and an exchange
b) A connection between two queues
c) A connection between two exchanges
d) A connection between a queue and a producer
Answer: a) A connection between a queue and an exchange
24) Which type of exchange routes messages based on the combination of their headers and the routing key?
a) Direct exchange
b) Topic exchange
c) Fanout exchange
d) Headers exchange
Answer: d) Headers exchange
25) What is a message in RabbitMQ?
a) A producer application
b) An exchange type
c) A piece of data sent by a producer to a consumer
d) A virtual host
Answer: c) A piece of data sent by a producer to a consumer
26) Which command is used to enable a plugin in RabbitMQ?
a) rabbitmq-plugins enable
b) rabbitmq-enable-plugin
c) rabbitmq-plugin-enable
d) rabbitmq-plugin
Answer: a) rabbitmq-plugins enable
27) Which type of queue stores messages in temporary memory and loses them if RabbitMQ or the host system crashes?
a) Durable queue
b) Non-durable queue
c) Exclusive queue
d) Auto-delete queue
Answer: b) Non-durable queue
28) Which plugin is used to connect multiple RabbitMQ brokers and distribute messages between them?
a) RabbitMQ Management
b) RabbitMQ Shovel
c) RabbitMQ Federation
d) RabbitMQ Stomp
Answer: c) RabbitMQ Federation
29) What is a message acknowledgment in RabbitMQ?
a) A confirmation sent by a consumer that it has received and processed a message
b) A confirmation sent by a producer that it has sent a message
c) A confirmation sent by a queue that it has received and stored a message
d) A confirmation sent by an exchange that it has routed a message
Answer: a) A confirmation sent by a consumer that it has received and processed a message
30) Which type of queue is deleted as soon as the consumer that created it disconnects?
a) Durable queue
b) Non-durable queue
c) Exclusive queue
d) Auto-delete queue
Answer: c) Exclusive queue
31) Which command is used to delete a virtual host in RabbitMQ?
a) rabbitmqctl delete_vhost
b) rabbitmq-vhost-delete
c) rabbitmq-delete-vhost
d) rabbitmq-vhostctl delete
Answer: a) rabbitmqctl delete_vhost
32) Which command is used to check the status of RabbitMQ?
a) rabbitmqctl status
b) rabbitmq-status
c) rabbitmq-check
d) rabbitmq-server status
Answer: a) rabbitmqctl status
33) What is a routing key in RabbitMQ?
a) A piece of data attached to a message that determines its destination
b) A message receiver
c) An exchange type
d) A virtual host
Answer: a) A piece of data attached to a message that determines its destination
34) Which type of exchange routes messages based on their headers and the routing key?
a) Direct exchange
b) Topic exchange
c) Fanout exchange
d) Headers exchange
Answer: d) Headers exchange
35) Which plugin is used to monitor RabbitMQ using Nagios?
a) RabbitMQ Monitoring
b) RabbitMQ Shovel
c) RabbitMQ Federation
d) RabbitMQ Stomp
Answer: a) RabbitMQ Monitoring
36) Which type of queue remains even if RabbitMQ or the host system crashes?
a) Durable queue
b) Non-durable queue
c) Exclusive queue
d) Auto-delete queue
Answer: a) Durable queue
37) Which command is used to create a virtual host in RabbitMQ?
a) rabbitmqctl add_vhost
b) rabbitmq-vhost-add
c) rabbitmq-add-vhost
d) rabbitmq-vhostctl add
Answer: a) rabbitmqctl add_vhost
38) What is a delivery mode in RabbitMQ?
a) A setting that determines whether a message is persistent or transient
b) A setting that determines the size of a message
c) A setting that determines the number of messages that can be sent
d) A setting that determines the priority of a message
Answer: a) A setting that determines whether a message is persistent or transient
39) Which exchange type forwards messages to a queue based on their routing key?
a) Direct exchange
b) Topic exchange
c) Fanout exchange
d) Headers exchange
Answer: a) Direct exchange
40) Which plugin is used to transfer messages between two RabbitMQ brokers asynchronously?
a) RabbitMQ Management
b) RabbitMQ Shovel
c) RabbitMQ Federation
d) RabbitMQ Stomp
Answer: b) RabbitMQ Shovel
41) What is a channel in RabbitMQ?
a) A connection between a producer and an exchange
b) A connection between a consumer and a queue
c) A connection between two exchanges
d) A connection between two producers
Answer: b) A connection between a consumer and a queue
42) What is a durable subscription in RabbitMQ?
a) A subscription that remains active even if the consumer disconnects
b) A subscription that is deleted as soon as the consumer disconnects
c) A subscription that receives only the most recent messages
d) A subscription that receives all messages but cannot store them
Answer: a) A subscription that remains active even if the consumer disconnects
43) What is a confirm mode in RabbitMQ?
a) A mode that sends a confirmation to the producer when a message is received by the exchange
b) A mode that sends a confirmation to the producer when a message is received by the queue
c) A mode that sends a confirmation to the consumer when a message is received by the queue
d) A mode that sends a confirmation to the exchange when a message is received by the producer
Answer: a) A mode that sends a confirmation to the producer when a message is received by the exchange
44) Which plugin is used to transfer messages between two RabbitMQ brokers synchronously?
a) RabbitMQ Management
b) RabbitMQ Shovel
c) RabbitMQ Federation
d) RabbitMQ Stomp
Answer: c) RabbitMQ Federation
45) What is a message TTL in RabbitMQ?
a) A setting that determines the maximum size of a message
b) A setting that determines the number of messages that can be sent
c) A setting that determines the priority of a message
d) A setting that determines how long a message can remain in a queue
Answer: d) A setting that determines how long a message can remain in a queue
46) Which type of exchange routes messages based on wildcard expressions and the routing key?
a) Direct exchange
b) Topic exchange
c) Fanout exchange
d) Headers exchange
Answer: b) Topic exchange
47) Which command is used to list virtual hosts in RabbitMQ?
a) rabbitmqctl list_vhosts
b) rabbitmq-vhost-list
c) rabbitmq-list-vhosts
d) rabbitmq-vhostctl list
Answer: a) rabbitmqctl list_vhosts
48) What is a dead-letter queue in RabbitMQ?
a) A queue that stores failed messages for later processing
b) A queue that subscribes to all messages in a virtual host
c) A queue that receives messages from another queue
d) A queue that routes messages to another exchange
Answer: a) A queue that stores failed messages for later processing
49) Which plugin is used to transfer messages between RabbitMQ and other messaging systems?
a) RabbitMQ Management
b) RabbitMQ Shovel
c) RabbitMQ Federation
d) RabbitMQ Stomp
Answer: b) RabbitMQ Shovel
50) What is a priority queue in RabbitMQ?
a) A queue that stores messages based on their priority level
b) A queue that receives messages from another queue
c) A queue that stores failed messages for later processing
d) A queue that receives messages based on their headers
Answer: a) A queue that stores messages based on their priority level
- Top 10 DevOps Trainers in the world - October 7, 2023
- What is Cookies and Why it is Used? - May 24, 2023
- TOP trends of transitions in TikTok - May 10, 2023