Rabbit MQ MCQs with answers Page - 2

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. What happens if a message is not acknowledged?

  • (A) It is deleted permanently
  • (B) It is ignored
  • (C) It can be re-queued
  • (D) It is sent to producer

A

Admin • 831K Points
Coach

Q. Which exchange type uses pattern matching?

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

A

Admin • 831K Points
Coach

Q. What is a durable queue?

  • (A) A queue that deletes messages instantly
  • (B) A queue that survives broker restarts
  • (C) A queue that encrypts messages
  • (D) A temporary queue

A

Admin • 831K Points
Coach

Q. What is the default port for RabbitMQ?

  • (A) 8080
  • (B) 5672
  • (C) 3306
  • (D) 443

A

Admin • 831K Points
Coach

Q. What is a dead-letter exchange?

  • (A) Exchange that deletes messages
  • (B) Exchange for failed or expired messages
  • (C) Exchange for encrypted messages
  • (D) Exchange for logging

A

Admin • 831K Points
Coach

Q. In RabbitMQ, what happens when multiple consumers listen to the same queue?

  • (A) Each consumer gets all messages
  • (B) Messages are distributed in round-robin
  • (C) Only one consumer receives all messages
  • (D) Messages are duplicated manually

A

Admin • 831K Points
Coach

Q. What is the purpose of 'prefetch count' in RabbitMQ?

  • (A) Limits number of queues
  • (B) Limits number of unacknowledged messages per consumer
  • (C) Limits number of exchanges
  • (D) Limits message size

A

Admin • 831K Points
Coach

Q. Which annotation is used in Spring Boot to listen to a RabbitMQ queue?

  • (A) @RabbitListener
  • (B) @QueueListener
  • (C) @MessageHandler
  • (D) @Listener

A

Admin • 831K Points
Coach

Q. What is the role of RabbitTemplate in Spring Boot?

  • (A) Consumes messages
  • (B) Sends messages to exchange
  • (C) Creates queues
  • (D) Deletes messages

A

Admin • 831K Points
Coach

Q. What will happen if a queue is not bound to any exchange?

  • (A) Messages will be lost
  • (B) Messages will go to default exchange
  • (C) Queue will be deleted
  • (D) System crashes

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