Question 711 of 1,000
mediummultiple choiceObjective-mapped

SAA-C03 Practice Question: SQS visibility timeout must exceed the maximum…

This SAA-C03 practice question tests your understanding of sqs visibility timeout must exceed the maximum…. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. A key principle to apply: sQS visibility timeout must exceed the maximum Lambda processing time to prevent duplicate delivery. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A company uses Amazon SQS and AWS Lambda to process orders. Lambda typically completes in 4 minutes, but complex orders can take up to 12 minutes. The team reports that some orders are being processed more than once. Which is the MOST likely cause and the recommended fix?

Question 1mediummultiple choice
Full question →

A company uses Amazon SQS and AWS Lambda to process orders. Lambda typically completes in 4 minutes, but complex orders can take up to 12 minutes. The team reports that some orders are being processed more than once. Which is the MOST likely cause and the recommended fix?

Answer choices

Why each option matters

Good practice is not just finding the correct option. The wrong answers often show the exact trap the exam wants you to fall into.

A

Distractor review

Enable SQS FIFO queue to prevent duplicate message delivery

FIFO deduplication addresses ordering and prevents duplicates within a window, but does not fix the visibility timeout mismatch that causes the duplicates. FIFO also has lower throughput limits.

B

Best answer

Increase the SQS queue visibility timeout to exceed the maximum Lambda processing time

Setting visibility timeout above 12 minutes (the maximum processing time) prevents messages from reappearing while being processed. This eliminates the root cause of duplicate processing.

C

Distractor review

Reduce the Lambda function timeout to 4 minutes to match typical processing time

Reducing Lambda timeout would cause complex 12-minute orders to fail before completing. This worsens the problem — those orders would never finish processing.

D

Distractor review

Enable SQS long polling to reduce the frequency of message retrieval

Long polling waits up to 20 seconds for messages rather than returning immediately. It reduces costs for sparse queues but has no effect on visibility timeout or duplicate processing.

Common exam trap

Common exam trap: answer the scenario, not the keyword

Many architects set up SQS/Lambda integrations without adjusting the visibility timeout from the default 30 seconds. When Lambda functions run longer than this, the message reappears and creates duplicates. The symptom is duplicate processing — a classic visibility timeout mismatch. Fix the root cause (extend visibility timeout) rather than adding application-level deduplication logic.

Technical deep dive

How to think about this question

SQS key timeout values: - Visibility timeout: 0s-12 hours (default 30s). Must exceed maximum processing time. - Message retention: 1 minute - 14 days (default 4 days) - Receive message wait time: 0-20s (long polling) - Delivery delay: 0-15 minutes Rule: Set visibility timeout >= maximum Lambda processing time + buffer. AWS recommendation: visibility timeout = 6x Lambda function timeout. Lambda can also dynamically extend visibility timeout mid-execution using the ChangeMessageVisibility API — useful for variable-length processing. Dead Letter Queue: Captures messages that fail after maxReceiveCount attempts. Use with visibility timeout to separate failures from duplicates.

KKey Concepts to Remember

  • SQS visibility timeout must exceed the maximum Lambda processing time to prevent duplicate delivery
  • Default SQS visibility timeout is 30 seconds
  • Messages reappear in the queue when visibility timeout expires before processing is complete
  • AWS recommends setting visibility timeout to 6x the Lambda function timeout
  • Lambda can extend visibility timeout dynamically using ChangeMessageVisibility API

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

SQS visibility timeout must exceed the maximum Lambda processing time to prevent duplicate delivery

Related practice questions

Related SAA-C03 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

More questions from this exam

Keep practising from the same exam bank, or move into a focused topic page if this question exposed a weak area.

Practice this exam

Start a free SAA-C03 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this SAA-C03 question test?

SQS visibility timeout must exceed the maximum Lambda processing time to prevent duplicate delivery

What is the correct answer to this question?

The correct answer is: Increase the SQS queue visibility timeout to exceed the maximum Lambda processing time — SQS visibility timeout defines how long a message is hidden from other consumers after it is received. If a Lambda function takes longer than the visibility timeout to process a message, the message becomes visible again and another Lambda invocation picks it up — causing duplicate processing. The default SQS visibility timeout is 30 seconds. If processing takes 12 minutes but visibility timeout is 30 seconds, messages reappear and are processed again. The fix is to increase the visibility timeout to exceed the maximum processing time — at least 13-15 minutes.

What should I do if I get this SAA-C03 question wrong?

Review sQS visibility timeout must exceed the maximum Lambda processing time to prevent duplicate delivery, then practise related SAA-C03 questions on the same topic to reinforce the concept.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Discussion

Loading comments…

Sign in to join the discussion.

This SAA-C03 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SAA-C03 exam.