PREP WITH PROOF
Menu
CERTIFICATION STUDY GUIDES / PRACTICAL GUIDE

DVA-C03 Study Guide: Lambda SQS Partial Batch Responses and Retries

Practice AWS Developer Associate DVA-C03 scenarios on Lambda event source mappings, SQS partial batch responses, and idempotent message handling.

THE QUICK ANSWER

For DVA-C03, treat retry scope and duplicate side effects as separate concerns. A partial batch response can reduce unnecessary retries, and idempotent processing protects an operation if a message is delivered again.

Trace a failed record through a Lambda batch

A standard SQS queue receives requests to create order receipts. A Lambda event source mapping sends five records in a batch. Four receipts are written successfully, and one write times out. With ordinary batch failure handling, the batch can be delivered again after the visibility timeout. An invocation-level failure alone does not tell the event source mapping which individual records had completed.

With partial batch reporting enabled on the mapping, the function can catch per-record failures and return the failed message identifiers in batchItemFailures. The event source mapping can then retry the failed records while processing successful ones normally. If the function throws an unhandled error, treat the invocation as a failed batch. In a drill, confirm both the mapping setting and the response returned by the function.

Protect the receipt update from duplicate delivery

Retry settings affect how work is presented to the function. The handler still needs to tolerate reprocessing. Use a durable order event identifier to recognize whether the receipt operation already committed. Think about concurrent attempts and the case where a timeout hides a successful write. If the data store supports it, use a conditional operation so that two workers cannot both complete the same operation independently.

Write down what a duplicate attempt should return after it finds an existing matching result. Then decide how the handler should behave when the existing record is incomplete or represents a different event. Check the operation's real side effects, such as an additional receipt entry, rather than treating successful invocation counts as proof of correctness.

Account for queue type and repeat failures

The first example uses a standard queue. Change the requirement so order updates must remain ordered within an order's message group. For a FIFO queue, review the AWS guidance on stopping after a failure and returning both failed and unprocessed records when reporting partial failures. Work through three updates to the same order and show what would go wrong if the later updates committed before the earlier failed event.

Add a record that always fails validation. Review the queue redrive behavior and the observation that would tell the operator the message reached the dead-letter queue. Correlate the same event identifier across attempts, and verify that the application has a deliberate process for diagnosing the record before replay.

Run a paper DVA-C03 verification exercise

Create a five-row table of receipt requests and mark the third request as a transient failure. For each attempt, track the message identifier, operation identifier, stored result, and identifiers returned to the mapping. Run the sequence once with ordinary batch failure behavior and again with partial batch reporting. Compare the amount of repeated work and verify that the durable receipt count remains correct in both cases.

Repeat with a duplicate of the first request and a timeout after a committed write. Explain how the receipt check handles both cases. If the operation can trigger more than one side effect, name the evidence you would collect for each.

Record the test's final queue and database state as well as function logs. The queue tells you which messages remain to be handled, while the database tells you whether a repeat delivery changed the business outcome.

KEEP THESE THREE THINGS

Your next steps

  1. Verify that partial batch reporting is enabled and that the handler returns failed identifiers.
  2. Make receipt writes safe to repeat.
  3. Handle FIFO order and recurring failures explicitly.

Sources & official resources

Linked resources checked on 2026-12-01. Technical behavior and provider guidance can change; check the documentation for the version you use.

About this guide and its recommendations

Published by Prep With Proof with AI-assisted drafting. Study routines and examples are editorial suggestions, not official exam instructions or claims of a learner's personal results. Cited provider facts are linked; ownership of recommended Prep With Proof products is disclosed. No competitor endorsement or guaranteed certification outcome is implied.

Suggest a correction →