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

Page 58 of 116

A developer is planning to use an Amazon API Gateway and AWS Lambda to provide a
REST API. The developer will have three distinct environments to manage:
development, test, and production.
How should the application be deployed while minimizing the number of resources to manage?

  1. Create a separate API Gateway and separate Lambda function for each environment in the same Region.
  2. Assign a Region for each environment and deploy API Gateway and Lambda to each Region.
  3. Create one API Gateway with multiple stages with one Lambda function with multiple aliases.
  4. Create one API Gateway and one Lambda function, and use a REST parameter to identify the environment.

Answer(s): C



A developer registered an AWS Lambda function as a target for an Application Load
Balancer (ALB) using a CLI command. However, the Lambda function is not being invoked when the client sends requests through the ALB.
Why is the Lambda function not being invoked?

  1. A Lambda function cannot be registered as a target for an ALB.
  2. A Lambda function can be registered with an ALB using AWS Management Console only.
  3. The permissions to invoke the Lambda function are missing.
  4. Cross-zone is not enabled on the ALB.

Answer(s): C



A developer is creating an AWS Lambda function that will connect to an Amazon RDS
for MySQL instance. The developer wants to store the database credentials. The database credentials need to be encrypted and the database password needs to be automatically rotated.
Which solution will meet these requirements?

  1. Store the database credentials as environment variables for the Lambda function. Set the environment variables to rotate automatically.
  2. Store the database credentials in AWS Secrets Manager. Set up managed rotation on the database credentials.
  3. Store the database credentials in AWS Systems Manager Parameter Store as secure string parameters. Set up managed rotation on the parameters.
  4. Store the database credentials in the X-Amz-Security-Token parameter. Set up managed rotation on the parameter.

Answer(s): B



A developer wants to reduce risk when deploying a new version of an existing AWS
Lambda function. To test the Lambda function, the developer needs to split the traffic between the existing version and the new version of the Lambda function.
Which solution will meet these requirements?

  1. Configure a weighted routing policy in Amazon Route 53. Associate the versions of the Lambda function with the weighted routing policy.
  2. Create a function alias. Configure the alias to split the traffic between the two versions of the Lambda function.
  3. Create an Application Load Balancer (ALB) that uses the Lambda function as a target. Configure the ALB to split the traffic between the two versions of the Lambda function.
  4. Create the new version of the Lambda function as a Lambda layer on the existing version. Configure the function to split the traffic between the two layers.

Answer(s): B



Page 58 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