Free DVA-C02 Practice Test Questions and Answers (2026)

View Mode
Q: 1
A company has an Amazon S3 bucket that contains sensitive dat a. The data must be encrypted in transit and at rest. The company encrypts the data in the S3 bucket by using an AWS Key Management Service (AWS KMS) key. A developer needs to grant several other AWS accounts the permission to use the S3 GetObject operation to retrieve the data from the S3 bucket. How can the developer enforce that all requests to retrieve the data provide encryption in transit?
Options
26 comments in the community discussion
1
Saw something like this reported on practice exams and it's always A. Only the S3 bucket policy with aws:SecureTransport can force HTTPS. Not totally sure if KMS can, but pretty certain it's not D.
1
A Had something like this in a mock, definitely a resource-based policy on the S3 bucket using aws:SecureTransport is the way AWS recommends to force HTTPS. Not 100 percent but fits official docs.
Q: 2
An application that runs on AWS receives messages from an Amazon Simple Queue Service (Amazon SQS) queue and processes the messages in batches. The application sends the data to another SQS queue to be consumed by another legacy application. The legacy system can take up to 5 minutes to process some transaction dat a. A developer wants to ensure that there are no out-of-order updates in the legacy system. The developer cannot alter the behavior of the legacy system. Which solution will meet these requirements?
Options
32 comments in the community discussion
5
Option A is the way to go. Setting the API Gateway integration type to MOCK lets the API return test responses without any backend, so frontend teams can keep developing. Pretty sure this is exactly what AWS recommends for this use-case. Anyone see a better method?
1
Seen almost this exact setup in a practice exam, so I'd go with D. You get FIFO for order and DelaySeconds to hold back processing just long enough. Not 100% if DelaySeconds alone solves all timing issues but sounds close for what the question asks. Agree or not?
Q: 3
A developer has an application that is composed of many different AWS Lambda functions. The Lambda functions all use some of the same dependencies. To avoid security issues the developer is constantly updating the dependencies of all of the Lambda functions. The result is duplicated effort to reach function. How can the developer keep the dependencies of the Lambda functions up to date with the LEAST additional complexity?
Options
20 comments in the community discussion
6
Makes sense to pick B here. Macie is built for scanning S3 buckets for sensitive data like credit card info, and "Financial" is the right finding type for that. Saw a similar question in some practice tests.
2
Saw this kind of question in some practice before and I thought D makes sense since CodeCommit would let you centralize the dependencies. It feels like less extra setup than layers, right? Anyone else go this way?
Q: 4
A company wants to migrate applications from its on-premises servers to AWS. As a first step, the company is modifying and migrating a non-critical application to a single Amazon EC2 instance. The application will store information in an Amazon S3 bucket. The company needs to follow security best practices when deploying the application on AWS. Which approach should the company take to allow the application to interact with Amazon S3?
Options
31 comments in the community discussion
1
C , but if this was a legacy workload needing static keys, D would flip to correct. Small details totally change it.
1
Its C, D tricks you into thinking it's okay but AWS best practices say use roles for EC2 access not static keys.
Q: 5
A developer is creating a mobile app that calls a backend service by using an Amazon API Gateway REST API. For integration testing during the development phase, the developer wants to simulate different backend responses without invoking the backend service. Which solution will meet these requirements with the LEAST operational overhead?
Options
33 comments in the community discussion
3
D . Mock integration with mapping templates is way less overhead than spinning up Lambda or EC2.
1
Mock integration is literally what API Gateway built for stuff like this. D
Q: 6
A developer is creating a template that uses AWS CloudFormation to deploy an application. The application is serverless and uses Amazon API Gateway, Amazon DynamoDB, and AWS Lambda. Which AWS service or tool should the developer use to define serverless resources in YAML?
Options
24 comments in the community discussion
1
Option C seems right since SAM is basically CloudFormation's serverless extension for YAML templates. CDK (D) is also used to define serverless stuff, but it's mainly in code (Python, TS). If the question was less strict about YAML, maybe D could work too. Pretty sure C is what they're looking for, but open to debat
Its C, since SAM lets you define serverless setups (Lambda, API Gateway, DynamoDB) in YAML. D is close but CDK is about writing infra as code, not editing YAML directly. I think C is what the exam wants but if anyone thinks D fits better, open to hearing why.
Q: 7
A developer is monitoring an application that runs on an Amazon EC2 Instance. The developer has configured a custom Amazon CloudWatch metric with data granularity of 1 second. It any issues occur, the developer wants to be notified within 30 seconds by Amazon Simple Notification Service (Amazon SNS). What should the developer do to meet this requirement?
Options
34 comments in the community discussion
6
Option A
1
A is right here, not B. Only high-resolution CloudWatch alarms can work with 1-second granularity and trigger SNS within 30 seconds. The others won’t get alerts out fast enough. Pretty sure on this but open to other takes.
Q: 8
A developer is creating an AWS Serverless Application Model (AWS SAM) template. The AWS SAM template contains the definition of multiple AWS Lambda functions, an Amazon S3 bucket, and an Amazon CtoudFront distribution. One of the Lambda functions runs on Lambda@Edge in the CloudFront distribution. The S3 bucket is configured as an origin for the CloudFront distribution. When the developer deploys the AWS SAM template in the eu-west-1 Region, the creation of the stack fails. Which of the following could be the reason for this issue?
Options
33 comments in the community discussion
2
B vs D? I think it's B because Lambda@Edge functions have to be in us-east-1, and SAM tries to create everything in the region you pick. But D threw me off for a sec since S3 and CloudFront are global-ish. Not totally sure though, AWS quirks get me sometimes.
2
Probably A, seen similar on practice tests. Official AWS docs and whitepapers on Lambda async invocation would help for stuff like this.
Q: 9
A developer is building a serverless application by using AWS Serverless Application Model (AWS SAM) on multiple AWS Lambda functions. When the application is deployed, the developer wants to shift 10% of the traffic to the new deployment of the application for the first 10 minutes after deployment. If there are no issues, all traffic must switch over to the new version. Which change to the AWS SAM template will meet these requirements?
Options
31 comments in the community discussion
7
D . Adding a GSI with OrderSource as the partition key lets you query just for MobileApp, much faster than Scan. Makes sense for a big table like this. Disagree?
1
Yep, A. Canary is the single 10 percent to start, then full cutover after 10 minutes.
Q: 10
A company has a serverless application that uses Amazon API Gateway and AWS Lambda functions to expose a RESTful API. The company uses a continuous integration and continuous delivery (CI/CD) workflow to deploy the application to multiple environments. The company wants to implement automated integration tests after deployment. A developer needs to set up the necessary infrastructure and processes to automate the deployment and integration tests for the serverless application.
Options
33 comments in the community discussion
3
C . Had something like this in a mock, CodePipeline is key for full CI/CD and integration tests across environments.
2
Nah, I think C. B is tempting but doesn't include full CI/CD orchestration with CodePipeline, which the question hints at for automation.
Q: 11
A developer has been asked to create an AWS Lambda function that is invoked any time updates are made to items in an Amazon DynamoDB table. The function has been created and appropriate permissions have been added to the Lambda execution role Amazon DynamoDB streams have been enabled for the table, but the function 15 still not being invoked. Which option would enable DynamoDB table updates to invoke the Lambda function?
Options
5 comments in the community discussion
1
Definitely B. You need to set up an event source mapping so Lambda knows to poll the DynamoDB stream, otherwise it won't trigger. The official AWS developer guide is pretty clear about this step if you want more details.
I don’t think it’s A, even though StreamViewType matters for what data you get in the stream, it won’t set up the trigger by itself. You still need to configure event source mapping so Lambda will actually poll the DynamoDB stream and invoke your function. B fixes that missing link. Pretty sure that’s what AWS expec
Q: 12
A company is offering APIs as a service over the internet to provide unauthenticated read access to statistical information that is updated daily. The company uses Amazon API Gateway and AWS Lambda to develop the APIs. The service has become popular, and the company wants to enhance the responsiveness of the APIs. Which action can help the company achieve this goal?
Options
9 comments in the community discussion
4
Makes sense to pick A. API caching in API Gateway is great for read-heavy, rarely-changing data since it cuts down on backend calls and speeds up responses. Not 100% but that's how I'd tackle this type of scenario.
1
C or A? Had something like this in a mock and pretty sure A is the way to go.
Q: 13
A company has an application that consists of different microservices that run inside an AWS account. The microservices are running in containers inside a single VPC. The number of microservices is constantly increasing. A developer must create a central logging solution for application logs.
Options
6 comments in the community discussion
2
C doesn’t actually log app-level data, just VPC network flows. Has to be A for application logs specifically.
1
A is the way to go here. Only CloudWatch Logs gives you proper app-level log centralization for microservices, especially when containers are involved. C just tracks network flows, not actual logs, and D’s for service discovery, not logging. Pretty sure about this but happy to hear other logic if anyone disagrees.
Q: 14
A company caches session information for a web application in an Amazon DynamoDB table. The company wants an automated way to delete old items from the table. What is the simplest way to do this?
Options
9 comments in the community discussion
5
B. that's what the official AWS docs and exam guides both suggest for this scenario. TTL attribute plus enabling the feature means no scripts needed. I saw similar on practice tests, pretty sure that's what they're after.
1
Why not just use TTL? Option B mentions enabling it with an expiration attribute, which sounds like the built-in way.
Q: 15
A company is running Amazon EC2 instances in multiple AWS accounts. A developer needs to implement an application that collects all the lifecycle events of the EC2 instances. The application needs to store the lifecycle events in a single Amazon Simple Queue Service (Amazon SQS) queue in the company's main AWS account for further processing. Which solution will meet these requirements?
Options
11 comments in the community discussion
Seriously, AWS makes this more complicated than it should be. Probably D.
D imo, B is tempting but event bus aggregation is standard for cross-account collection. Open to being wrong though.
Q: 16
An 1AM role is attached to an Amazon EC2 instance that explicitly denies access to all Amazon S3 API actions. The EC2 instance credentials file specifies the 1AM access key and secret access key, which allow full administrative access. Given that multiple modes of 1AM access are present for this EC2 instance, which of the following is correct?
Options
9 comments in the community discussion
6
Option C, The trap here is thinking the instance profile deny overrides everything, but if there are admin keys in the credentials file they'll get used first (provider chain order). So full S3 access still works unless you remove those keys. Seen this come up on other practice exams, too.
5
Makes sense to go with B. Lambda@Edge requires the function to be created in us-east-1, no matter where the CloudFront or other resources are. Pretty sure that’s what causes the stack failure here. Agree?
Q: 17
A developer previously deployed an AWS Lambda function as a .zip package. The developer needs to deploy the Lambda function as a container.
Options
8 comments in the community discussion
1
B, not C. Had something like this in a mock and it's definitely A for Lambda logging context.
Not quite D, I think A is correct for AWS Lambda container deployment. You have to update the existing function's config with both the ECR repo URI and image tag. D forgets the tag, which will cause issues in practice. Similar question came up in my practice set.
Q: 18
A developer is working on an ecommerce application that stores data in an Amazon RDS for MySQL cluster The developer needs to implement a caching layer for the application to retrieve information about the most viewed products. Which solution will meet these requirements?
Options
11 comments in the community discussion
6
B . ElastiCache (Redis) is meant for a caching layer, especially for read-heavy data like most viewed products. D just adds a standby for failover, doesn't cache anything. The DynamoDB DAX option is a trap since it's not for MySQL/RDS. Pretty sure B fits the scenario best.
1
B or C? Had something like this in a mock, stuck between those two.
Q: 19
A developer is creating an application that will give users the ability to store photos from their cellphones in the cloud. The application needs to support tens of thousands of users. The application uses an Amazon API Gateway REST API that is integrated with AWS Lambda functions to process the photos. The application stores details about the photos in Amazon DynamoDB. Users need to create an account to access the application. In the application, users must be able to upload photos and retrieve previously uploaded photos. The photos will range in size from 300 KB to 5 MB. Which solution will meet these requirements with the LEAST operational overhead?
Options
6 comments in the community discussion
B not A. Had something like this in a mock before and DynamoDB can't handle files that big, so S3 is the way to go for actual photo storage. Cognito plus API Gateway keeps it serverless and low maintenance. Anyone disagree?
Q: 20
A development learn has an Amazon API Gateway REST API that is backed by an AWS Lambda function. Users have reported performance issues for the Lambda function. The development team identified the source of the issues as a cold start of the Lambda function. The development team needs to reduce the time needed for the Lambda function to initialize. Which solution will meet this requirement?
Options
11 comments in the community discussion
1
D , C is tempting but doesn't really prevent cold starts, just speeds them up a tiny bit. Provisioned concurrency (D) actually handles the cold start directly. Seen similar on practice tests.
C doesn't really solve cold starts, just makes the function run faster after it starts. D is the way to go because provisioned concurrency pre-warms Lambda instances. Pretty sure that's what AWS recommends for this scenario, but open to other views.
Question 1 of 20

What's covered in this practice questions set

2: Security · 7 questions

📖 About this Domain

This domain covers key concepts related to 2: Security.

🎓 What You Will Learn

  • Core concepts of 2: Security
  • Best practices and implementation
  • Real-world application scenarios

🛠️ Skills You Will Build

  • Technical proficiency in 2: Security
  • Problem-solving abilities
  • Practical implementation skills

💡 Top Tips to Prepare

  • Review official documentation and study guides
  • Practice with hands-on exercises
  • Focus on understanding core principles

4: Troubleshooting and Optimization · 6 questions

📖 About this Domain

This domain covers the skills required to debug, troubleshoot, and optimize AWS applications. It involves analyzing logs, metrics, and traces to identify root causes of errors and performance bottlenecks.

🎓 What You Will Learn

  • You will learn to debug code by using AWS X-Ray to trace requests and identify service faults.
  • You will learn to troubleshoot deployment and CI/CD pipeline issues using services like AWS CodeDeploy and AWS CodePipeline logs.
  • You will learn to analyze logs, metrics, and traces using Amazon CloudWatch and AWS X-Ray to resolve operational issues.
  • You will learn to optimize application performance by identifying bottlenecks related to compute, database, and API calls.

🛠️ Skills You Will Build

  • You will build the skill to perform root cause analysis of application errors using CloudWatch logs and X-Ray traces.
  • You will build the skill to instrument application code to emit custom metrics to CloudWatch and traces to X-Ray.
  • You will build the skill to optimize application performance by tuning resource configurations like Lambda memory or DynamoDB throughput.
  • You will build the skill to interpret AWS service logs and deployment error codes to resolve infrastructure and deployment failures.

💡 Top Tips to Prepare

  • Master Amazon CloudWatch services, including Logs Insights queries, custom metrics, and alarm configurations.
  • Understand AWS X-Ray concepts like segments, subsegments, annotations, and how to use the X-Ray SDK for code instrumentation.
  • Familiarize yourself with common AWS service error codes and throttling exceptions for services like Lambda, DynamoDB, and S3.
  • Practice troubleshooting common deployment failures in AWS CodeDeploy, Elastic Beanstalk, and CloudFormation.

1: Development with AWS Services · 6 questions

📖 About this Domain

This domain covers writing application code that uses AWS services via APIs, SDKs, and the CLI. It emphasizes developing serverless applications with services like AWS Lambda, Amazon API Gateway, and Amazon DynamoDB. Key topics include service integration patterns and implementing authentication.

🎓 What You Will Learn

  • Learn to use AWS SDKs to programmatically interact with AWS service endpoints from your application.
  • Learn to build serverless applications by configuring AWS Lambda functions, triggers, and API Gateway integrations.
  • Learn to write code for data persistence using Amazon S3 for object storage and Amazon DynamoDB for NoSQL databases.
  • Learn to implement secure access control using IAM roles, policies, and Amazon Cognito for user pools and identity pools.

🛠️ Skills You Will Build

  • You will build proficiency in using AWS SDKs to orchestrate and integrate multiple AWS services within an application.
  • You will build the ability to implement event-driven architectures using Lambda, SQS, SNS, and EventBridge.
  • You will build skills to perform data manipulation and retrieval against DynamoDB and S3 using service-specific APIs.
  • You will build the skill to configure IAM execution roles and resource-based policies for secure, least-privilege service access.

💡 Top Tips to Prepare

  • Get hands-on experience with an AWS SDK like Boto3 or the AWS SDK for Java to call services like S3 and DynamoDB.
  • Master the Lambda invocation models (synchronous, asynchronous, event source mapping) and API Gateway proxy integrations.
  • Focus on the differences between IAM roles, users, and policies, especially how Lambda execution roles grant permissions.
  • Understand DynamoDB consistency models, partition keys, sort keys, and the performance implications of Scan versus Query operations.

3: Deployment · 1 questions

📖 About this Domain

This domain covers the packaging of application code and dependencies for deployment to AWS compute services. It emphasizes the use of CI/CD pipelines, infrastructure as code (IaC), and various deployment strategies to automate releases.

🎓 What You Will Learn

  • Learn to build CI/CD pipelines using AWS CodePipeline, integrating source, build, and deployment stages.
  • Learn to define and provision AWS resources declaratively using AWS CloudFormation and AWS Serverless Application Model (SAM) templates.
  • Learn to execute deployment strategies like blue/green, canary, and in-place using AWS CodeDeploy for EC2, ECS, and Lambda.
  • Learn to package application artifacts and dependencies into deployment units for target runtime environments.

🛠️ Skills You Will Build

  • Build skill in automating the build, test, and deployment lifecycle with AWS developer tools.
  • Build skill in managing infrastructure as code, enabling versioning and repeatable environment creation.
  • Build skill in selecting and implementing deployment patterns to achieve zero-downtime updates.
  • Build skill in deploying serverless applications using the AWS SAM CLI and CloudFormation.

💡 Top Tips to Prepare

  • Master the appspec.yml file structure and its lifecycle event hooks for CodeDeploy.
  • Understand the differences between CloudFormation and AWS SAM for serverless application deployment.
  • Know which deployment strategy is best suited for specific services like Lambda, ECS, and EC2.
  • Practice creating a complete CI/CD pipeline to understand service integrations and required IAM permissions.

Premium Access Includes

  • Quiz Simulator
  • Exam Mode
  • Progress Tracking
  • Question Saving
  • Flash Cards
  • Drag & Drops
  • 3 Months Access
  • PDF Downloads
Get Premium Access
Scroll to Top

FLASH OFFER

Days
Hours
Minutes
Seconds

avail 10% DISCOUNT on YOUR PURCHASE