Free AWS Certified Developer - Associate DVA-C02 Exam Braindumps (page: 41)

Page 41 of 116

A developer wants to deploy a new version of an AWS Elastic Beanstalk application.
During deployment, the application must maintain full capacity and avoid service interruption. Additionally, the developer must minimize the cost of additional resources that support the deployment.
Which deployment method should the developer use to meet these requirements?

  1. All at once
  2. Rolling with additional batch
  3. Blue/green
  4. Immutable

Answer(s): B



A developer has observed an increase in bugs in the AWS Lambda functions that a development team has deployed in its Node.js application. To minimize these bugs,
the developer wants to implement automated testing of Lambda functions in an environment that closely simulates the Lambda environment.
The developer needs to give other developers the ability to run the tests locally. The developer also needs to integrate the tests into the team’s continuous integration and continuous delivery (CI/CD) pipeline before the AWS Cloud Development Kit (AWS CDK) deployment.
Which solution will meet these requirements?

  1. Create sample events based on the Lambda documentation. Create automated test scripts that use the cdk local invoke command to invoke the Lambda functions. Check the response. Document the test scripts for the other developers on the team. Update the CI/CD pipeline to run the test scripts.
  2. Install a unit testing framework that reproduces the Lambda execution environment. Create sample events based on the Lambda documentation. Invoke the handler function by using a unit testing framework. Check the response.
    Document how to run the unit testing framework for the other developers on the team. Update the CI/CD pipeline to run the unit testing framework.
  3. Install the AWS Serverless Application Model (AWS SAM) CLI tool. Use the sam local generate-event command to generate sample events for the automated tests. Create automated test scripts that use the sam local invoke command to invoke the Lambda functions. Check the response. Document the test scripts for the other developers on the team. Update the CI/CD pipeline to run the test scripts.
  4. Create sample events based on the Lambda documentation. Create a Docker container from the Node.js base image to invoke the Lambda functions. Check the response. Document how to run the Docker container for the other developers on the team. Update the CI/CD pipeline to run the Docker container.

Answer(s): C



A developer is troubleshooting an application that uses Amazon DynamoDB in the us-west-2 Region. The application is deployed to an Amazon EC2 instance. The application requires read-only permissions to a table that is named Cars. The EC2
instance has an attached IAM role that contains the following IAM
policy:
When the application tries to read from the Cars table, an Access Denied error occurs.
How can the developer resolve this error?

  1. Modify the IAM policy resource to be
    “arn:aws:dynamodb:us-west-2:account-id:table/*”.
  2. Modify the IAM policy to include the dynamodb:* action.
  3. Create a trust policy that specifies the EC2 service principal. Associate the role with the policy.
  4. Create a trust relationship between the role and dynamodb.amazonaws.com.

Answer(s): C



When using the AWS Encryption SDK, how does the developer keep track of the data encryption keys used to encrypt data?

  1. The developer must manually keep track of the data encryption keys used for each data object.
  2. The SDK encrypts the data encryption key and stores it (encrypted) as part of the returned ciphertext.
  3. The SDK stores the data encryption keys automatically in Amazon S3.
  4. The data encryption key is stored in the Userdata for the EC2 instance.

Answer(s): B



Page 41 of 116



Post your Comments and Discuss Amazon AWS Certified Developer - Associate DVA-C02 exam with other Community members:

Ernesto commented on August 26, 2024
Prepared and passed this exam. Valid question and very tough exam. So good luck.
Spain
upvote