51 RabbitMQ interview questions with answers
51 RabbitMQ interview questions with detailed answers, sorted from basic to advanced. Free to practice, with progress saved automatically.
All RabbitMQ interview questions
What is RabbitMQ and why would you use it?
What is AMQP and what problem does it solve?
Explain the difference between a message broker and direct service-to-service communication.
What are the main components of RabbitMQ architecture?
What is a queue in RabbitMQ?
What is the difference between a producer and a consumer?
What is a binding in RabbitMQ?
What is a routing key and how is it used?
What is the role of exchanges in RabbitMQ?
Explain connections and channels in RabbitMQ.
What does "persistence" mean for messages?
What is acknowledgment (ack) in RabbitMQ?
What is a virtual host (vhost) in RabbitMQ?
What happens when a queue has no consumers?
What is a message in RabbitMQ?
When should you use message queuing vs direct API calls?
What are the four main exchange types in RabbitMQ?
How does a direct exchange work?
How does a fanout exchange work?
How does a topic exchange work and when would you use it?
How does a headers exchange work?
Can multiple queues bind to the same exchange?
What happens if you publish a message to an exchange with no bindings?
What is the difference between topic exchange pattern "user.*" and "user.#"?
How should you name routing keys and exchange names for clarity?
What is the difference between an exchange and a queue?
What is a dead-letter exchange and how would you use it?
What is prefetch count and how does it affect performance?
What is message TTL and how would you use it?
What are priority queues and when would you use them?
How do you handle message failures and retries in RabbitMQ?
What is the difference between persistent and transient messages?
What are publisher confirms and why use them?
How does RabbitMQ handle backpressure?
When should you separate producer and consumer connections?
Explain the work queue (task queue) pattern.
Explain the publish-subscribe (pub/sub) pattern.
Explain the RPC (Remote Procedure Call) pattern with RabbitMQ.
What is the saga pattern and how does it work with RabbitMQ?
What is the outbox pattern and why use it?
How do you implement circuit breaker pattern with RabbitMQ?
What is the relationship between RabbitMQ and event sourcing?
Explain RabbitMQ clustering and how it provides high availability.
What are quorum queues and why are they better than mirrored queues?
How do you monitor RabbitMQ and what metrics matter?
What is queue depth and how do you handle it growing?
How do you handle connection and channel leaks in RabbitMQ?
How do you configure resource limits in RabbitMQ?
What is the difference between RabbitMQ and Kafka?
You need to send a reminder email 30 minutes after a user places an order — how do you do it with a message queue?
What is a poison message? How do you detect and stop one?