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 321:

    An application runs on multiple EC2 instances behind an ELB.

    Where is the session data best written so that it can be served reliably across multiple requests?

    A. Write data to Amazon ElastiCache.
    B. Write data to Amazon Elastic Block Store.
    C. Write data to Amazon EC2 Instance Store.
    D. Write data to the root filesystem.

  • Question 322:

    A developer is writing an application to analyze the traffic to a fleet of Amazon EC2 instances. The EC2 instances run behind a public Application Load Balancer (ALB). An HTTP server runs on each of the EC2 instances, logging all requests

    to a log file.

    The developer wants to capture the client public IP addresses. The developer analyzes the log files and notices only the IP address of the ALB.

    What must the developer do to capture the client public IP addresses in the log file?

    A. Add a Host header to the HTTP server log configuration file.
    B. Install the Amazon CloudWatch Logs agent on each EC2 instance. Configure the agent to write to the log file.
    C. Install the AWS X-Ray daemon on each EC2 instance. Configure the daemon to write to the log file.
    D. Add an X-Forwarded-For header to the HTTP server log configuration file.

  • Question 323:

    A company is planning to deploy an application on AWS behind an Elastic Load Balancer. The application uses an HTTP/HTTPS listener and must access the client IP addresses. Which load-balancing solution meets these requirements?

    A. Use an Application Load Balancer and the X-Forwarded-For headers.
    B. Use a Network Load Balancer (NLB). Enable proxy protocol support on the NLB and the target application.
    C. Use an Application Load Balancer. Register the targets by the instance ID.
    D. Use a Network Load Balancer and the X-Forwarded-For headers.

  • Question 324:

    A company uses Amazon DynamoDB as a data store for its order management system. The company frontend application stores orders in a DynamoDB table. The DynamoDB table is configured to send change events to a DynamoDB stream. The company uses an AWS Lambda function to log and process the incoming orders based on data from the DynamoDB stream.

    An operational review reveals that the order quantity of incoming orders is sometimes set to 0. A developer needs to create a dashboard that will show how many unique customers this problem affects each day.

    What should the developer do to implement the dashboard?

    A. Grant the Lambda function's execution role permissions to upload logs to Amazon CloudWatch Logs. Implement a CloudWatch Logs Insights query that selects the number of unique customers for orders with order quantity equal to 0 and groups the results in 1-day periods. Add the CloudWatch Logs Insights query to a CloudWatch dashboard.
    B. Use Amazon Athena to query AWS CloudTrail API logs for API calls. Implement an Athena query that selects the number of unique customers for orders with order quantity equal to 0 and groups the results in 1-day periods. Add the Athena query to an Amazon CloudWatch dashboard.
    C. Configure the Lambda function to send events to Amazon EventBridge. Create an EventBridge rule that groups the number of unique customers for orders with order quantity equal to 0 in 1-day periods. Add a CloudWatch dashboard as the target of the rule.
    D. Turn on custom Amazon CloudWatch metrics for the DynamoDB stream of the DynamoDB table. Create a CloudWatch alarm that groups the number of unique customers for orders with order quantity equal to 0 in 1-day periods. Add the CloudWatch alarm to a CloudWatch dashboard.

  • Question 325:

    A developer is deploying an AWS Lambda function The developer wants the ability to return to older versions of the function quickly and seamlessly. How can the developer achieve this goal with the LEAST operational overhead?

    A. Use AWS OpsWorks to perform blue/green deployments.
    B. Use a function alias with different versions.
    C. Maintain deployment packages for older versions in Amazon S3.
    D. Use AWS CodePipeline for deployments and rollbacks.

  • Question 326:

    A developer has a continuous integration and continuous delivery (CI/CD) pipeline that uses AWS CodeArtifact and AWS CodeBuild. The build artifacts are between 0.5 GB and 1.5 GB in size. The builds happen frequently and retrieve many

    dependencies from CodeArtifact each time.

    The builds have been slow because of the time it takes to transfer dependencies. The developer needs to improve build performance by reducing the number of dependencies that are retrieved for each build.

    Which solution will meet this requirement?

    A. Specify an Amazon S3 cache in CodeBuild. Add the S3 cache folder path to the buildspec.yaml file for the build project.
    B. Specify a local cache in CodeBuild. Add the CodeArtifact repository name to the buildspec.yaml file for the build project.
    C. Specify a local cache in CodeBuild. Add the cache folder path to the buildspec.yaml file for the build project.
    D. Retrieve the buildspec.yaml file directly from CodeArtifact. Add the CodeArtifact repository name to the buildspec.yaml file for the build project.

  • Question 327:

    A company uses an AWS Lambda function that reads messages from an Amazon Simple Queue Service (Amazon SQS) standard queue. The Lambda function makes an HTTP call to a third-party API for each message. The company wants to ensure that the Lambda function does not overwhelm the third-party API with more than two concurrent requests.

    Which solution will meet these requirements?

    A. Configure a provisioned concurrency of two on the Lambda function.
    B. Configure a batch size of two on the Amazon SQS event source mapping for the Lambda function.
    C. Configure Lambda event filtering to process two messages from Amazon SQS at every invocations.
    D. Configure a maximum concurrency of two on the Amazon SQS event source mapping for the Lambda function.

  • Question 328:

    A developer is building a new application on AWS. The application uses an AWS Lambda function that retrieves information from an Amazon DynamoDB table. The developer hard coded the DynamoDB table name into the Lambda function code. The table name might change over time. The developer does not want to modify the Lambda code if the table name changes.

    Which solution will meet these requirements MOST efficiently?

    A. Create a Lambda environment variable to store the table name. Use the standard method for the programming language to retrieve the variable.
    B. Store the table name in a file. Store the file in the /tmp folder. Use the SDK for the programming language to retrieve the table name.
    C. Create a file to store the table name. Zip the file and upload the file to the Lambda layer. Use the SDK for the programming language to retrieve the table name.
    D. Create a global variable that is outside the handler in the Lambda function to store the table name.

  • Question 329:

    A company is using an Amazon API Gateway REST API endpoint as a webhook to publish events from an on-premises source control management (SCM) system to Amazon EventBridge. The company has configured an EventBridge rule to listen for the events and to control application deployment in a central AWS account. The company needs to receive the same events across multiple receiver AWS accounts.

    How can a developer meet these requirements without changing the configuration of the SCM system?

    A. Deploy the API Gateway REST API to all the required AWS accounts. Use the same custom domain name for all the gateway endpoints so that a single SCM webhook can be used for all events from all accounts.
    B. Deploy the API Gateway REST API to all the receiver AWS accounts. Create as many SCM webhooks as the number of AWS accounts.
    C. Grant permission to the central AWS account for EventBridge to access the receiver AWS accounts. Add an EventBridge event bus on the receiver AWS accounts as the targets to the existing EventBridge rule.
    D. Convert the API Gateway type from REST API to HTTP API.

  • Question 330:

    A company wants to automate part of its deployment process. A developer needs to automate the process of checking for and deleting unused resources that supported previously deployed stacks but that are no longer used.

    The company has a central application that uses the AWS Cloud Development Kit (AWS CDK) to manage all deployment stacks. The stacks are spread out across multiple accounts. The developer's solution must integrate as seamlessly as

    possible within the current deployment process.

    Which solution will meet these requirements with the LEAST amount of configuration?

    A. In the central AWS CDK application, write a handler function in the code that uses AWS SDK calls to check for and delete unused resources. Create an AWS CloudFormation template from a JSON file. Use the template to attach the function code to an AWS Lambda function and to invoke the Lambda function when the deployment stack runs.
    B. In the central AWS CDK application, write a handler function in the code that uses AWS SDK calls to check for and delete unused resources. Create an AWS CDK custom resource. Use the custom resource to attach the function code to an AWS Lambda function and to invoke the Lambda function when the deployment stack runs.
    C. In the central AWS CDK, write a handler function in the code that uses AWS SDK calls to check for and delete unused resources. Create an API in AWS Amplify. Use the API to attach the function code to an AWS Lambda function and to invoke the Lambda function when the deployment stack runs.
    D. In the AWS Lambda console, write a handler function in the code that uses AWS SDK calls to check for and delete unused resources. Create an AWS CDK custom resource. Use the custom resource to import the Lambda function into the stack and to invoke the Lambda function when the deployment stack runs.

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.