AWS Certified Developer Associate DVA-C02 Practice Question
An application processes a very high volume of messages. The architecture must guarantee that no messages are lost and must allow operators to inspect or re-process any message that fails after several processing attempts. Which design best meets these requirements?
Deploy an Amazon Kinesis Data Stream with a Lambda consumer and rely on Lambda's on-failure destination to handle failed records.
Set up an Amazon SQS queue and configure a dead-letter queue (DLQ) to capture messages that exceed a maximum receive count.
Apply an exponential backoff retry strategy in the Lambda function that processes the messages, without using a DLQ.
Create an SQS delay queue to postpone the visibility of new messages and give the system time to recover from processing delays.
Using an Amazon SQS standard (or FIFO) queue with an associated dead-letter queue (DLQ) is the most effective pattern. SQS automatically tracks the ReceiveCount for each message and, when that count exceeds the configured maxReceiveCount, moves the full message body to the DLQ. The message is durably stored for up to the DLQ's retention period and can be redriven to the source queue after debugging, ensuring that no data is lost.
A Kinesis Data Stream with a Lambda consumer supports on-failure destinations, but only metadata about the failed record is forwarded; the payload itself remains in the stream and eventually expires (24 hours by default, up to 365 days with extended retention). Additional logic is required to replay or persist the failed data. Lambda-level backoff retries or an SQS delay queue provide temporary resiliency but do not offer durable storage for repeatedly failing messages. Therefore, an SQS queue with a properly configured DLQ best satisfies the guarantee of no message loss and straightforward recovery.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is an Amazon SQS dead-letter queue (DLQ)?
Open an interactive chat with Bash
How is message retention managed in an SQS queue?
Open an interactive chat with Bash
What is the difference between an SQS standard queue and a delay queue?
Open an interactive chat with Bash
AWS Certified Developer Associate DVA-C02
Development with AWS Services
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .