DVA-C02

AWS Developer Associate DVA-C02 practice exams

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.

Read the DVA-C02 study guide: what the exam covers, a 4-week plan and the topics people miss.

Exam at a glance

DVA-C02 practice exam settings
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 exam format before you book.

Domains and weights

DVA-C02 exam domains, weights and question counts
Domain Weight Weight bar Questions in our bank
Development with AWS Services 32% 101
Security 26% 82
Deployment 24% 76
Troubleshooting and Optimization 18% 56

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?

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

  1. A Set maxReceiveCount to 1 in the queue's redrive policy so a payment message is never delivered to the function twice
  2. B Increase the function timeout and the queue's visibility timeout so a message is not redelivered while its charge is in progress
  3. C Move to an SQS FIFO queue with content-based deduplication so duplicate payment messages are dropped before the function sees them
  4. D Use the payment request ID as an idempotency key stored with a DynamoDB conditional write, returning the saved result on repeats (correct answer)
Why: 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?

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

What your score report looks like

Example attempt, DVA-C02 practice test 3

78%

Passed
Pass mark 72%

Score by exam domain
DomainWeightYour score%
Development with AWS Services 32%
88
Security 26%
81
Deployment 24%
76
Troubleshooting and Optimization 18%
58

Study next: Troubleshooting and Optimization. It is below the pass mark and carries 18% of the exam.

Domains and pass mark from our DVA-C02 practice tests. Scores are an example attempt.

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. Written and reviewed by the DevOpsCode Lab team.

DevOpsCode Lab is not affiliated with AWS. DVA-C02 and related names are trademarks of their owners.

Related exams
Exam Vendor Level Questions Minutes Price
AIP-C01AWS Generative AI Developer Pro (AIP-C01) AWS Professional 375 180 $14.99
ANS-C01AWS Advanced Networking ANS-C01 AWS Professional 325 170 $14.99
DOP-C02AWS DevOps Professional DOP-C02 AWS Professional 375 180 $14.99
SAP-C02AWS Architect Professional SAP-C02 AWS Professional 375 180 $14.99
SCS-C03AWS Security Specialty SCS-C03 AWS Specialty 325 170 $14.99
AIB-C01AWS AI Business Strategist AIB-C01 AWS Foundational 325 90 $9.99