AWS Certified Developer Associate Practice Exam

Question: 1 / 400

Does AWS SQS long polling wait for a message to be available in the queue before sending a response?

Yes, it does

AWS SQS long polling does indeed wait for messages to be available in the queue before sending a response. This feature allows for a more efficient use of resources because it reduces the number of empty responses that are returned when no messages are present. With long polling, if no messages are immediately available, the request can wait for a specified duration—up to 20 seconds—before it returns a response. If messages arrive during that wait time, they are sent back to the requester in the response.

This behavior contrasts with short polling, where the request returns immediately, whether messages are present or not, which can lead to higher costs and more calls to the API. Therefore, long polling is preferred when trying to minimize application latency and reduce unnecessary costs associated with frequent polling of the queue.

The other choices suggest scenarios where long polling either does not wait or has conditional behavior, which does not accurately represent the purpose of long polling in SQS.

Get further explanation with Examzify DeepDiveBeta

No, it does not

Only under certain conditions

It is configurable per message

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy