Which AMQP component is responsible for receiving messages from producers and routing them to queues based on rules?
Think about the part that directs messages, not where they are stored.
The Exchange receives messages from producers and routes them to queues using bindings and routing keys.
What is the expected output when you open a new AMQP channel using RabbitMQ's management CLI and check its state?
rabbitmqctl list_channels
Channels are created open when established.
When a channel is opened, it appears in the list with state 'open'.
Which queue declaration option ensures that the queue survives RabbitMQ server restarts?
channel.queue_declare(queue='task_queue', durable=?)Durability means persistence across restarts.
Setting durable=True makes the queue survive server restarts.
You published a message to an exchange but it never appears in the queue. Which is the most likely cause?
Check the connection between exchange and queue.
If no binding exists, the exchange cannot route messages to the queue.
What is the main benefit of enabling publisher confirms in AMQP?
Think about message delivery guarantees.
Publisher confirms provide acknowledgments from the broker that messages are received and stored.