Official Bank 0/600

AWS Certified Developer – Associate Exam (DVA-C02) - AWS Exam Questions

Last updated on June 20, 2026

97% Exam Compliance
600 Total Questions
1
Question
An ecommerce company is using an AWS Lambda function behind Amazon API Gateway as its application tier. To process orders during checkout, the application calls a POST API from the frontend. The POST API invokes the Lambda function asynchronously. In rare situations, the application has not processed orders. The Lambda application logs show no errors or failures.

What should a developer do to solve this problem?
Options
A Create and inspect the Lambda dead-letter queue. Troubleshoot the failed functions. Reprocess the events.
B Inspect the frontend logs for API failures. Call the POST API manually by using the requests from the log file.
C Make sure that caching is disabled for the POST API in API Gateway.
D Inspect the Lambda logs in Amazon CloudWatch for possible errors. Fix the errors.
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

2
Question
A food-delivery company has an application that uses an Amazon DynamoDB table for customer orders. The table is in on-demand mode. The table uses order_date as the partition key. The table uses a combination of customer_id and order_id as the sort key (customer_id#order_id). During peak order periods, write operations to the table are being throttled. What should a developer do to resolve this issue?
Options
A Change the capacity mode of the table to provisioned mode. Increase the write capacity units (WCUs) to meet the application demand.
B Use a sequential number for the partition key. Continue to use order_id as the sort key.
C Use customer_id for the partition key. Use order_id as the sort key.
D Transition the table to Amazon Aurora.
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

3
Question
A developer is working on an application that uses a microservices architecture. The developer needs to grant an AWS Lambda function access to make calls to an Amazon API Gateway HTTP API. The HTTP API requires authentication.

Which solution will meet these requirements?
Options
A Enable IAM authorization for the HTTP API route. Configure the Lambda function's IAM role policy to allow the Lambda function to access the API.
B Create a JSON Web Token (JWT) authorizer for the HTTP API. Create a new IAM identity provider (IdP). Configure the Lambda function's execution role to allow the Lambda function to access the IdP.
C Create a resource-based policy for the Lambda function that allows the Lambda function to access the HTTP API.
D Configure the HTTP API route to require API keys. Add an API key to the Lambda function environment variables.
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

4
Question
A company has a web application that runs on Amazon EC2 instances with a custom Amazon Machine Image (AMI) The company uses AWS CloudFormation to provision the application The application runs in the us-east-1 Region, and the company needs to deploy the application to the us- west-1 Region An attempt to create the AWS CloudFormation stack in us-west-1 fails. An error message states that the AMI ID does not exist. A developer must resolve this error with a solution that uses the least amount of operational overhead

Which solution meets these requirements?
Options
A Copy the custom AMI from us-east-1 to us-west-1. Update the AWS CloudFormation template for us-west-1 to refer to AMI ID for the copied AMI Relaunch the stack
B Change the AWS CloudFormation templates for us-east-1 and us-west-1 to use an AWS AMI.
Relaunch the stack for both Regions.
C Manually deploy the application outside AWS CloudFormation in us-west-1.
D Build the custom AMI in us-west-1 Create a new AWS CloudFormation template to launch the stack in us-west-1 with the new AMI ID
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

5
Question
A developer needs to migrate an online retail application to AWS to handle an anticipated increase in traffic. The application currently runs on two servers: one server for the web application and another server for the database. The web server renders webpages and manages session state in memory. The database server hosts a MySQL database that contains order details. When traffic to the
application is heavy, the memory usage for the web server approaches 100% and the application
slows down considerably. The developer has found that most of the memory increase and performance decrease is related to the load of managing additional user sessions. For the web server migration, the developer will use Amazon EC2 instances with an Auto Scaling group behind an Application Load Balancer.

Which additional set of changes should the developer make to the application to improve the application's performance?
Options
A Use Amazon ElastiCache for Memcached to store and manage the session data. Use an Amazon RDS for MySQL DB instance to store the application data.
B Use an EC2 instance to host the MySQL database. Store the session data and the application data in the MySQL database.
C Use the EC2 instance store to manage the session data. Use an Amazon RDS for MySQL DB instance to store the application data.
D Use Amazon ElastiCache for Memcached to store and manage the session data and the application data.
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

Finish Practice?

Are you sure you want to finish? This will end your practice session.