ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 63 - DVA-C01 discussion

Report
Export

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.
Answers
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.
Answers
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.
Answers
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.
Answers
D.
Use the DeleteMessageVisibility API to cancel the VisibilityTimeout, then use the DeleteMessage API to delete the message.
Suggested answer: A

Explanation:

https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibilitytimeout.htmlIn SQS, messages remain there. It is the consumer’s responsibility to delete it, once consumed andprocessed.

asked 16/09/2024
Son Pham Hong
44 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first