Free DVA-C02 Practice Questions
(AWS Certified Developer - Associate)

The DVA-C02 exam tests your knowledge of AWS Developer fundamentals. Practice real-world scenarios to prepare for the fundamentals of AWS development and best practices.

DVA-C02 Practice Questions

10 Free Questions • Updated for 2026 • No dumps

Designed by experts and updated regularly based on exam changes.

1

A developer is building a web application authenticating users via Cognito User Pools. The application needs to access specific S3 buckets based on user groups. How can the developer grant fine-grained S3 access with the least operational overhead?

A Configure IAM roles and attach them to Cognito User Pool groups.
B Use AWS KMS to encrypt S3 objects and manage keys per user.
C Embed IAM user credentials directly within the application code.
D Implement custom Lambda authorizers to generate temporary S3 credentials.

✅ Correct Answer: A

Explanation: Attaching IAM roles to Cognito User Pool groups allows for efficient, group-based access control to S3 without managing individual user permissions or implementing complex custom logic. Embedding credentials is a severe security risk. Custom Lambda authorizers add operational complexity.
2

A serverless application deployed via AWS SAM has frequent Lambda function code updates. The development team needs to quickly roll back to a previous version if issues arise post-deployment. Which CI/CD strategy ensures high efficiency and minimal downtime?

A Manually redeploy the previous AWS SAM template from S3.
B Use AWS CodeDeploy with Lambda traffic shifting and rollbacks.
C Implement Blue/Green deployments using two separate SAM stacks.
D Version control Lambda code in Git and redeploy through AWS CodeBuild.

✅ Correct Answer: B

Explanation: AWS CodeDeploy with Lambda traffic shifting natively supports automated rollbacks, providing a robust and efficient solution for managing deployments and minimizing downtime during issues. Manually redeploying is inefficient and error-prone. Blue/Green with two stacks is higher operational overhead.
3

A Lambda function processes large files from S3, occasionally timing out without clear error messages in standard logs. The developer needs to trace the exact execution path and identify performance bottlenecks with the least configuration effort.

A Add detailed custom logging statements throughout the Lambda code.
B Increase Lambda memory and timeout settings significantly.
C Enable AWS X-Ray tracing for the Lambda function and API Gateway.
D Create custom CloudWatch metrics for each processing step.

✅ Correct Answer: C

Explanation: AWS X-Ray provides end-to-end tracing across distributed applications, automatically identifying performance bottlenecks and errors within the Lambda function and integrated services. Adding custom logging or metrics requires significant code changes and is less efficient for tracing complex interactions.
4

An API Gateway endpoint is experiencing high traffic leading to Lambda throttling. The downstream service can tolerate eventual consistency. How can the developer mitigate throttling and ensure message delivery with the least operational overhead?

A Integrate API Gateway with Amazon SQS as an asynchronous backend.
B Implement client-side retry logic with exponential backoff.
C Increase the concurrency limit of the Lambda function.
D Provision additional Lambda functions and use a load balancer.

✅ Correct Answer: A

Explanation: Integrating API Gateway with SQS offloads requests to a queue, decoupling the API from the Lambda function and handling spikes without throttling Lambda. Increasing concurrency might help but is not as resilient for sustained bursts. Client-side retries don't solve the underlying throttling issue.
5

A Lambda function processes sensitive customer data and stores it in DynamoDB. The data must be encrypted at rest and in transit. The developer wants to manage encryption keys with high security and minimal developer burden.

A Encrypt data manually within the Lambda function before sending to DynamoDB.
B Rely solely on DynamoDB's default encryption without KMS integration.
C Store encryption keys as environment variables in the Lambda function.
D Use AWS KMS for managing encryption keys and enable DynamoDB encryption.

✅ Correct Answer: D

Explanation: AWS KMS provides centralized, highly secure management of encryption keys, seamlessly integrating with DynamoDB for encryption at rest and in transit without complex manual implementation. Relying on default encryption alone doesn't give control over keys. Storing keys in environment variables is insecure.
6

A serverless application uses S3 to store user-uploaded files. Some files are frequently accessed, while others are rarely accessed after 30 days but must be retained for compliance. How can storage costs be optimized with minimal application changes?

A Manually move older files to a separate Glacier vault.
B Implement a Lambda function to move files after 30 days.
C Configure S3 Lifecycle policies to transition objects to S3 Glacier.
D Use S3 Intelligent-Tiering for all uploaded objects.

✅ Correct Answer: C

Explanation: S3 Lifecycle policies automate the transition of objects to lower-cost storage classes like S3 Glacier based on defined rules, optimizing costs with minimal operational overhead. S3 Intelligent-Tiering is good for unknown access patterns, but Glacier is more cost-effective for rarely accessed archival data. Manual movement is inefficient.
7

A development team needs to deploy multiple environments (dev, test, prod) for a serverless application using AWS SAM. Each environment requires slightly different configurations (e.g., database names, API endpoints). How can this be managed efficiently?

A Manually update configuration files before each deployment.
B Use AWS SAM template parameters and CloudFormation stack parameters.
C Create separate, distinct SAM templates for each environment.
D Store environment-specific configurations in S3 buckets.

✅ Correct Answer: B

Explanation: AWS SAM templates, leveraging CloudFormation parameters, allow a single template to be reused across multiple environments by passing different configuration values at deployment time, ensuring consistency and reducing operational overhead. Creating separate templates is inefficient and prone to drift.
8

An application needs to publish messages to multiple subscribers (e.g., email, SMS, other Lambda functions) whenever a new order is placed. The solution must ensure reliable message delivery with minimal code changes.

A Use Amazon SQS with multiple queues for each subscriber.
B Implement individual API calls to each subscriber service.
C Store messages in a DynamoDB table and poll it periodically.
D Use Amazon SNS to fan out messages to various subscribers.

✅ Correct Answer: D

Explanation: Amazon SNS provides a publish/subscribe messaging service that reliably fans out messages to multiple subscriber types (Lambda, SQS, email, SMS) with a single publish action, simplifying the architecture. Individual API calls are error-prone and increase code complexity. SQS is point-to-point, not fan-out.
9

A developer needs to debug a Lambda function that occasionally fails without specific errors in CloudWatch logs. The function interacts with external APIs. How can the developer gain deeper insights into the failures efficiently?

A Use AWS X-Ray to trace upstream and downstream service calls.
B Increase the CloudWatch log retention period to indefinitely.
C Add extensive `console.log` statements throughout the code.
D Replicate the issue in a local development environment.

✅ Correct Answer: A

Explanation: AWS X-Ray provides detailed service maps and trace data, allowing developers to visualize and analyze requests as they travel through the application, identifying external API latencies or failures that might not appear in basic Lambda logs. Extensive logging adds noise and local replication is not always feasible.
10

A developer is building a high-volume e-commerce application requiring low-latency product catalog lookups. The catalog data changes infrequently but must be highly available globally. Which database solution provides the best performance for these read-heavy workloads with the least operational overhead?

A Amazon Aurora Serverless with a global database.
B Amazon RDS Multi-AZ deployment with read replicas.
C Self-managed MongoDB cluster on EC2 instances.
D Amazon DynamoDB Global Tables with eventual consistency.

✅ Correct Answer: D

Explanation: DynamoDB Global Tables provide fully managed, multi-region replication for high availability and low-latency global reads with minimal operational overhead, fitting the read-heavy, low-latency requirement. RDS read replicas are for relational databases. Self-managed MongoDB has high operational burden. Aurora Serverless is relational.

Practice More Questions

Take full-length timed quizzes and track your performance.

Start Free Practice

Frequently Asked Questions

Are these questions real exam dumps?

No, examOS does not use or promote exam dumps. All questions are concept-focused, scenario-based, and designed to help you understand architectural decisions and real-world trade-offs.

How does ExamOS help me prepare better?

ExamOS provides short, timed quizzes aligned with official exam domains. Each question includes detailed explanations so you can learn the reasoning behind the correct answer, not just memorize it.

Is ExamOS free to use?

Yes. You get free credits when you register, which you can use to take practice quizzes. You can earn additional credits through referrals or upgrade later for unlimited practice.

Related Practice Exams