Troubleshooting and Optimization

Which Amazon SQS feature reduces empty responses by waiting for messages to become available before returning a receive response?

Show the answer

Correct answerD. Long polling

AWhy not this: A visibility timeout temporarily hides received messages from other consumers.

BWhy not this: Message retention determines how long SQS keeps messages that have not been deleted.

CWhy not this: Delivery delay postpones when newly sent messages become available to consumers.

DWhy this is right: Long polling waits for available messages instead of immediately returning an empty response.

Long polling waits for messages to become available, reducing empty responses and unnecessary requests. A visibility timeout hides messages after receipt; it does not change how an empty queue is polled.