Amazon DVA-C02 Practice Exam Questions & Answers

7 Free Questions · Last reviewed: October 10, 2026 · Prepared & Reviewed by the ValidExamDumps Editorial Team

Exam Facts

Amazon DVA-C02 Exam Details

Key details for this exam, checked against the published exam outline

600 Practice Questions (Our Bank)
130 minutes Exam Duration
720 out of 1000 Passing Score
USD 150 Official Exam Fee
Exam Code
DVA-C02
Full Name
AWS Certified Developer - Associate (DVA-C02)
Issuing Body
Amazon Web Services
Question Format (Our Bank)
Multiple Choice
Delivery
Online proctored or at a Pearson VUE test centre
Eligibility
AWS recommends 1 or more years of hands-on experience developing and maintaining applications using AWS services, proficiency in at least one high-level programming language, and understanding of application lifecycle management
Validity
Valid for 3 years from the date the certification is earned
Practice Questions

Free DVA-C02 Practice Questions

Each question shows the correct answer and an explanation of why it is right

VA
ValidExamDumps Editorial Team Every question and its answer is checked by our DVA-C02 exam preparation team, who also write the explanation shown with each one. How we research and review these pages

A developer is deploying an application on Amazon EC2 instances that run in Account A. In certain cases, this application needs to read data from a private Amazon S3 bucket in Account B. The developer must provide the application access to the S3 bucket without exposing the S3 bucket to anyone else.

Which combination of actions should the developer take to meet these requirements? (Select TWO.)

Correct Answer: A, D
Explanation

This is a classic cross-account S3 access requirement: EC2 instances in Account A must read from a private S3 bucket in Account B without making the bucket public.

The correct pattern is to grant access using IAM + S3 bucket policy while keeping the bucket private. In Account B, you create an IAM role that has the necessary S3 read permissions (such as s3:GetObject and potentially s3:ListBucket depending on access needs). That is Option A.

However, permissions on the role alone are not sufficient, because the S3 bucket is in a different account and is private by default. AWS requires that the bucket owner explicitly grants access to the external principal. This is done by adding a bucket policy in Account B that allows the principal (either the role in Account A or a role session via STS) to access the bucket objects. That is Option D.

Option B is not correct in the ''select two'' sense because adding permissions to Account A's instance profile role does not, by itself, grant access to a bucket owned by Account B. You still need the bucket policy or another resource-based policy from the bucket owner.

Option C violates the requirement (''without exposing the S3 bucket to anyone else''). Making the bucket public is unnecessary and insecure.

Option E is incorrect because a trust policy controls who can assume a role (sts:AssumeRole), not what S3 permissions the role has. Also, trust policies do not grant s3:Get* access.

Therefore, create an IAM role with S3 read permissions in Account B and grant access via the Account B bucket policy.

A developer maintains a legacy ecommerce application that sends logs to an Amazon CloudWatch Logs log group. During an audit, the developer discovers that the application sends credit card numbers and credit card verification codes to the log group.

The developer needs a solution to give support staff the ability to view the logs. However, the support staff must not be able to view the sensitive credit card information. Application administrators must be able to view the logs and must have access to the sensitive credit card data. The developer cannot modify the application code.

Which solution will meet these requirements?

Correct Answer: A
Explanation

Because the developer cannot change the legacy application code, the solution must apply controls at the logging layer. CloudWatch Logs provides data protection policies that can automatically detect sensitive data using managed data identifiers (including credit card data) and apply masking (de-identification) as log events are ingested. This ensures that sensitive values such as card numbers and verification codes are not displayed in plaintext to general viewers of the log group.

With option A, enabling a data protection policy on the log group and configuring it to mask the relevant credit card data ensures that when support staff query or view logs, the sensitive fields appear redacted. CloudWatch Logs also supports controlled access to view the original unmasked values through an explicit permission: users who have the appropriate IAM authorization (such as logs:Unmask) can retrieve or view the sensitive data, while everyone else sees only the masked version. Granting logs:Unmask to application administrators satisfies the requirement that administrators can access the sensitive data, while withholding it from support staff enforces the restriction.

Option B (KMS encryption) provides encryption at rest for the log group but does not prevent authorized readers from seeing sensitive data once decrypted. Support staff who can read logs would still see plaintext card data. Option C is not a standard or operationally efficient pattern for CloudWatch Logs redaction; Macie is primarily for discovering sensitive data in S3 and does not serve as the native masking mechanism for CloudWatch Logs ingestion. Option D is not applicable: AWS WAF inspects HTTP requests/responses at the edge or load balancer/API layer, not application log streams already being emitted to CloudWatch.

Therefore, A is the correct solution: use CloudWatch Logs data protection to mask sensitive data by default and grant logs:Unmask only to administrators.

A developer wants to deploy a new version of an AWS Elastic Beanstalk application. During deployment the application must maintain full capacity and avoid service interruption. Additionally, the developer must minimize the cost of additional resources that support the deployment.

Which deployment method should the developer use to meet these requirements?

Correct Answer: B
Explanation

This solution will meet the requirements by using a rolling with additional batch deployment method, which deploys the new version of the application to a separate group of instances and then shifts traffic to those instances in batches. This way, the application maintains full capacity and avoids service interruption during deployment, as well as minimizes the cost of additional resources that support the deployment. Option A is not optimal because it will use an all at once deployment method, which deploys the new version of the application to all instances simultaneously, which may cause service interruption or downtime during deployment. Option C is not optimal because it will use a blue/green deployment method, which deploys the new version of the application to a separate environment and then swaps URLs with the original environment, which may incur more costs for additional resources that support the deployment. Option D is not optimal because it will use an immutable deployment method, which deploys the new version of the application to a fresh group of instances and then redirects traffic to those instances, which may also incur more costs for additional resources that support the deployment.

A developer wants the ability to roll back to a previous version of an AWS Lambda function in the event of errors caused by a new deployment. How can the developer achieve this with MINIMAL impact on users?

Correct Answer: A
Explanation Using an alias pointing to a Lambda version lets you swap between versions instantly. When you deploy new code, you update just the alias target, not the function itself. If the new version causes problems, you point the alias back to the previous version. This approach means users stay on a stable version until you confirm the new one works properly. It minimizes disruption because the change is immediate and you can roll back just as fast if needed.

A developer is building an application that uses an Amazon RDS for PostgreSQL database. To meet security requirements, the developer needs to ensure that data is encrypted at rest. The developer must be able to rotate the encryption keys on demand.

Correct Answer: B
Explanation

Why Option B is Correct:A customer-managed AWS Key Management Service (KMS) key allows for encryption at rest and provides the ability to rotate the key on demand. This ensures compliance with security requirements for key management and database encryption.

RDS integrates natively with AWS KMS, allowing the use of a customer-managed key for encrypting data at rest.

Key rotation can be managed directly in AWS KMS without needing custom solutions.

Why Other Options are Incorrect:

Option A: AWS KMS managed encryption keys (AWS-owned keys) do not support key rotation on demand.

Option C & D: Storing keys in AWS Secrets Manager with custom rotation is not a recommended approach for database encryption. AWS KMS is designed specifically for secure key management and encryption.

AWS Documentation Reference:

Encrypting Amazon RDS Resources

AWS Key Management Service (KMS)

A developer has an application that pushes files from an on-premises local server to an Amazon S3 bucket. The application uses an AWS access key and a secret key that are stored on the server for authentication. The application calls AWS STS to assume a role with access to perform the S3 PUT operation to upload the file.

The developer is migrating the server to an Amazon EC2 instance. The EC2 instance is configured with an IAM instance profile in the same AWS account that owns the S3 bucket.

What is the MOST secure solution for the developer to use to migrate the automation code?

Correct Answer: C
Explanation

The most secure approach on Amazon EC2 is to avoid long-term static credentials entirely and rely on IAM roles for Amazon EC2 (instance profiles). When an EC2 instance is associated with an instance profile, AWS automatically provides temporary security credentials to the instance through the instance metadata service (IMDS). The AWS SDK and CLI can retrieve and rotate these credentials automatically, eliminating the need to store an access key and secret key on disk. This reduces the risk of credential leakage and removes the operational burden of key rotation.

In this scenario, the EC2 instance is already configured with an IAM instance profile in the same account as the S3 bucket. Because the bucket is in the same account and the instance profile can be granted the required permissions, there is no security benefit to keeping a separate stored access key/secret key or performing an additional STS AssumeRole hop. The simplest and most secure design is to attach an IAM policy to the instance profile role that allows the required s3:PutObject (and any related actions such as s3:PutObjectAcl if needed) on the specific bucket/prefix. The application code can then call S3 directly using the AWS SDK, which will automatically use the instance profile credentials.

Option A continues to use long-lived static credentials stored on the server, which is less secure than instance profiles. Option D is the same problem with different keys: still long-lived credentials that must be protected and rotated. Option B removes stored keys but keeps an AssumeRole call; although AssumeRole uses temporary credentials, it adds complexity and is unnecessary here because the instance already has an IAM role and the S3 bucket is in the same account.

Therefore, the most secure solution is C: remove static keys and the AssumeRole code and use the instance profile role with least-privilege S3 permissions.

A developer is creating an Amazon DynamoDB table by using the AWS CLI The DynamoDB table must use server-side encryption with an AWS owned encryption key

How should the developer create the DynamoDB table to meet these requirements?

Correct Answer: D
Explanation

Default SSE in DynamoDB:DynamoDB tables are encrypted at rest by default using an AWS owned key (SSE-S3).

No Additional Action Needed:Creating a table without explicitly specifying a KMS key will use this default encryption.


DynamoDB Server-Side Encryption:https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Encryption

Full Access

Get the complete DVA-C02 question set

  • 600 questions covering all exam domains
  • Correct answers with explanations, like the free questions above
  • PDF and online practice test
  • 90 days of free updates
Starting from 50% OFF
$20 $40
Get Full Access

One-time payment · Instant download

Study Guide

What the Amazon DVA-C02 Exam Covers

Exam domains verified against: Official Amazon DVA-C02 exam guide, last checked October 2026.

Domain 1: Development with AWS Services 32%

Write application code that deploys to AWS compute, serverless, and data services. Focus on Lambda functions, SDK usage, and application patterns that leverage managed AWS services to handle scalability and reliability automatically.

Sample question from this domain above: Q7

Domain 2: Security 26%

Implement authentication and authorization controls using IAM, encryption at rest and in transit with AWS managed services, and techniques for keeping secrets and sensitive data out of application code. Protect application logic and backend resources from unauthorized access.

Sample questions from this domain above: Q1Q2Q5Q6

Domain 3: Deployment 24%

Package application code for deployment, run automated tests in pre-production, and move code to production using CI/CD services like CodePipeline and CodeBuild. Automate the full cycle from commit to running application so changes deploy safely and repeatably.

Sample questions from this domain above: Q3Q4

Domain 4: Troubleshooting and Optimization 18%

Add instrumentation to applications using CloudWatch and X-Ray so you can see what is happening in production. Use logs, metrics, and traces to find the root cause when things break, then apply AWS service optimizations to improve performance and reduce cost.

FAQ

DVA-C02 Exam FAQ

Common questions about the exam itself

How hard is the DVA-C02 exam compared to other AWS associate certs?
DVA-C02 is intermediate difficulty and tests applied coding skills, not just architecture knowledge. About 60-70 percent of questions are scenario-based where you choose the right service or API call for a real problem, so hands-on experience with Lambda, DynamoDB, and CI/CD matters more than memorization.
What background do I need before taking DVA-C02?
AWS recommends at least one year of hands-on development experience with AWS services, proficiency in at least one high-level programming language like Python or Node.js, and familiarity with core services like IAM, S3, and EC2. The AWS Certified Cloud Practitioner is suggested as preparation but not required.
Which DVA-C02 objective area do most candidates struggle with?
Security is often cited as the hardest domain because IAM scoping, encryption choices, and secret management require both conceptual knowledge and practical decisions. Prepare by building real applications that implement authentication with Cognito and authorization with IAM roles.
How long should I budget to prepare for DVA-C02?
Most candidates prepare in 60-110 hours over 6-12 weeks, depending on existing AWS experience. Hands-on lab work with Lambda, DynamoDB, and CodePipeline typically takes more time than reading or watching videos, but that hands-on work is what the exam tests.
What happens on DVA-C02 exam day?
You have 130 minutes to answer 65 questions delivered online or at a test center. Questions are multiple-choice or multiple-response with no penalty for guessing, and you do not need to pass individual domains, only achieve an overall score of 720 out of 1000.
What is the DVA-C02 retake and reschedule policy?
You can reschedule or cancel up to 24 hours before your exam at no cost. If you fail, you must wait 14 calendar days before retaking the exam, and each retake costs the full USD 150 fee with no discount.
How long is the DVA-C02 certification valid?
The AWS Certified Developer Associate certification is valid for three years from the date you pass the exam. To renew, you must either take and pass the exam again or earn a higher-level AWS certification, which also renews the Developer Associate credential.
What job role does DVA-C02 map to?
DVA-C02 is designed for developers who build applications on AWS. It validates proficiency in developing, testing, deploying, and debugging cloud-based applications, so it appeals to software engineers, full-stack developers, and backend developers using AWS services.
How does DVA-C02 fit into the AWS certification path?
DVA-C02 is an associate-level exam alongside Solutions Architect Associate and SysOps Administrator Associate. It is the code-focused track where you prove hands-on development skills, whereas the Architect track focuses on design and the SysOps track focuses on infrastructure and operations.
Can I use my DVA-C02 discount voucher toward a professional exam?
AWS offers a 50 percent discount voucher on your next exam after passing any certification. You can apply this to any AWS certification exam, including professional-level exams like Solutions Architect Professional or DevOps Engineer Professional, reducing the fee from USD 300 to USD 150.