mediummultiple choiceObjective-mapped

An orders system sends payment instructions to an Amazon SQS queue. The consumer sometimes times out after it has already created the payment record but before it deletes the SQS message. As a result, the same instruction can be processed more than once. Which design best ensures the consumer remains resilient and does not create duplicate payments when the same instruction is delivered multiple times?

Question 1mediummultiple choice
Full question →

An orders system sends payment instructions to an Amazon SQS queue. The consumer sometimes times out after it has already created the payment record but before it deletes the SQS message. As a result, the same instruction can be processed more than once. Which design best ensures the consumer remains resilient and does not create duplicate payments when the same instruction is delivered multiple times?

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

Assume the consumer will always delete the SQS message in the same execution path, and ignore the timeout case.

Timeouts and crashes do occur; assuming deletion always succeeds leads directly to duplicate processing.

B

Best answer

Use idempotency: store a deterministic payment request identifier in a DynamoDB table and only create a payment when a conditional write indicates it was not processed before.

Idempotency based on a stable identifier prevents duplicates by making processing repeatable and safely detectable.

C

Distractor review

Switch to SQS Standard because it provides exactly-once delivery, so duplicates cannot happen.

SQS Standard is at-least-once delivery; duplicates can still occur, and exactly-once is not guaranteed.

D

Distractor review

Increase the consumer timeout and reduce the number of retries so that duplicates rarely occur.

Reducing retries lowers frequency but does not guarantee correctness; resilience requires correctness under duplicates.

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: Use idempotency: store a deterministic payment request identifier in a DynamoDB table and only create a payment when a conditional write indicates it was not processed before. — The key requirement is correctness under duplicate deliveries and partial failures. With SQS at-least-once delivery, the same message can be processed multiple times, especially when timeouts prevent message deletion. Implementing idempotency by persisting a deterministic identifier (for example, paymentInstructionId) and using a conditional write in DynamoDB ensures the payment record is created only once; subsequent attempts detect the existing processed state and skip or reconcile safely. Increasing timeouts or relying on deletion success doesn’t address the underlying delivery semantics. SQS Standard does not guarantee exactly-once behavior, so it cannot eliminate duplicates by itself. Option A ignores real failure modes and guarantees duplicates under timeouts. Option C is incorrect because SQS Standard does not provide exactly-once delivery. Option D may reduce duplicate frequency, but resilience requires safe handling even when duplicates occur, not merely fewer duplicates.

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.