Company B provides an online image recognition service and utilizes SQS to decouple system components for
scalability The SQS consumers poll the imaging queue as often as possible to keep end-to-end throughput as
high as possible. However, Company B is realizing that polling in tight loops is burning CPU cycles and
increasing costs with empty responses.
How can Company B reduce the number of empty responses?
A.
Set the imaging queue visibility Timeout attribute to 20 seconds
B.
Set the Imaging queue ReceiveMessageWaitTimeSeconds attribute to 20 seconds
C.
Set the imaging queue MessageRetentionPeriod attribute to 20 seconds
D.
Set the DelaySeconds parameter of a message to 20 seconds
B
http://www.aiotestking.com/amazon/how-can-company-b-reduce-the-number-of-empty-responses-2/
http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-long-polling.html
B.
Set the Imaging queue ReceiveMessageWaitTimeSeconds attribute to 20 seconds
B. Set the Imaging queue ReceiveMessageWaitTimeSeconds attribute to 20 seconds
As per http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-long-polling.html;
For the WaitTimeSeconds parameter of ReceiveMessage, a value set between 1 and 20 has priority over any value set for the queue attribute ReceiveMessageWaitTimeSeconds.
So, correct ans is option B i.e
Set the Imaging queue ReceiveMessageWaitTimeSeconds attribute to 20 seconds