Visibility Timeout

5 minutes 5 Questions

Visibility Timeout is the time period during which a message is invisible to other consumers after being picked up by a consumer from an SQS queue. The purpose of this feature is to ensure that consumers have sufficient time to process a message, preventing other consumers from processing the same …

Test mode:
AWS Certified Solutions Architect - Visibility Timeout Example Questions

Test your knowledge of Visibility Timeout

Question 1

Visibility timeout in your SQS queue is set to the default value. However, you found out that some messages take much longer to process than the default visibility timeout. What is the best solution to ensure these messages do not become visible to other consumers again?

Question 2

You are designing an application to process messages from an SQS standard queue. A few messages take longer to process, but you start losing message visibility after 5 minutes. Which approach would best ensure that messages remain in the queue and are completed?

Question 3

Your company is using an Amazon SQS queue to distribute tasks among multiple processing instances. It is noticed that some tasks are taking a longer time to complete, and the visibility timeout is too short for those tasks. How could the application processing those tasks ensure the message does not become visible to other consumers during processing?

More Visibility Timeout questions
15 questions (total)