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.

Certifications & exams

Which exam comes next?

You can already practise for 51 exams, and 16 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications