BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

AWS DVA-C02 Exam Questions

December 1, 2026 is the last day anyone can sit DVA-C02. AWS has already named the replacement, DVA-C03, with registration opening on October 27, which leaves about five weeks where both exist. The other thing worth knowing is how this one is marked. Sixty-five questions arrive and only 50 of them count, with 15 unscored pretest items mixed in and nothing on the screen to tell them apart. Working DVA-C02 exam questions across all four domains is the sensible response to that. Booked before December, and the deadline plans your weeks for you. Not booked, and the real question is whether to sit this version or wait for the next.

Exam nameAWS Certified Developer - Associate
Exam codeDVA-C02
CertificationAWS Certified Developer Associate, Amazon Associate
Time allowed130 minutes
Passing score720 on a scale of 100 to 1000, scored compensatorily across the whole exam rather than domain by domain
Recommended experienceOne or more years of hands-on experience developing and maintaining applications on AWS. No prerequisites.
Exam costUSD 150
LanguagesEnglish, Japanese, Korean, Portuguese (Brazil), Simplified Chinese, Spanish (Latin America)
DeliveryPearson VUE test centre, or online proctored
Retake policy14 calendar days between attempts, with no limit on how many and the full fee payable each time. A passed exam cannot be retaken for two years.
Certification validityThree years. Recertify by passing the current version, or by earning AWS Certified DevOps Engineer - Professional.
Exam retirementLast day to sit DVA-C02 is December 1, 2026. DVA-C03 registration opens October 27, 2026.
Practice questions in our bank600
Questions on the real exam65
Question Formats in the DVA-C02 Exam
Multiple choice
Multiple response
M Reviewed by Martin Shawn, AWS Certified Developer - Associate

DVA-C02 Exam Practice Questions

Written to the DVA-C02 guide rather than the DVA-C03 one that replaces it in December.

Question 1

A developer is building an API that uses an Amazon CloudFront distribution to forward requests to an AWS Lambda function URL. The developer must ensure that the function URL can be accessed only through the CloudFront distribution and not directly.

Which solution will meet this requirement?

Answer Options:
Show Answer

Correct Answer: B

Explanation:

To ensure a Lambda function URL is reachable only through CloudFront, the solution must (1) make CloudFront the only authorized caller, and (2) prevent direct public access to the function URL endpoint. The AWS-native way to do this is to use a resource-based policy on the Lambda function that permits invocation only from the specific CloudFront distribution, combined with CloudFront's Origin Access Control (OAC) to sign origin requests.

A Lambda function URL can be configured for IAM-based authorization, and Lambda supports resource-based permissions (via lambda:AddPermission) that restrict who can invoke it. By scoping the permission so that only the CloudFront distribution (identified by a source ARN / distribution identifier) is allowed, direct requests that do not come through CloudFront will be rejected. This enforces the requirement that the function URL cannot be accessed directly.

CloudFront OAC is the modern mechanism to securely access origins by having CloudFront sign the requests it sends to the origin. When CloudFront signs requests and the origin (here, the Lambda function URL) is configured to accept only authorized requests per its resource policy, CloudFront becomes the only viable access path.

Option A is incorrect because CloudFront does not use a ''resource-based policy'' to grant access to an origin in this way; the enforcement must happen at the origin. Option C is not how CloudFront accesses origins; CloudFront does not assume a customer IAM role to fetch origin content. Option D is fragile and not recommended: CloudFront IP ranges can change and are not intended to be used as a static allowlist for origin protection; additionally, IP-based controls do not provide the same strong identity-based authorization that OAC + resource policy provides.

Therefore, B is the correct solution: restrict the Lambda function URL with a Lambda resource-based policy and configure CloudFront with OAC so only CloudFront-originated requests are accepted.


Question 2

A developer is setting up AWS CodePipeline for a new application. During each build, the developer must generate a test report.

Which solution will meet this requirement?

Answer Options:
Show Answer

Correct Answer: A

Explanation:

In CodePipeline, the service designed to run builds, execute unit/integration tests, and produce build artifacts (including test reports) is AWS CodeBuild. CodeBuild runs commands specified in a buildspec.yml file and supports reporting outputs such as test results (for example, JUnit XML), code coverage, and other build metadata.

Option A is correct because the developer can configure the CodeBuild project to run the test suite during the build phase and configure the buildspec to publish test report files. This integrates naturally into CodePipeline as a build stage, and the reports are generated consistently on each pipeline execution.

Option B is incorrect: CodeDeploy is for deploying applications (in-place/blue-green) and lifecycle hooks, not for standard build/test report generation.

Option C increases operational overhead by managing an EC2 build server, which is unnecessary when CodeBuild provides managed build environments.

Option D is unrelated: CodeArtifact is a package repository, not a test reporting solution.

Therefore, use CodeBuild and configure test reports via the buildspec.


Question 3

A company stores data in an Amazon S3 bucket that is updated multiple times each day. S3 Versioning is enabled, and multiple versions of objects accumulate.

The company needs the bucket to retain only the current version and the immediately previous version of each object.

Which solution will meet these requirements?

Answer Options:
Show Answer

Correct Answer: B

Explanation:

Amazon S3 Lifecycle rules are specifically designed to manage object versions over time. When versioning is enabled, lifecycle rules can be configured to expire noncurrent versions, retaining only a defined number of recent versions.

AWS documentation states that lifecycle rules can be used to ''retain a specific number of newer noncurrent versions.'' By configuring a lifecycle rule to keep one noncurrent version, Amazon S3 automatically deletes older versions while retaining the current and immediately previous versions.

Bucket policies (Option A) control access, not retention. S3 Object Lock (Option C) is designed for regulatory compliance and write-once-read-many (WORM) use cases and is not suitable for routine version cleanup. Suspending versioning (Option D) does not remove existing versions and increases application complexity.

Therefore, an S3 Lifecycle rule is the correct and AWS-recommended solution.


Question 4

A company is running a custom application on a set of on-premises Linux servers that are accessed using Amazon API Gateway. AWS X-Ray tracing has been enabled on the API test stage.

How can a developer enable X-Ray tracing on the on-premises servers with the LEAST amount of configuration?

Answer Options:
Show Answer

Correct Answer: B

Explanation:

The X-Ray daemon is a software that collects trace data from the X-Ray SDK and relays it to the X-Ray service. The X-Ray daemon can run on any platform that supports Go, including Linux, Windows, and macOS. The developer can install and run the X-Ray daemon on the on-premises servers to capture and relay the data to the X-Ray service with minimal configuration. The X-Ray SDK is used to instrument the application code, not to capture and relay data. The Lambda function solutions are more complex and require additional configuration.


[AWS X-Ray concepts - AWS X-Ray]

[Setting up AWS X-Ray - AWS X-Ray]

Question 5

A company has many microservices that are comprised of AWS Lambda functions. Multiple teams within the company split ownership of the microservices.

An application reads configuration values from environment variables that are contained in the Lambda functions. During a security audit, the company discovers that some of the environment variables contain sensitive information.

The company's security policy requires each team to have full control over the rotation of AWS KMS keys that the team uses for its respective microservices.

Answer Options:
Show Answer

Correct Answer: B

Explanation:

Comprehensive and Detailed Step-by-Step

Customer Managed Keys (CMK) for Granular Control (Option B):

Customer-managed KMS keys are required to meet the security policy requirement of team-specific control over KMS key rotation. Each team can manage the lifecycle of its own key.

The kms:Decrypt permission allows the Lambda function execution roles to decrypt the environment variables during runtime.

This solution adheres to the principle of least privilege and satisfies the need for team-specific key control.

Why Other Options Are Incorrect:

Option A: AWS-managed keys cannot provide team-specific control or support the custom rotation policy required by the teams.

Option C: Adding kms:CreateGrant and kms:Encrypt permissions to Lambda roles is unnecessary for this scenario. The key usage is limited to decryption at runtime.

Option D: AWS-managed keys still lack team-specific control, and adding kms:CreateGrant and kms:Encrypt is redundant.


AWS Lambda Environment Variables

AWS Key Management Service Documentation

Unlock All 600 DVA-C02 Questions

DVA-C02 Exam Domains and Weightings

Four domains, running from 32% down to 18%, so the spread is wide enough to plan around. What each one asks of a developer is below, with the percentages taken from the AWS exam guide.

Development with AWS Services

32%

The largest domain, and the one that assumes you have written code against AWS rather than read about it. Working with the SDKs, the CLI and service APIs, building applications that behave when a call fails, and knowing which service a described requirement is really asking for. Retries, idempotency and pagination turn up here as habits rather than trivia.

Security

26%

A quarter of the paper, and it is developer security rather than architect security. Securing application code and the data it touches, handling credentials without embedding them, choosing where a secret lives, and applying least privilege to the role your function actually runs as. The questions tend to hand you a working design and ask what is wrong with how it authenticates.

Deployment

24%

Getting the thing out, repeatedly and without ceremony. Packaging, then CI and CD workflows across the AWS deployment services, with the differences between deployment strategies mattering more than the buttons. Expect to be asked what a given rollout does when a new version misbehaves, since that is where the strategies actually diverge.

Troubleshooting and Optimization

18%

The smallest domain and the one that reads most like the job. Something is failing or something is slow, and the question is which signal tells you which. Logs, metrics and traces are the raw material, and optimisation covers both cost and latency, so the right answer sometimes makes an application cheaper rather than faster.

Official Revisions by AWS

December 1, 2026 — : Final day to sit DVA-C02. After this the current version cannot be booked or taken.

October 27, 2026 — : Registration opens for DVA-C03, the updated version of this exam.

Checked 2026 — : The DVA-C02 exam guide still carries the four domains above at 32, 26, 24 and 18%, and AWS notes the exam now reaches emerging topics including AI-assisted development tooling.

Source: AWS Certified Developer - Associate (DVA-C02) exam guide. Our question bank is updated to match each revision.

What the DVA-C02 Exam Really Tests, and How

This is a developer's paper and it behaves like one. Questions hand you code that almost works, a permission that is slightly too broad, or a deployment that half succeeded, and ask what you would change. Recalling what a service does gets you into the room. Knowing how it fails, retries and charges you is what the marks are actually for.

Calling a service and surviving the answer

Tested via: scenario-based multiple-choice and multiple-response questions

Development with AWS Services is 32% of the exam and most of it is API behaviour rather than syntax. Throttling and exponential backoff, idempotency when a retry arrives twice, pagination on a list call that returns more than you expected, and the difference between an SDK's built-in retry and one you write yourself. The questions usually describe a symptom in production and expect the client-side habit that would have prevented it.

Where a credential is allowed to live

Tested via: scenario-based multiple-choice questions

Security carries 26% and the recurring shape is a design that works but should not. A key in an environment variable, a role broader than the function needs, a bucket policy doing what an IAM policy should. Secrets Manager against Parameter Store, encryption at rest against in transit, and temporary credentials against long-lived ones are the choices behind most of these, and the wrong answers are usually the ones that would run perfectly well.

What a rollout does when the new version is bad

Tested via: scenario-based multiple-choice questions

Deployment is 24%, and the strategies only differ in the moment something breaks. All-at-once, rolling, blue/green and canary are indistinguishable on a good day and completely different on a bad one, which is precisely when the exam describes them. Packaging, artefacts and the CI and CD services around them supply the rest, along with what a pipeline should do automatically when a stage fails. Rollback is the word that decides several of these questions.

Which signal tells you what is wrong

Tested via: scenario-based multiple-choice questions

Troubleshooting and Optimization is the smallest domain at 18% and the closest to daily work. A log line, a metric, a trace and an alarm each answer a different question, and the exam is interested in which one you would reach for given a described failure. Optimisation runs alongside it and covers cost as well as latency, so the best answer occasionally makes something cheaper rather than quicker. Cost questions are the ones candidates least expect to meet in a developer exam.

Choosing the service the requirement actually needs

Tested via: scenario-based multiple-choice questions

This one is spread across the whole paper rather than living in a single domain. A queue against a topic against a stream, a document store against a relational one, a container against a function. Each pair looks interchangeable until a constraint appears in the question, usually ordering, durability, cold start or cost. The reason it feels like the hardest part is that both options in front of you would work.

How to Pass the DVA-C02 Exam on Your First Attempt

The deadline is doing most of the arithmetic here. A failure costs USD 150 and 14 calendar days before you can sit again, and with DVA-C02 gone after December 1 there is a limited number of attempts left in the calendar regardless of what AWS allows.

  1. Count backwards from December 1. Work out how many 14 day gaps fit between now and then, and let that decide how soon the first attempt should be rather than how ready you feel.
  2. Take a full 65 cold. Development with AWS Services alone is a third of the paper, and no syllabus reading reveals whether your API habits are exam-shaped. A first run does, while there is still room to act on it.
  3. Read every miss back into the AWS documentation. Match the question to its domain and task statement, then read the service page and its limits. Our questions carry no written explanations, so the reasoning has to come from AWS.
  4. Write something small rather than reading more. A function with retries, a pipeline with a canary stage, a secret pulled at runtime. Three afternoons of that covers ground three chapters cannot.

What to Look for in DVA-C02 Practice Questions

and Why Prefer Pass4Success Practice Material

There is a version change in progress, which makes currency a specific question rather than a general one. Material sold for this exam over the next few months may be aimed at DVA-C02 or at DVA-C03, and the two are not interchangeable if you are sitting the older paper before December.

Written for the version you are actually sitting

With DVA-C03 registration opening in October, question sets will start moving to it while people are still taking DVA-C02. A set that has already moved is not wrong, it is simply for a different exam.

✓ Ours: the bank is reviewed on a regular cycle against the DVA-C02 guide and against how the exam is being tested, and the last review date is shown in the table above so the version it tracks is never a guess.

Something to read before paying

Associate-level AWS exams attract more practice material than any other certification family, and volume has never been a proxy for accuracy. A handful of questions settles it faster than any description.

✓ Ours: a free demo of both formats before any purchase. The samples above are drawn from the same bank as the full set.

Somewhere to revise and somewhere to rehearse

Reading a domain at your own pace and holding attention through 65 questions in 130 minutes ask different things, and the second is the one people underestimate on a two-hour paper.

✓ Ours: one purchase covers the PDF and the practice test, which runs browser-based or as a Windows desktop version.

Enough depth in the domain that carries a third of the marks

Development with AWS Services is 32%, and it is the domain where thin material shows first, because writing a good API-behaviour question takes more than reading a service page.

✓ Ours: 600 DVA-C02 exam questions across all four domains.

A price measured against USD 150 and a shrinking window

AWS charges the full fee for every attempt and there are only so many 14 day gaps left before the exam retires. That combination, rather than any competitor's price, is what preparation is worth measuring against.

✓ Ours: USD 69 against a full USD 150 charged on every attempt, with the exam retiring soon and only a handful of 14-day retake windows left, getting it right the first time matters more than the price difference alone.

DVA-C02 Exam Discussion: What Recent Candidates Say

Timing against the December deadline dominates the recent comments. Under that runs the older argument about how much of this exam you can pass by reading. Add yours once you have sat it.

KA
Kavya RaoNov 26, 2026
Troubleshooting questions tend to be root cause puzzles that require correlating CloudWatch metrics, Lambda logs, and X-Ray traces to find timeouts or permission failures. I passed after practicing log correlation and common failure signatures so I could rapidly diagnose issues under time pressure, and a friend credited Pass4Success with useful practice questions that helped polish timing.
JA
James WalkerNov 16, 2026
Troubleshooting was framed as multi-step diagnostics where you needed to interpret CloudWatch metrics, logs and X Ray traces to find latency hotspots or connectivity faults. Practice interpreting metrics, setting log filters, using X Ray to trace requests and checking security group and VPC routing rules to isolate root causes quickly. I cleared the exam by doing hands-on log and trace analysis beforehand.
FA
Faisal RizviNov 13, 2026
Troubleshooting prompts gave traces and CloudWatch logs and asked you to pinpoint the root cause of latency spikes or failed invocations. Learn to interpret X Ray traces, use CloudWatch Logs Insights and correlate metrics with logs, those practical debugging skills got me through the exam.

Frequently Asked Questions

When does the DVA-C02 exam retire?

December 1, 2026 is the last day DVA-C02 can be taken. AWS opens registration for the replacement, DVA-C03, on October 27, 2026, so there is a short overlap when both are bookable. If you are preparing now, the question is whether your target date falls before or after that boundary, because the study material differs.

How many questions are on the DVA-C02 exam and how long do you get?

DVA-C02 has 65 questions and a 130 minute limit. Only 50 of those questions are scored. The other 15 are unscored pretest items AWS uses to trial future questions, and nothing on screen identifies them, so every question has to be answered as though it counts.

What is the passing score for the DVA-C02 exam?

The passing score is 720 on a scale of 100 to 1000. AWS scores the exam compensatorily, meaning you need to clear the bar overall rather than pass each domain separately. A weak domain can therefore be carried by strong ones, which is not true of every certification exam.

How much does the DVA-C02 exam cost?

The exam costs USD 150. AWS charges the full registration fee for every attempt, and there is no discount on a retake. With a 14 day wait between attempts and the exam retiring on December 1, 2026, the practical cost of a failed attempt late in the year is higher than the fee alone.

What does the DVA-C02 exam cover?

DVA-C02 covers four domains. Development with AWS Services is the largest at 32%, covering SDKs, APIs and building applications that behave under failure. Security takes 26%, deployment 24%, and troubleshooting and optimization 18%. AWS also notes the exam now reaches emerging topics, including AI-assisted development tooling.

How much experience do I need before taking the DVA-C02 exam?

AWS recommends one or more years of hands-on experience developing and maintaining applications on AWS. There are no formal prerequisites, so the exam can be booked without any. The recommendation is best read as a description of what the questions assume, particularly around retries, idempotency and how services behave when a call fails.

Should I take DVA-C02 or wait for DVA-C03?

That depends on when you can be ready. DVA-C02 can be sat until December 1, 2026, and passing it earns the same AWS Certified Developer - Associate certification that DVA-C03 will. If your realistic date is November or earlier, the current version has settled material behind it. If it is later, preparing for DVA-C03 avoids studying twice.

Can I retake the DVA-C02 exam if I fail?

Yes, after 14 calendar days. AWS sets no limit on the number of attempts, but the full fee is payable each time, and the retirement date caps how many attempts are realistically available. AWS also blocks retaking an exam you have already passed for two years.

How long is the AWS Certified Developer - Associate certification valid?

It stays valid for three years from the date you pass. AWS recertifies it either by passing the current version of the same exam or by earning AWS Certified DevOps Engineer - Professional, which renews the associate credential underneath it. Letting it lapse means sitting the exam again.

What are the most common mistakes on the DVA-C02 exam?

Studying services rather than their failure behaviour is the costly one, because the questions describe things going wrong rather than working. The second is treating deployment strategies as interchangeable, when they only differ during a bad release. The third is leaving security to the end, since it carries 26% and is written from a developer's angle rather than an architect's.

Ready to Pass DVA-C02 on Your First Attempt?

Full access to all 600 DVA-C02 questions, in both the PDF and the practice test.

Get Premium Access

Related AWS Exams

M
Reviewed by Martin Shawn
AWS Certified Developer - Associate
Page last reviewedSep 4, 2026
Question bank updatedNov 21, 2026
Next scheduled reviewJan 13, 2027

This page tracks the DVA-C02 exam guide, and it does so on a stated end date rather than indefinitely, since AWS withdraws the exam on December 1, 2026. Until then the four domains and their weightings are re-read against the published guide at each review. The bank keeps its own cycle in between, because AWS adds and renames services faster than it revises an exam guide.

DVA-C02 Exam Discussion — All Comments


Save Cancel