easymultiple choiceObjective-mapped

A consumer application reads from an Amazon SQS queue. Some messages have an invalid format and always fail processing. They are retried repeatedly and consume consumer capacity. What is the best way to prevent these "poison pill" messages from blocking normal processing?

Question 1easymultiple choice
Full question →

A consumer application reads from an Amazon SQS queue. Some messages have an invalid format and always fail processing. They are retried repeatedly and consume consumer capacity. What is the best way to prevent these "poison pill" messages from blocking normal processing?

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 long polling and increase the maximum message retention to 30 days.

Long polling affects how long the consumer waits for messages during ReceiveMessage, not how many times a failing message is retried. Increasing retention only keeps problematic messages available longer; it does not automatically isolate them.

B

Best answer

Configure a dead-letter queue (DLQ) with a redrive policy and a maxReceiveCount.

A DLQ with a redrive policy isolates poison-pill messages. After a message fails processing and is received more than maxReceiveCount times, SQS stops returning it to the main queue and moves it to the DLQ. Normal messages continue to be processed without repeatedly consuming consumer capacity.

C

Distractor review

Switch the queue to FIFO and disable retries in the consumer code.

FIFO affects ordering, not the automated quarantine behavior for repeated failures. Disabling retries in code may reduce retries temporarily, but it does not provide the built-in maxReceiveCount-based routing to a DLQ that systematically isolates poison pills.

D

Distractor review

Delete the main queue and recreate it after every failure.

Recreating the queue is disruptive and does not address the underlying processing issue. It also risks data loss, operational complexity, and losing the ability to analyze problematic messages.

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: Configure a dead-letter queue (DLQ) with a redrive policy and a maxReceiveCount. — Use an SQS dead-letter queue (DLQ) with a redrive policy. Set a maxReceiveCount value so that when a message fails processing repeatedly (each failure results in the message becoming visible again after the visibility timeout), SQS eventually routes that message to the DLQ instead of letting it keep circulating in the main queue. This prevents poison-pill messages from consuming consumer capacity, while still preserving the failed messages for later inspection, correction, and possible replay. A is wrong because long polling and retention settings do not stop repeated failed processing cycles. C is wrong because FIFO and disabling retries in code do not provide SQS’s managed maxReceiveCount quarantine mechanism. D is wrong because deleting and recreating the queue is not a resilience pattern and can interrupt processing and lose diagnostic information.

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.