0
0
RabbitMQdevops~20 mins

Synchronous vs asynchronous communication in RabbitMQ - Practice Questions

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
RabbitMQ Communication Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
Understanding communication types in RabbitMQ

Which statement best describes synchronous communication in RabbitMQ?

AThe sender waits for a response from the receiver before continuing.
BThe sender sends a message and continues without waiting for a response.
CMessages are stored temporarily and processed later by consumers.
DMessages are broadcasted to all connected clients simultaneously.
Attempts:
2 left
💡 Hint

Think about whether the sender pauses or not after sending a message.

💻 Command Output
intermediate
2:00remaining
RabbitMQ message acknowledgement behavior

What output will you see if a RabbitMQ consumer does not acknowledge a message and the connection closes?

RabbitMQ
rabbitmqctl list_queues name messages_ready messages_unacknowledged
ABoth messages_ready and messages_unacknowledged counts stay zero.
BThe queue is deleted automatically.
CThe messages_ready count increases, messages_unacknowledged stays zero.
DThe messages_unacknowledged count increases, messages_ready stays zero.
Attempts:
2 left
💡 Hint

Think about what happens to unacknowledged messages when the consumer disconnects.

🔀 Workflow
advanced
2:30remaining
Designing asynchronous message flow in RabbitMQ

Which RabbitMQ setup best supports asynchronous communication where the sender does not wait for the receiver?

ASender uses RPC style with direct reply-to queue.
BSender publishes to a queue with no reply-to header and no consumer waiting.
CSender sends a message and blocks until the consumer processes it.
DSender publishes to a queue and waits for a reply on a temporary queue.
Attempts:
2 left
💡 Hint

Asynchronous means the sender does not wait for any response.

Troubleshoot
advanced
2:30remaining
Troubleshooting delayed message processing

A RabbitMQ consumer processes messages slowly, causing the sender to block. What is the likely cause?

AThe sender is publishing messages asynchronously.
BThe queue is configured with high message TTL (time to live).
CThe consumer is using auto-acknowledge mode.
DThe sender is using synchronous RPC calls waiting for consumer replies.
Attempts:
2 left
💡 Hint

Consider what causes the sender to wait or block.

Best Practice
expert
3:00remaining
Choosing communication style for high throughput

For a system requiring high throughput and loose coupling, which RabbitMQ communication style is best?

AAsynchronous messaging with queues and no direct replies.
BSynchronous RPC calls with reply queues for each request.
CBroadcasting messages to all consumers simultaneously.
DUsing direct TCP socket connections without RabbitMQ.
Attempts:
2 left
💡 Hint

Think about which style reduces waiting and dependency between sender and receiver.