mediummultiple choiceObjective-mapped

An orders service publishes payment instructions to an Amazon SQS Standard queue. A downstream consumer sometimes times out and retries the work, causing the consumer to process the same instruction more than once. Operationally, the team must ensure that duplicate processing does not create duplicate charges. The queue type cannot be changed. What is the most resilient application-side approach?

Question 1mediummultiple choice
Full question →

An orders service publishes payment instructions to an Amazon SQS Standard queue. A downstream consumer sometimes times out and retries the work, causing the consumer to process the same instruction more than once. Operationally, the team must ensure that duplicate processing does not create duplicate charges. The queue type cannot be changed. What is the most resilient application-side approach?

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

Rely on SQS Standard to provide exactly-once delivery for each message, since the consumer uses retries.

Amazon SQS Standard provides at-least-once delivery. Even with retries, duplicates can still occur, so exactly-once behavior is not guaranteed by SQS.

B

Best answer

Implement idempotent processing using a persistent deduplication key (for example, paymentInstructionId) so repeated messages are ignored or safely merged.

Because SQS Standard is at-least-once, the consumer must assume duplicates are possible. Persisting a record keyed by paymentInstructionId (or using a database unique constraint) lets the consumer detect that a given instruction was already processed successfully and safely skip the charge or merge results deterministically.

C

Distractor review

Increase the queue’s visibility timeout to 24 hours so messages never reappear even if the consumer times out.

A long visibility timeout only reduces how soon duplicates might be re-delivered; it does not eliminate duplicate processing. It can also increase the duration of stuck failures and does not guarantee correctness.

D

Distractor review

Delete and recreate the queue with a different name whenever duplicates are detected in production.

Recreating queues is disruptive, does not address the underlying at-least-once + retry behavior, and does not provide a reliable correctness mechanism for preventing duplicate charges.

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: Implement idempotent processing using a persistent deduplication key (for example, paymentInstructionId) so repeated messages are ignored or safely merged. — With an SQS Standard queue, duplicates can occur due to at-least-once delivery and timeout/retry patterns in consumers. Since the queue type cannot change, the most resilient solution is to make the consumer idempotent. Use a stable key such as paymentInstructionId and persist processing state (for example, in a database) so that if the same instruction is received again, the consumer can safely return without charging a second time (or deterministically merge outcomes). This protects correctness regardless of delivery and retry behavior. Option A is incorrect because SQS Standard does not guarantee exactly-once delivery. Option C changes timing but cannot ensure correctness and can worsen operational risk by hiding failures for too long. Option D is an operational workaround that does not prevent future duplicates from being processed incorrectly.

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.