mediummultiple choiceObjective-mapped

An orders service publishes payment instructions to an Amazon SQS Standard queue. A downstream consumer sometimes times out or crashes after it has partially completed processing, causing the same instruction to be processed more than once. You must keep the design resilient without attempting to guarantee exactly-once processing. Which approach best handles duplicates safely?

Question 1mediummultiple choice
Full question →

An orders service publishes payment instructions to an Amazon SQS Standard queue. A downstream consumer sometimes times out or crashes after it has partially completed processing, causing the same instruction to be processed more than once. You must keep the design resilient without attempting to guarantee exactly-once processing. Which approach best handles duplicates safely?

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

Set the SQS visibility timeout extremely long so the message cannot be retried even after processing failures.

A long visibility timeout only delays retries. If a consumer fails after partial work, duplicates still occur later, and recovery becomes slower and riskier for real failures.

B

Best answer

Make the consumer idempotent by deriving a deterministic idempotency key from the payment instruction (for example, the instruction ID), persisting the result of successful processing, and skipping re-processing when that key is already marked successful.

SQS Standard provides at-least-once delivery, so duplicates are expected. Idempotency ensures that re-processing the same instruction does not create incorrect side effects. Persisting a deterministic key/result allows the consumer to safely short-circuit duplicates after retries/timeouts.

C

Distractor review

Switch to an SQS FIFO queue but remove error handling in the consumer so duplicates never occur.

FIFO can change ordering and reduce some duplicate scenarios, but it does not eliminate duplicates in all failure modes. Removing error handling reduces resiliency and can lead to lost or inconsistent processing.

D

Distractor review

Send all failed messages to a DLQ and rely on it to deduplicate messages that were already successfully processed.

A DLQ captures messages that fail repeatedly (after retry attempts / redrive conditions). It is for poison-message handling, not for deduplicating messages that were already successfully processed but later retried.

Common exam trap

Common exam trap: NAT rules depend on direction and matching traffic

NAT is not only about the public address. The inside/outside interface roles and the ACL or rule that matches traffic are just as important.

Technical deep dive

How to think about this question

NAT questions usually test address translation, overload/PAT behaviour, static mappings and whether the right traffic is being translated. Read the interface direction and address terms carefully.

KKey Concepts to Remember

  • Static NAT maps one inside address to one outside address.
  • PAT allows many inside hosts to share one public address using ports.
  • Inside local and inside global describe the private and translated addresses.
  • NAT ACLs identify traffic for translation, not always security filtering.

TExam Day Tips

  • Identify inside and outside interfaces first.
  • Check whether the scenario needs static NAT, dynamic NAT or PAT.
  • Do not confuse NAT matching ACLs with normal packet-filtering intent.

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.

FAQ

Questions learners often ask

What does this SAA-C03 question test?

Static NAT maps one inside address to one outside address.

What is the correct answer to this question?

The correct answer is: Make the consumer idempotent by deriving a deterministic idempotency key from the payment instruction (for example, the instruction ID), persisting the result of successful processing, and skipping re-processing when that key is already marked successful. — SQS Standard uses at-least-once delivery, so duplicates can occur when a consumer times out, crashes, or acknowledges only after incomplete processing. The resilient pattern is to make the consumer idempotent: use a deterministic idempotency key from the instruction, record successful completion in a durable store, and ensure that when the same message is delivered again the consumer detects the prior success and safely avoids repeating side effects. This achieves correctness without attempting exactly-once delivery. A postpones retries but does not remove the duplicate-processing risk. C is incorrect because FIFO plus removing error handling is not a duplicate-suppression guarantee and harms resiliency. D is incorrect because DLQs handle messages that repeatedly fail; they do not deduplicate successfully processed work.

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

Then try more questions from the same exam bank and focus on understanding why the wrong options are tempting.

Discussion

Loading comments…

Sign in to join the discussion.