Queues with SQS · Question 10 of 12

Messages are processed twice because processing takes longer than the visibility timeout. What is the right measure?

1 answer is correct. Medium Created with AI

Show answer

Answer

  • C Raise the timeout above the usual duration or extend it via ChangeMessageVisibility

Explanation

If the timeout expires before the consumer deletes the message, it becomes visible again and a second consumer fetches it. The timeout should therefore be longer than processing; with varying durations the consumer extends it via the API. Deleting immediately risks data loss.

Certifications & exams

Which exam comes next?

You can already practise for 51 exams, and 16 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications