An application takes 40 seconds to process instructions received in an Amazon SQS message. Assuming the SQS queue is configured with the default VisibilityTimeout value, what is the BEST way, upon receiving a message, to ensure that no other instances can retrieve a message that has already been processed or is currently being processed?
A) Use the ChangeMessageVisibility API to increase the VisibilityTimeout, then use the DeleteMessage API to delete the message.
B) Use the DeleteMessage API call to delete the message from the queue, then call DeleteQueue API to remove the queue.
C) Use the ChangeMessageVisibility API to decrease the timeout value, then use the DeleteMessage API to delete the message.
D) Use the DeleteMessageVisibility API to cancel the VisibilityTimeout, then use the DeleteMessage API to delete the message.
Correct Answer:
Verified
Q11: A Developer has created an S3 bucket
Q12: A current architecture uses many Lambda functions
Q13: A Developer is testing a Docker-based application
Q14: An application under development is required to
Q15: An application is designed to use Amazon
Q17: A Developer is creating an Auto Scaling
Q18: An application reads data from an Amazon
Q19: A deployment package uses the AWS CLI
Q20: When writing a Lambda function, what is
Q21: An application is real-time processing millions of
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents