Queues with SQS · Question 9 of 12
A consumer polls an SQS queue constantly and mostly gets empty responses that cost money. What helps?
1 answer is correct. Medium Created with AI
Show answer
Answer
- C Long polling, where the receive call waits up to 20 seconds
Explanation
With long polling (WaitTimeSeconds up to 20 seconds), SQS keeps the receive call open until a message arrives or the wait time ends. This saves empty responses and thus paid requests. Short polling answers immediately, even when nothing is there.