# AWS Developer Associate DVA-C02 practice exams

> Prepare for DVA-C02 with 315 practice questions across 5 full timed exams, weighted toward Development with AWS Services. Every answer is explained.

Page: https://devopscodelab.com/exams/aws-dva-c02/

315 questions in 5 timed practice tests. Each test has about 65 questions and a 130-minute limit. The pass mark is 72%. Results are split across the 4 exam domains.

## Exam at a glance

| Setting | Value |
| --- | --- |
| Practice tests | 5 |
| Questions in total | 315 |
| Questions per test | About 65 |
| Time limit per test | 130 minutes |
| Pass mark | 72% |
| Question types | Single answer and multiple answer (28 multiple-answer questions) |
| Level | Associate |
| Category | Cloud |

These are the settings of our practice tests. Check the official AWS exam page for the current format before you book.

## Domains and weights

| Domain | Weight | Questions in our bank |
| --- | --- | --- |
| Development with AWS Services | 32% | 101 |
| Security | 26% | 82 |
| Deployment | 24% | 76 |
| Troubleshooting and Optimization | 18% | 56 |

## Price and access

- DVA-C02 practice exams: $12.99 for 12 months of access.
- Free mini exam: 15 questions with explanations (free account): https://devopscodelab.com/app/exams/aws-dva-c02/mini/
- All-Access subscription includes every exam: https://devopscodelab.com/pricing/
- 10 free questions with answers: https://devopscodelab.com/exams/aws-dva-c02/free-practice-questions/

## Sample questions

### Question 1 of 3

A Node.js Lambda handler is declared as exports.handler = async (event) => { s3.putObject(params).promise(); return 'done'; }. The function reports success, but objects often never appear in S3. What is wrong?

- A. Async handlers also need the callback parameter; without calling callback(null), Lambda discards in-flight network requests
- B. The handler must return an object with statusCode and body; a plain string return makes Lambda cancel pending SDK calls
- C. The execution role lacks s3:PutObject, and Lambda swallows AccessDenied errors from un-awaited SDK calls instead of failing the invocation
- D. The putObject promise is never awaited, so the handler resolves and the environment freezes before the request finishes

**Answer:** D

**Explanation:** In an async handler, returning before awaiting the promise ends the invocation, and the execution environment is frozen, so pending work may never complete. Async handlers signal completion by resolving their promise; adding a callback is not needed and mixing the two styles is discouraged. A missing s3:PutObject permission would surface as a rejected promise and a consistent failure, not intermittent success, and the root problem is still that nothing awaits it. The statusCode/body shape only matters for proxy integrations and has no effect on in-flight SDK requests.

### Question 2 of 3

A Lambda function charges customer cards and is triggered from a queue that delivers messages at least once. The team must guarantee a card is never charged twice for the same payment request. What is the best approach?

- A. Set maxReceiveCount to 1 in the queue's redrive policy so a payment message is never delivered to the function twice
- B. Increase the function timeout and the queue's visibility timeout so a message is not redelivered while its charge is in progress
- C. Move to an SQS FIFO queue with content-based deduplication so duplicate payment messages are dropped before the function sees them
- D. Use the payment request ID as an idempotency key stored with a DynamoDB conditional write, returning the saved result on repeats

**Answer:** D

**Explanation:** An idempotency key stored with a conditional write lets the function detect a repeat and return the earlier result instead of charging again, which is the pattern implemented by Powertools for AWS Lambda idempotency. A maxReceiveCount of 1 sends any failed message straight to the dead-letter queue, losing legitimate retries, and does not stop at-least-once duplicates. FIFO deduplication only covers a 5-minute window on the producer side and does not help when the consumer is retried after partially processing. Longer timeouts reduce but do not eliminate redelivery.

### Question 3 of 3

A worker polls an Amazon SQS standard queue and takes about 90 seconds to process each message. The queue uses the default visibility timeout. The team sees many messages processed twice. What is the most likely fix?

- A. Increase the queue's visibility timeout to longer than the maximum processing time, for example 2 minutes
- B. Enable long polling by setting ReceiveMessageWaitTimeSeconds to 20 so workers receive fewer empty and duplicate responses
- C. Reduce the message retention period to 60 seconds so a message that is not deleted quickly expires instead of being delivered again
- D. Add a dead-letter queue with maxReceiveCount set to 1

**Answer:** A

**Explanation:** The default visibility timeout is 30 seconds, so a message becomes visible again while the first worker is still processing it and another worker receives it. Setting the timeout above the processing time (or extending it with ChangeMessageVisibility) prevents this. Long polling reduces empty receives but does not affect redelivery. A DLQ with maxReceiveCount 1 moves messages aside after a redelivery instead of preventing it. A 60-second retention period is below the 90-second processing time and would delete messages that have not yet been processed.


## Study plans

### Two weeks

1. Day 1: take practice test 1 in exam mode to get a baseline.
2. Days 2 to 5: domain mode on Development with AWS Services and Security, the two most heavily weighted domains.
3. Day 6: practice test 2 in exam mode, then the mistakes quiz.
4. Days 7 to 12: practice tests 3 to 5, one every other day, each followed by its mistakes quiz.
5. Days 13 and 14: final mode. Book the exam when your readiness stays above the pass mark.

### Four weeks

1. Week 1: one practice test in practice mode, reading every explanation. Note your two lowest domains.
2. Week 2: domain mode on those two domains, then a second practice test in exam mode.
3. Week 3: practice tests 3 and 4 in exam mode, with the mistakes and flagged quizzes after each.
4. Week 4: practice test 5 and final mode until your readiness holds above the pass mark.

## Questions about the DVA-C02 practice exams

**Are these real DVA-C02 exam questions?**

No. We write every question ourselves and map it to the published DVA-C02 exam objectives. We do not use leaked or recalled questions.

**Do the time limit and pass mark match the official exam?**

They match the settings of our practice tests. Exam providers change their format from time to time, so check the official exam page before you book.

**Can I try it before I pay?**

Yes. The free mini exam has 15 questions with full explanations and needs no account.

**How long do I keep access?**

A single-exam purchase gives you 12 months of access. All-Access includes this exam for as long as your subscription runs.

**What happens after I finish a test?**

You get a score, a pass or fail against the pass mark, a score per domain and every answer with its explanation.

Last updated November 2026.

DevOpsCode Lab is not affiliated with AWS. DVA-C02 and related names are trademarks of their owners. We write every question ourselves; these are not real exam questions.
