Amazon DVA-C02 Practice Exam Questions & Answers
Amazon DVA-C02 Exam Details
Key details for this exam, checked against the published exam outline
- 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
- Full Question Set
- 600 questions Get All Questions
Free DVA-C02 Practice Questions
Answer each question, then see the correct answer and why it is right
Question 1 Domain 1 Development with AWS Services
A developer is building an application that saves records to an Amazon DynamoDB table with the PutItem API operation. The table uses streamID as its partition key and seqID as its sort key. The developer must ensure that a PutItem call never replaces an existing item that has the same partition key and sort key.
Which condition expression preserves the uniqueness of the partition key and sort key?
The correct condition expression is attribute_not_exists(streamID) AND attribute_not_exists(seqID). It stops PutItem from replacing an item that already carries the same composite primary key. With DynamoDB, PutItem typically overwrites an existing item that shares its primary key unless a condition expression blocks the write. The condition must name the real partition and sort key attributes rather than placeholder terms such as PARTITION or SORT. The attribute_exists function works in reverse, allowing the write only when those attributes are already present, so it does not protect uniqueness. The AWS DynamoDB documentation states that attribute_not_exists conditions are used to block replacement of existing items, and with composite keys the partition and sort key checks are evaluated together. (AWS Documentation)
Question 2 Domain 2 Security
A developer is creating an application on a group of Amazon EC2 Linux servers that run the Apache web server. The application must transmit API requests containing sensitive customer information to a second group of Linux servers that also run Apache. Both groups are located in peered VPCs within the same AWS account and AWS Region.
All sensitive information must be encrypted while it is in transit.
Which solution will satisfy these requirements with the highest level of operational efficiency?
This scenario calls for encryption in transit for sensitive data sent between two EC2-based application fleets. AWS guidance draws a clear distinction between network isolation and transport-layer encryption. Security groups (Option A) limit which traffic is allowed but leave it unencrypted. EBS encryption (Option C) safeguards data at rest and has no effect on data sent across the network.
A Site-to-Site VPN (Option B) would encrypt the traffic, but AWS documentation regards it as unnecessary and operationally burdensome when both workloads run inside AWS and application-level encryption is adequate.
The most efficient, AWS-recommended option is to use TLS (HTTPS) for application communication. AWS Certificate Manager (ACM) lets developers provision and manage TLS certificates without handling certificates by hand. Apache can be configured to serve HTTPS with ACM-issued certificates, so all API traffic between the fleets is encrypted in transit using standard TLS.
AWS documentation consistently recommends TLS for service-to-service communication within AWS whenever sensitive data is transmitted. This method reduces operational overhead, removes the need for extra networking infrastructure, and fits naturally with existing EC2-based applications.
Consequently, using ACM-issued certificates and HTTPS for Apache communication is the correct and most efficient solution.
Question 3 Domain 2 Security
A developer is launching an application on Amazon EC2 instances hosted in Account A. The application must consume records from an existing Amazon Kinesis data stream located in Account B.
Which combination of actions should the developer perform to grant the application access to the stream? (Select TWO.)
Cross-account reads from EC2 in Account A against a Kinesis data stream in Account B are best handled by having the workload call STS AssumeRole to take on a role in the account that owns the resource (Account B). This keeps Account B in control of which permissions external principals receive and lets Account A workloads obtain short-lived credentials limited to the actions they need.
Initially, build an IAM role in Account B holding the required Kinesis read permissions (for example kinesis:GetRecords, kinesis:GetShardIterator, kinesis:DescribeStream, and other read actions as needed). This matches option B. The role defines the boundary that Account B sets for access to its stream.
Next, set the trust policy on the Account B role so it permits the instance profile role (or another IAM principal) from Account A to assume it. In practice the trust relationship lives on the Account B role and names the Account A role as the trusted principal, which allows sts:AssumeRole. This matches option C (the intent is ''allow the instance profile role to assume the IAM role in Account B'').
Option A on its own is not enough, since permissions in Account A do not extend to resources owned by Account B without an explicit cross-account authorization path. Option D is wrong because trust policies do not ''allow reads from the stream''; they control which principals may assume roles, while permissions policies grant service actions. Option E, a resource-based policy, is not the main mechanism for cross-account Kinesis Data Streams access in this case compared with the standard role assumption model, which is the secure and commonly used approach of assuming a role in the owning account.
Accordingly, the correct actions are B (create the role with read permissions in Account B) and C (configure trust so Account A's instance role can assume it).
Get the complete DVA-C02 question set
$20$40
Question 4 Domain 3 Deployment
A company must deliver firmware updates to its customers worldwide.
Which service provides simple and secure access control over the downloads at the lowest cost?
This approach delivers simple and secure control over the downloads at the lowest cost because it relies on a content delivery network (CDN) that can cache and distribute firmware updates to customers worldwide, and applies a mechanism that can limit access to particular files or versions. Amazon CloudFront is a CDN that boosts the performance, availability, and security of web applications by serving content from edge locations nearer to customers. Amazon S3 is a storage service that holds firmware updates within buckets and objects. Signed URLs are URLs carrying extra details, such as an expiration date and time, that grant users temporary access to specific objects in S3 buckets. The developer can have CloudFront deliver firmware updates from S3 buckets and rely on signed URLs to govern who may download them and for how long. Setting up a dedicated CloudFront distribution for each customer will add unnecessary costs and complexity. Pairing Amazon CloudFront with AWS Lambda@Edge will demand extra programming effort to build custom logic at the edge locations. Relying on Amazon API Gateway and AWS Lambda to control access to an S3 bucket will also demand extra programming effort and may not offer optimal performance or availability.
Question 5 Domain 3 Deployment
A company is developing a microservices application made up of numerous AWS Lambda functions. The development team intends to use AWS Serverless Application Model (AWS SAM) templates to test the Lambda functions automatically. The team wants to direct a small share of traffic to new updates for testing before it commits to a full rollout of the application.
Which combination of steps will satisfy these requirements in the MOST operationally efficient manner? (Select TWO.)
This approach satisfies the requirements by combining AWS Serverless Application Model (AWS SAM) templates with gradual deployments to test the Lambda functions automatically. AWS SAM templates are configuration files that describe serverless applications and their resources, such as Lambda functions. Gradual deployments are an AWS SAM capability that release new Lambda function versions in increments, shift traffic step by step, and run validation tests throughout the rollout. The developer can turn on gradual deployments in the AWS SAM template by adding a DeploymentPreference property to each Lambda function resource. The developer can set the deployment preference type to Canary10Percent30Minutes, meaning 10 percent of traffic is sent to the new Lambda function version for 30 minutes before the remaining 100 percent is shifted. The developer can also apply hooks to test the deployment. Hooks are custom Lambda functions that run before or after traffic shifting to carry out validation tests or rollback actions.
Question 6 Domain 2 Security
A web application collects clickstream data with Amazon Kinesis Data Streams, and that data might remain unread for as long as 12 hours.
What should the developer do to apply encryption at rest to the data held in Kinesis Data Streams?
Question 7 Domain 2 Security
A developer is moving a containerized application from an on-premises data center to the AWS Cloud. The developer uses the AWS CDK to deploy a container on Amazon ECS running on AWS Fargate. The container sits behind an Application Load Balancer (ALB).
During stack deployment, the deployment fails because the ALB reports failed health checks. The developer must fix the failing health checks.
Which actions will satisfy this requirement? (Select TWO.)
Option B: The port of the ALB target group must correspond to the port specified in the ECS task definition. If these do not match, the ALB health check fails because it cannot route traffic correctly to the container.
Option E: The ALB listener needs a default action that sends requests to the correct target group tied to the ECS service. If this setup is absent, the health check fails because no traffic reaches the service.
Option A is not relevant to fixing health check problems because capacity providers concern provisioning compute capacity.
Option C (hosted zone) is not directly related to ALB health checks.
Option D (redirecting traffic) is not related to ECS health check configurations.
Question 8 Domain 1 Development with AWS Services
An organization is developing a serverless application made up of several AWS Lambda functions. Leadership wants faster feature delivery without hiring more personnel or lowering quality. The solution must strengthen unit testing and code review processes, work with the current IDE, and avoid any new infrastructure.
Which solution satisfies these requirements?
Amazon Q Developer Pro is an AWS-native, generative AI-powered development assistant built to help developers write, test, and review code directly within supported IDEs such as Visual Studio Code and JetBrains. AWS documentation presents Amazon Q Developer Pro as a productivity tool that speeds up development without requiring additional infrastructure.
Amazon Q Developer Pro can automatically generate unit tests, recommend improvements, identify potential bugs, and provide context-aware code reviews. Because it is integrated directly into the IDE, developers receive immediate feedback during development, which shortens feedback loops and improves overall code quality.
Options A, B, and C require additional tooling, scripting, or manual processes. While CodeBuild and CodeGuru Reviewer are valuable services, they add pipeline complexity and do not provide real-time, IDE-integrated assistance for writing tests and reviewing code.
Amazon Q Developer Pro uniquely satisfies all stated requirements:
No infrastructure to manage
Native IDE integration
Automated unit test generation
AI-assisted code reviews
Therefore, using Amazon Q Developer Pro is the most efficient and modern AWS-recommended solution.
Practice every DVA-C02 question in the full set, each one with its verified answer and a detailed explanation
Get Full AccessWhat the Amazon DVA-C02 Exam Covers
Exam domains verified against the Official Amazon DVA-C02 exam guide, last checked November 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.
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.
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.
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.
DVA-C02 Exam FAQ
Common questions about the exam itself
How hard is the DVA-C02 exam compared to other AWS associate certs?
What background do I need before taking DVA-C02?
Which DVA-C02 objective area do most candidates struggle with?
How long should I budget to prepare for DVA-C02?
What happens on DVA-C02 exam day?
What is the DVA-C02 retake and reschedule policy?
How long is the DVA-C02 certification valid?
What job role does DVA-C02 map to?
How does DVA-C02 fit into the AWS certification path?
Can I use my DVA-C02 discount voucher toward a professional exam?
Other Amazon Exams
Free practice questions for more Amazon certification exams
