Rabbit MQ MCQs with answers Page - 3

Here, you will find a collection of MCQ questions on Rabbit MQ. Go through these questions to enhance your preparation for upcoming examinations and interviews.

To check the correct answer, simply click the View Answer button provided for each question.

Have your own questions to contribute? Click the button below to share your MCQs with others!

+ Add Question

A

Admin • 831K Points
Coach

Q. Which exchange type is best suited for broadcasting logs to multiple services?

  • (A) Direct
  • (B) Topic
  • (C) Fanout
  • (D) Headers

A

Admin • 831K Points
Coach

Q. What is the use of message TTL (Time-To-Live)?

  • (A) Deletes queues automatically
  • (B) Expires messages after a specified time
  • (C) Encrypts messages
  • (D) Increases message priority

A

Admin • 831K Points
Coach

Q. Scenario: A consumer crashes before acknowledging a message. What happens?

  • (A) Message is lost
  • (B) Message is sent back to producer
  • (C) Message is re-queued and delivered again
  • (D) Queue is deleted

A

Admin • 831K Points
Coach

Q. What is publisher confirm in RabbitMQ?

  • (A) Consumer acknowledgment
  • (B) Producer confirmation that message reached exchange
  • (C) Queue confirmation
  • (D) Binding confirmation

A

Admin • 831K Points
Coach

Q. Which property ensures messages are not lost during broker restart?

  • (A) Auto-delete
  • (B) Durable queue and persistent messages
  • (C) Temporary queue
  • (D) Fanout exchange

A

Admin • 831K Points
Coach

Q. Scenario: You want to route messages like 'order.created' and 'order.updated'. Which exchange type is best?

  • (A) Fanout
  • (B) Direct
  • (C) Topic
  • (D) Headers

A

Admin • 831K Points
Coach

Q. What is a dead-letter queue used for?

  • (A) Storing successful messages
  • (B) Handling failed, rejected, or expired messages
  • (C) Storing logs
  • (D) Encrypting messages

A

Admin • 831K Points
Coach

Q. Which Spring Boot configuration enables RabbitMQ support?

  • (A) @EnableRabbit
  • (B) @EnableMQ
  • (C) @RabbitConfig
  • (D) @EnableQueue

A

Admin • 831K Points
Coach

Q. What is the purpose of a routing key?

  • (A) Encrypt messages
  • (B) Determine how messages are routed
  • (C) Store messages
  • (D) Delete messages

A

Admin • 831K Points
Coach

Q. Scenario: You want one message processed only once even with multiple consumers. What should you use?

  • (A) Multiple queues
  • (B) Single queue with multiple consumers
  • (C) Fanout exchange
  • (D) Multiple exchanges

Add MCQ in this Category

If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.

Share Your MCQ