mediummulti selectObjective-mapped

An order-processing worker consumes messages from Amazon SQS. Occasionally, the worker times out after successfully creating a payment record but before deleting the message, which causes duplicate charges during retries. Some messages also fail validation repeatedly because required fields are missing. Which two changes should the team make? Select two.

Question 1mediummulti select
Full question →

An order-processing worker consumes messages from Amazon SQS. Occasionally, the worker times out after successfully creating a payment record but before deleting the message, which causes duplicate charges during retries. Some messages also fail validation repeatedly because required fields are missing. Which two changes should the team make? Select two.

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

Best answer

Make the payment step idempotent using a unique transaction identifier.

Correct. SQS provides at-least-once delivery, so the same message can be processed more than once if the worker times out, retries, or crashes after partially completing the work. An idempotency key lets the application recognize that the payment was already created and prevents duplicate charges.

B

Best answer

Configure an SQS dead-letter queue with a redrive policy.

Correct. Messages that fail validation repeatedly should not remain on the main queue forever, because they waste worker capacity and keep failing with the same error. A dead-letter queue isolates these poison messages after a configured number of receives so the team can inspect and remediate them separately.

C

Distractor review

Reduce the visibility timeout so failed messages return to the queue faster.

Incorrect. Reducing visibility timeout speeds up redelivery, but it does not prevent duplicate business actions and can actually increase replay pressure. The core problem is that the payment operation must tolerate retries, and poison messages need a separate failure path.

D

Distractor review

Run only one long-lived worker instance so the queue can never be processed twice.

Incorrect. A single worker reduces availability and still does not guarantee exactly-once processing, because SQS can redeliver messages after a timeout or failure. This approach makes the system less resilient and creates a single point of failure.

E

Distractor review

Switch from a standard queue to a FIFO queue and remove all other changes.

Incorrect. FIFO queues help preserve order within a message group, but they do not remove the need for idempotent processing if the consumer times out after a partial success. They also do not replace the need for a dead-letter queue for messages that will never validate successfully.

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 payment step idempotent using a unique transaction identifier. — This scenario has two distinct problems. The duplicate charge issue is caused by SQS's at-least-once delivery model combined with a consumer that can time out after partially completing work, so the payment action must be idempotent. The repeated validation failures are poison messages, which should be routed to a dead-letter queue after a redrive policy is exceeded. Together, these changes make the queue-based workflow safe and operationally manageable. Shortening the visibility timeout does not solve duplicate processing and can make retries happen even more aggressively. Running a single worker lowers availability without guaranteeing exactly-once semantics. FIFO queues can help with ordering but do not eliminate duplicates caused by consumer retries or timeouts, and they do not address poison messages.

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.