0
0
RabbitMQdevops~20 mins

Request-reply pattern in RabbitMQ - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Request-Reply Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding the Request-Reply Pattern in RabbitMQ

In RabbitMQ's request-reply pattern, what is the main role of the reply_to property in a message?

AIt sets the message priority for the request.
BIt defines the routing key for the request message.
CIt specifies the queue where the reply should be sent.
DIt indicates the expiration time of the message.
Attempts:
2 left
💡 Hint

Think about how the requester knows where to get the response.

💻 Command Output
intermediate
2:00remaining
Output of a Basic Request-Reply Setup

Given a RabbitMQ setup where a client sends a request message with reply_to set to amq.rabbitmq.reply-to and waits for a response, what will be the output if the server replies with Hello, Client!?

RabbitMQ
Client sends request with reply_to='amq.rabbitmq.reply-to'
Server receives request and sends back 'Hello, Client!' to the reply_to queue
Client consumes message from reply_to queue
AClient receives the original request message again.
BClient receives an empty message with no content.
CClient receives an error indicating no reply queue found.
DClient receives 'Hello, Client!' as the response message.
Attempts:
2 left
💡 Hint

The server sends the reply to the queue specified in reply_to.

Configuration
advanced
2:00remaining
Configuring a Temporary Reply Queue

Which RabbitMQ queue configuration is best suited for a temporary reply queue in a request-reply pattern?

ADeclare a queue with <code>durable=true</code> and <code>exclusive=false</code>.
BDeclare a queue with <code>exclusive=true</code> and <code>autoDelete=true</code>.
CDeclare a queue with <code>autoDelete=false</code> and <code>durable=false</code>.
DDeclare a queue with <code>exclusive=false</code> and <code>autoDelete=false</code>.
Attempts:
2 left
💡 Hint

Think about a queue that only the client uses and disappears after use.

Troubleshoot
advanced
2:00remaining
Troubleshooting Missing Replies

A client sends a request with reply_to set to a temporary queue, but never receives a reply. Which of the following is the most likely cause?

AThe server did not send a message to the queue named in <code>reply_to</code>.
BThe client queue was declared as durable instead of exclusive.
CThe client did not set the <code>correlation_id</code> property.
DThe server used the wrong exchange to send the request.
Attempts:
2 left
💡 Hint

Check if the server actually sent the reply to the correct queue.

🔀 Workflow
expert
3:00remaining
Correct Sequence of Steps in Request-Reply Pattern

What is the correct order of steps in a RabbitMQ request-reply pattern?

A1,2,3,4,5
B2,1,3,4,5
C1,3,2,4,5
D1,2,4,3,5
Attempts:
2 left
💡 Hint

Think about what the client must do before sending the request.