What is the maximum wait time for a single SQS ReceiveMessage call using long polling?
Correct answer
C. 20 seconds, which reduces empty responses and request charges
20 views
C. 20 seconds, which reduces empty responses and request charges
20 views
Long polling lets ReceiveMessage wait up to 20 seconds for a message to arrive instead of returning immediately, cutting empty responses and request charges. A wait time above 20 seconds is rejected by the service. Setting WaitTimeSeconds as a queue default avoids repeating the setting in every call, and long polling does not affect message ordering or visibility.
Asked in: NTS, PPSC IT, Campus Interviews
Not sure why the answer is C? Ask here and get an explanation.