98.7k views
0 votes
Each SQS queue starts with a default setting of _______for the visibility timeout.

A. 30 seconds
B. 1 minute
C. 30 minutes
D. None of the above

User Jessehz
by
7.9k points

1 Answer

3 votes

Final answer:

The default visibility timeout for an Amazon SQS queue is 30 seconds. This timeout ensures that once a message is being processed, it's not received by other consumers unless it becomes visible again after the timeout period.

Step-by-step explanation:

The student asked what the default setting is for the visibility timeout of an Amazon SQS queue. The correct answer is A. 30 seconds. When a message is received from a queue by a consumer, SQS prevents other consumers from receiving the message by making it invisible. This invisibility period is known as the visibility timeout, and it ensures that the message being processed isn't received by another consumer. If the processing of the message is successful, the message gets deleted, avoiding reprocessing. However, if the message is not processed within the visibility timeout period, it becomes visible again and may be received by another consumer for processing. The default visibility timeout for a new SQS queue is 30 seconds, which can be adjusted according to application-specific requirements.

User Radumanolescu
by
8.0k points