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

Exam Questions

94%

Students found the real exam almost the same

1,057

Students passed this exam after ExamsQA Prep

95.1%

Average score during Real Exams at the Testing Centre

💡

Browse at least 50% questions to maximize your chances of passing

Free Preview Questions

Sample DVA-C02 Exam Questions & Explanations

Practice with real question formats, multiple choice options, and detailed answer explanations for AWS DVA-C02.

Question #1 Verified Q&A
A company is implementing an application on Amazon EC2 instances. The application needs to process incoming transactions. When the application detects a transaction that is not valid, the application must send a chat message to the company's support team. To send the message, the application needs to retrieve the access token to authenticate by using the chat API. A developer needs to implement a solution to store the access token. The access token must be encrypted at rest and in transit. The access token must also be accessible from other AWS accounts.<br />
<br />
Which solution will meet these requirements with the LEAST management overhead?
A Encrypt the access token by using an AWS Key Management Service (AWS KMS) customer managed key. Store the access token in an Amazon DynamoDB table. Update the IAM role of the EC2 instances with permissions to access DynamoDB and AWS KMS. Retrieve the token from DynamoDB.<br /> Decrypt the token by using AWS KMS on the EC2 instances. Use the decrypted access token to send the message to the chat.
B Use an AWS Systems Manager Parameter Store SecureString parameter that uses an AWS Key Management Service (AWS KMS) AWS managed key to store the access token. Add a resource-based policy to the parameter to allow access from other accounts. Update the IAM role of the EC2 instances with permissions to access Parameter Store. Retrieve the token from Parameter Store with the decrypt flag enabled. Use the decrypted access token to send the message to the chat.
C Encrypt the access token by using an AWS Key Management Service (AWS KMS) AWS managed key. Store the access token in an Amazon S3 bucket. Add a bucket policy to the S3 bucket to allow access from other accounts. Update the IAM role of the EC2 instances with permissions to access Amazon S3 and AWS KMS. Retrieve the token from the S3 bucket. Decrypt the token by using AWS KMS on the EC2 instances. Use the decrypted access token to send the massage to the chat.
D Use AWS Secrets Manager with an AWS Key Management Service (AWS KMS) customer managed key to store the access token. Add a resource-based policy to the secret to allow access from other accounts. Update the IAM role of the EC2 instances with permissions to access Secrets Manager.<br /> Retrieve the token from Secrets Manager. Use the decrypted access token to send the message to the chat.
Correct Answer: Use AWS Secrets Manager with an AWS Key Management Service (AWS KMS) customer managed key to store the access token. Add a resource-based policy to the secret to allow access from other accounts. Update the IAM role of the EC2 instances with permissions to access Secrets Manager.<br /> Retrieve the token from Secrets Manager. Use the decrypted access token to send the message to the chat.
Explanation:
https://aws.amazon.com/premiumsupport/knowledge-center/secrets-manager-share-between- accounts/ https://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and- access_examples_cross.html
Question #2 Verified Q&A
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.<br />
<br />
Which solution will meet these requirements?
A Use the resource policies of the SQS queue in the main account to give each account permissions to write to that SQS queue. Add to the Amazon EventBridge event bus of each account an EventBridge rule that matches all EC2 instance lifecycle events. Add the SQS queue in the main account as a target of the rule.
B Configure Amazon EC2 to deliver the EC2 instance lifecycle events from all accounts to the Amazon EventBridge event bus of the main account. Add an EventBridge rule to the event bus of the main account that matches all EC2 instance lifecycle events. Add the SQS queue as a target of the rule.
C Configure the permissions on the main account event bus to receive events from all accounts.<br /> Create an Amazon EventBridge rule in each account to send all the EC2 instance lifecycle events to the main account event bus. Add an EventBridge rule to the main account event bus that matches all EC2 instance lifecycle events. Set the SQS queue as a target for the rule.
D Write an AWS Lambda function that scans through all EC2 instances in the company accounts to detect EC2 instance lifecycle changes. Configure the Lambda function to write a notification message to the SQS queue in the main account if the function detects an EC2 instance lifecycle change. Add an Amazon EventBridge scheduled rule that invokes the Lambda function every minute.
Correct Answer: Configure the permissions on the main account event bus to receive events from all accounts.<br /> Create an Amazon EventBridge rule in each account to send all the EC2 instance lifecycle events to the main account event bus. Add an EventBridge rule to the main account event bus that matches all EC2 instance lifecycle events. Set the SQS queue as a target for the rule.
Explanation:
Amazon EC2 instances can send the state-change notification events to Amazon EventBridge. https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-instance-state-changes.html Amazon EventBridge can send and receive events between event buses in AWS accounts. https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-cross-account.html
Question #3 Verified Q&A
An application is using Amazon Cognito user pools and identity pools for secure access. A developer wants to integrate the user-specific file upload and download features in the application with Amazon S3. The developer must ensure that the files are saved and retrieved in a secure manner and that users can access only their own files. The file sizes range from 3 KB to 300 MB.<br />
<br />
Which option will meet these requirements with the HIGHEST level of security?
A Save the details of the uploaded files in a separate Amazon DynamoDB table. Filter the list of files in the user interface (UI) by comparing the current user ID with the user ID associated with the file in the table.
B Use S3 Event Notifications to validate the file upload and download requests and update the user interface (UI).
C Use an IAM policy within the Amazon Cognito identity prefix to restrict users to use their own folders in Amazon S3.
D Use Amazon API Gateway and an AWS Lambda function to upload and download files. Validate each request in the Lambda function before performing the requested operation.
Correct Answer: Use an IAM policy within the Amazon Cognito identity prefix to restrict users to use their own folders in Amazon S3.
Explanation:
https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-integrating-user- pools-with-identity-pools.html
Question #4 Verified Q&A
A company is building a scalable data management solution by using AWS services to improve the speed and agility of development. The solution will ingest large volumes of data from various sources and will process this data through multiple business rules and transformations. The solution requires business rules to run in sequence and to handle reprocessing of data if errors occur when the business rules run. The company needs the solution to be scalable and to require the least possible maintenance.<br />
<br />
Which AWS service should the company use to manage and automate the orchestration of the data flows to meet these requirements?
A AWS Step Functions
B AWS Batch
C AWS Lambda
D AWS Glue
Correct Answer: AWS Step Functions
Explanation:
https://docs.aws.amazon.com/step-functions/latest/dg/welcome.html
Question #5 Verified Q&A
A developer has created an AWS Lambda function that is written in Python. The Lambda function reads data from objects in Amazon S3 and writes data to an Amazon DynamoDB table. The function is successfully invoked from an S3 event notification when an object is created. However, the function fails when it attempts to write to the DynamoDB table.<br />
<br />
What is the MOST likely cause of this issue?
A DynamoDB table requires a global secondary index (GSI) to support writes.
B The Lambda function's concurrency limit has been exceeded.
C The DynamoDB table is not running in the same Availability Zone as the Lambda function.
D The Lambda function does not have IAM permissions to write to DynamoDB.
Correct Answer: The Lambda function does not have IAM permissions to write to DynamoDB.
Explanation:
https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_examples_lambda-access- dynamodb.html

Want to practice all 600 questions?

Practice under real exam conditions with instant grading, timed simulations, and community insights.

Start Full DVA-C02 Practice Test

Frequently Asked Questions

Common questions about the AWS DVA-C02 certification practice test

How many questions are in the AWS DVA-C02 practice exam on ExamsQA?
Our DVA-C02 (AWS Certified Developer – Associate Exam) practice question bank currently includes 600 verified questions with comprehensive explanations.
Are the DVA-C02 exam practice questions up to date for 2026?
Yes, all AWS DVA-C02 practice questions are regularly updated and verified against current exam objectives.
Will the DVA-C02 practice questions help me pass on my first attempt?
The DVA-C02 (AWS Certified Developer – Associate Exam) question bank is built to mirror the real exam's format and topics, with detailed explanations for every answer so you understand the reasoning — not just memorize responses.
Is there a free demo available for DVA-C02 AWS Certified Developer – Associate Exam?
Yes, ExamsQA offers free demo questions for the DVA-C02 exam so you can test the interface and question quality before purchasing full access.