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

Page 46 of 116

A developer is troubleshooting an Amazon API Gateway API. Clients are receiving HTTP
400 response errors when the clients try to access an endpoint of the API.
How can the developer determine the cause of these errors?

  1. Create an Amazon Kinesis Data Firehose delivery stream to receive API call logs from API Gateway. Configure Amazon CloudWatch Logs as the delivery stream’s destination.
  2. Turn on AWS CloudTrail Insights and create a trail. Specify the Amazon
    Resource Name (ARN) of the trail for the stage of the API.
  3. Turn on AWS X-Ray for the API stage. Create an Amazon CloudWatch Logs log group. Specify the Amazon Resource Name (ARN) of the log group for the API
    stage.
  4. Turn on execution logging and access logging in Amazon CloudWatch Logs for the API stage. Create a CloudWatch Logs log group. Specify the Amazon
    Resource Name (ARN) of the log group for the API stage.

Answer(s): D



A company developed an API application on AWS by using Amazon CloudFront, Amazon API
Gateway, and AWS Lambda. The API has a minimum of four requests every second. A
developer notices that many API users run the same query by using the POST method.
The developer wants to cache the POST request to optimize the API resources.
Which solution will meet these requirements?

  1. Configure the CloudFront cache. Update the application to return cached content based upon the default request headers.
  2. Override the cache method in the selected stage of API Gateway. Select the
    POST method.
  3. Save the latest request response in Lambda /tmp directory. Update the Lambda function to check the /tmp directory.
  4. Save the latest request in AWS Systems Manager Parameter Store. Modify the
    Lambda function to take the latest request response from Parameter Store.

Answer(s): B



A company is building a microservices application that consists of many AWS Lambda functions. The development team wants to use AWS Serverless Application Model (AWS
SAM) templates to automatically test the Lambda functions. The development team plans to test a small percentage of traffic that is directed to new updates before the team commits to a full deployment of the application.
Which combination of steps will meet these requirements in the MOST operationally efficient way? (Choose two.)

  1. Use AWS SAM CLI commands in AWS CodeDeploy to invoke the Lambda functions to test the deployment.
  2. Declare the EventInvokeConfig on the Lambda functions in the AWS SAM
    templates with OnSuccess and OnFailure configurations.
  3. Enable gradual deployments through AWS SAM templates.
  4. Set the deployment preference type to Canary10Percent30Minutes. Use hooks to test the deployment.
  5. Set the deployment preference type to Linear10PercentEvery10Minutes. Use hooks to test the deployment.

Answer(s): C,D



A company is using AWS CloudFormation to deploy a two-tier application. The application will use Amazon RDS as its backend database. The company wants a solution that will randomly generate the database password during deployment. The solution also must automatically rotate the database password without requiring changes to the application.
What is the MOST operationally efficient solution that meets these requirements?

  1. Use an AWS Lambda function as a CloudFormation custom resource to generate and rotate the password.
  2. Use an AWS Systems Manager Parameter Store resource with the SecureString data type to generate and rotate the password.
  3. Use a cron daemon on the application’s host to generate and rotate the password.
  4. Use an AWS Secrets Manager resource to generate and rotate the password.

Answer(s): D



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