All AWS exams
AWS DVA-C02: AWS Certified Developer - Associate
What the DVA-C02 exam covers and what it costs, with a free 30-question practice test and an explanation for every answer.
- Exam fee
- $150 USD
- Duration
- 130 minutes
- Questions on the exam
- 65
- Level
- Associate
- Topic areas
- 4
- Free practice questions
- 30
- Full question bank
- 100 questions
What the DVA-C02 exam covers
The topic areas in our DVA-C02 question bank, with each one's share of the 100 practice questions.
| Topic | Share | Questions |
|---|---|---|
| Development with AWS Services | 48% | 48 |
| Security | 19% | 19 |
| Troubleshooting and Optimization | 19% | 19 |
| Deployment | 14% | 14 |
DVA-C02 cost and format
| Exam code | DVA-C02 |
|---|---|
| Certification | AWS Certified Developer - Associate |
| Vendor | AWS |
| Level | Associate |
| Status | Retiring |
| Languages | English, Japanese, Korean, Portuguese (Brazil), Simplified Chinese, Spanish (Latin America) |
| Retires | November 30, 2026 |
| Replaced by | DVA-C03 |
Last checked October 22, 2026 against the official AWS exam page.
DVA-C02 sample questions
The first 5 questions from the free practice test. Open a question to see the answer and why it is right.
Question 1Development with AWS Services
A Lambda function must read items from a DynamoDB table and call an external API. The function needs its own access to DynamoDB, with no hard-coded keys. What should the developer configure?
- AAn execution role for the function with a policy that allows the needed DynamoDB actions
- BA long-lived IAM access key pair stored in the function's environment variable
- CA bucket policy attached to the DynamoDB table that grants object-level read and write actions to callers
- DA resource-based policy on the API Gateway REST API that permits invoke requests but no table access
Show answer and explanationHide answer
Correct answer: AA Lambda execution role provides temporary credentials scoped to the permitted DynamoDB actions, without stored keys. Environment-variable keys are long-lived secrets, and bucket policies and gateway policies do not grant table access.
Question 2Security
Which two configurations let a browser-based app on one domain call an API on another domain safely? (Choose two.)
- ACORS headers that allow only the web app's origin
- BAllowing every origin with credentials for every method
- CPre-flight OPTIONS responses that list the allowed methods and headers
- DDisabling HTTPS for faster calls
- EA bucket policy granting the browser access
Show answer and explanationHide answer
Correct answer: A, CReturning CORS headers for the app's origin and answering pre-flight OPTIONS requests with the allowed methods and headers lets the browser make the call safely. Allowing every origin with credentials, disabling HTTPS and bucket policies do not provide that safe, scoped access.
Question 3Troubleshooting and Optimization
A Lambda function times out intermittently when calling an external API. The developer wants to find which downstream call is slow inside each invocation. Which tool gives this detail?
- AAWS Trusted Advisor checks for cost optimization and security
- BAmazon QuickSight dashboard for request counts
- CAWS X-Ray tracing with the function's tracing enabled
- DAWS Pricing Calculator estimate for monthly cost
Show answer and explanationHide answer
Correct answer: CX-Ray traces show the timing of each segment and subsegment within a request, including external calls. Pricing, dashboards and advisory checks do not show per-call timing.
Question 4Deployment
A team deploys a Lambda function with a new version every week and wants to shift 10 percent of traffic to the new version first, then increase it after checks pass. Which feature supports this?
- ALambda aliases with weighted routing between two versions
- BEditing the function code directly in the production console today
- CDisabling the function's logs during each deployment
- DDeleting the old version before deploying the new one in the account
Show answer and explanationHide answer
Correct answer: AAliases with weighted routing shift a percentage of invocations to a new version and allow gradual promotion. Deleting old versions, live editing and disabling logs remove safeguards.
Question 5Development with AWS Services
A developer needs an application to send a message to an SQS queue and have many consumers process messages independently, each with its own copy. Which pattern fits best?
- ASend the message directly to each consumer over HTTP
- BWrite the message to a shared file on EC2
- CUse a single standard queue with one consumer that forwards copies
- DPublish to an SNS topic and subscribe one SQS queue per consumer
Show answer and explanationHide answer
Correct answer: DFan-out from SNS to multiple SQS queues gives each consumer its own copy and independent processing. Direct HTTP calls couple the producer to each consumer, shared files do not notify consumers, and a single consumer does not give independent copies.
How to prepare for DVA-C02
- Read the official AWS outline first (exam page), so you know exactly what is in scope.
- Give the most time to Development with AWS Services and Security: together they make up 67% of the questions.
- Take the free 30-question practice test and note which topics you miss.
- Go back to the weak topics, then test again. A practice score shows where to study; it does not predict your exam result.
Full DVA-C02 question bank
All 100 questions with answers and explanations, as a PDF, an online practice exam, or both.
Both formats together. The best value.
Instant access after payment, with 90 days of updates. Checkout is on our store, AIExamCerts.
DVA-C02 FAQ
Related exams
| Exam | Vendor | Level |
|---|---|---|
| DVA-C03: AWS Certified Developer - Associate (updated) | AWS | Associate |
| AIP-C01: AWS Certified Generative AI Developer - Professional | AWS | Professional |
| DOP-C02: AWS Certified DevOps Engineer - Professional | AWS | Professional |
| AIB-C01: AWS Certified AI Business Strategist (beta) | AWS | Foundational |
| DEA-C01: AWS Certified Data Engineer - Associate | AWS | Associate |
| MLA-C02: AWS Certified Machine Learning Engineer - Associate (updated, beta) | AWS | Associate |