DVA-C02 Exam Details

  • Exam Code
    :DVA-C02
  • Exam Name
    :AWS Certified Developer - Associate (DVA-C02)
  • Certification
    :Amazon Certifications
  • Vendor
    :Amazon
  • Total Questions
    :574 Q&As
  • Last Updated
    :May 27, 2026

Amazon DVA-C02 Online Questions & Answers

  • Question 291:

    A company requires that all applications running on Amazon EC2 use IAM roles to gain access to AWS services. A developer is modifying an application that currently relies on IAM user access keys stored in environment variables to access Amazon DynamoDB tables using boto, the AWS SDK for Python.

    The developer associated a role with the same permissions as the IAM user to the EC2 instance, then deleted the IAM user. When the application was restarted, the AWS AccessDeniedException messages started appearing in the application logs. The developer was able to use their personal account on the server to run DynamoDB API commands using the AWS CLI.

    What is the MOST likely cause of the exception?

    A. IAM policies might take a few minutes to propagate to resources.
    B. Disabled environment variable credentials are still being used by the application.
    C. The AWS SDK does not support credentials obtained using an instance role.
    D. The instance's security group does not allow access to http://169.254.169.254.

  • Question 292:

    A company uses an AWS Lambda function to perform natural language processing (NLP) tasks. The company has attached a Lambda layer to the function. The Lambda layer contains scientific libraries that the function uses during

    processing.

    The company added a large, pre-trained text-classification model to the Lambda layer. This addition increased the size of the Lambda layer to 8.7 GB. After the addition and a recent deployment, the Lambda function returned a

    RequestEntityTooLargeException error.

    The company needs to update the Lambda function with a high-performing and portable solution to decrease the initialization time for the function.

    Which solution will meet these requirements?

    A. Store the large pre-trained model in an Amazon S3 bucket. Use the AWS SDK to access the model.
    B. Create an Amazon EFS file system to store the large pre-trained model. Mount the file system to an Amazon EC2 instance. Configure the Lambda function to use the EFS file system.
    C. Split the components of the Lambda layer into five new Lambda layers. Zip the new layers and attach them to the Lambda function. Update the function code to use the new layers.
    D. Create a Docker container that includes the scientific libraries and the pre-trained model. Update the Lambda function to use the container image.

  • Question 293:

    A developer needs to modify an application architecture to meet new functional requirements. Application data is stored in Amazon DynamoDB and processed for analysis in a nightly batch. The system analysts do not want to wait until the next day to view the processed data and have asked to have it available in near-real time.

    Which application architecture pattern would enable the data to be processed as it is received?

    A. Event driven
    B. Client-server driven
    C. Fan-out driven
    D. Schedule driven

  • Question 294:

    A developer is building an application on AWS. The application has an Amazon API Gateway API that sends requests to an AWS Lambda function. The API is experiencing increased latency because the Lambda function has limited available CPU to fulfill the requests.

    Before the developer deploys the API into production, the developer must configure the Lambda function to have more CPU.

    Which solution will meet this requirement?

    A. Increase the virtual CPU (vCPU) cores quota of the Lambda function.
    B. Increase the amount of memory that is allocated to the Lambda function.
    C. Increase the ephemeral storage size of the Lambda function.
    D. Increase the timeout value of the Lambda function.

  • Question 295:

    A developer must use multi-factor authentication (MFA) to access data in an Amazon S3 bucket that is in another AWS account. Which AWS Security Token Service (AWS STS) API operation should the developer use with the MFA information to meet this requirement?

    A. AssumeRoleWithWebidentity
    B. GetFederationToken
    C. AssumeRoleWithSAML
    D. AssumeRole

  • Question 296:

    A company is creating an application that processes .csv files from Amazon S3. A developer has created an S3 bucket. The developer has also created an AWS Lambda function to process the .csv files from the S3 bucket. Which combination of steps will invoke the Lambda function when a .csv file is uploaded to Amazon S3? (Choose two.)

    A. Create an Amazon EventBridge rule. Configure the rule with a pattern to match the S3 object created event.
    B. Schedule an Amazon EventBridge rule to run a new Lambda function to scan the S3 bucket.
    C. Add a trigger to the existing Lambda function. Set the trigger type to EventBridge. Select the Amazon EventBridge rule.
    D. Create a new Lambda function to scan the S3 bucket for recently added S3 objects.
    E. Add S3 Lifecycle rules to invoke the existing Lambda function.

  • Question 297:

    A company runs an application on Amazon EC2 instances. The EC2 instances open connections to an Amazon RDS for SQL Server database. A developer needs to store and access the credentials and wants to automatically rotate the credentials. The developer does not want to store the credentials for the database in the code.

    Which solution will meet these requirements in the MOST secure way?

    A. Create an IAM role that has permissions to access the database. Attach the IAM role to the EC2 instances.
    B. Store the credentials as secrets in AWS Secrets Manager. Create an AWS Lambda function to update the secrets and the database. Retrieve the credentials from Secrets Manager as needed.
    C. Store the credentials in an encrypted text file in an Amazon S3 bucket. Configure the EC2 instance launch template to download the credentials from Amazon S3 as the instance launches. Create an AWS Lambda function to update the secrets and the database.
    D. Store the credentials in an Amazon DynamoDB table. Configure an Amazon CloudWatch Events rule to invoke an AWS Lambda function to periodically update the secrets and database.

  • Question 298:

    A developer wants to use React to build a web and mobile application. The application will be hosted on AWS. The application must authenticate users and then allow users to store and retrieve files that they own. The developer wants to use Facebook for authentication.

    Which CLI will MOST accelerate the development and deployment of this application on AWS?

    A. AWS CLI
    B. AWS Amplify CLI
    C. AWS Serverless Application Model (AWS SAM) CLI
    D. Amazon Elastic Container Service (Amazon ECS) CLI

  • Question 299:

    A company built a new application in the AWS Cloud. The company automated the bootstrapping of new resources with an Auto Scaling group by using AWS CloudFormation templates. The bootstrap scripts contain sensitive data.

    The company needs a solution that is integrated with CloudFormation to manage the sensitive data in the bootstrap scripts.

    Which solution will meet these requirements in the MOST secure way?

    A. Put the sensitive data into a CloudFormation parameter. Encrypt the CloudFormation templates by using an AWS Key Management Service (AWS KMS) key.
    B. Put the sensitive data into an Amazon S3 bucket. Update the CloudFormation templates to download the object from Amazon S3 during bootstrap.
    C. Put the sensitive data into AWS Systems Manager Parameter Store as a secure string parameter. Update the CloudFormation templates to use dynamic references to specify template values.
    D. Put the sensitive data into Amazon Elastic File System (Amazon EFS). Enforce EFS encryption after file system creation. Update the CloudFormation templates to retrieve data from Amazon EFS.

  • Question 300:

    A company runs a critical application on Amazon Elastic Container Service (Amazon ECS) by using Amazon EC2 instances. The company needs to migrate the application to Amazon ECS on AWS Fargate. A developer is configuring Fargate and the ECS capacity providers to make the change.

    Which solution will meet these requirements with the LEAST downtime during migration?

    A. Use the PutClusterCapacityProviders API operation to associate the ECS cluster with the FARGATE and FARGATE_SPOT capacity provider strategies. Use FARGATE as Provider 1 with a base value. Use FARGATE_SPOT as Provider 2 for failover.
    B. Use the CreateCapacityProvider API operation to associate the ECS cluster with the FARGATE and FARGATE_SPOT capacity provider strategies. Use FARGATE as Provider 1 with a base value. Use FARGATE_SPOT as Provider 2 for failover.
    C. Use the PutClusterCapacityProviders API operation to associate the ECS cluster with the FARGATE and FARGATE_SPOT capacity provider strategies. Use FARGATE_SPOT as Provider 1 with a base value. Use FARGATE as Provider 2 for failover.
    D. Use the CreateCapacityProvider API operation to associate the ECS cluster with the FARGATE and FARGATE_SPOT capacity provider strategies. Use FARGATE_SPOT as Provider 1 with a base value. Use FARGATE as Provider 2 for failover.

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Amazon exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your DVA-C02 exam preparations and Amazon certification application, do not hesitate to visit our Vcedump.com to find your solutions here.