Which statement best explains why message queues help decouple services in a distributed system?
Think about how services can work independently without blocking each other.
Message queues enable asynchronous communication, so services do not need to wait for responses immediately. This reduces tight coupling and improves scalability.
What is the output when declaring a queue named task_queue using the RabbitMQ command line tool rabbitmqadmin?
rabbitmqadmin declare queue name=task_queue durable=true
Check the expected JSON output for a successful queue declaration.
When a queue is declared successfully, RabbitMQ returns JSON with queue details including name, message count, and consumer count.
Arrange the steps in the correct order to send a message from a producer to a consumer using RabbitMQ.
Think about what must happen before sending or receiving messages.
First, connect to the server, then declare the queue to ensure it exists, publish the message, and finally consume it.
A consumer connected to RabbitMQ is not receiving messages from a queue. Which is the most likely cause?
Check if the consumer and producer are connected to the same logical environment.
If the consumer and producer use different virtual hosts, they cannot see the same queues, so messages won't be received.
Which configuration ensures that messages are not lost if the RabbitMQ server restarts?
Think about both queue and message settings for durability.
Durable queues survive server restarts, and persistent messages are saved to disk. Both are needed to avoid message loss.