Free AWS-CERTIFIED-DEVELOPER-ASSOCIATE-DVA-C02 Amazon AWS-CERTIFIED-DEVELOPER-ASSOCIATE-DVA-C02 Practice Test Question

Loading demo links...

Showing 55–56 of 56 questions

Question 55 (Topic 1)

A developer is building an application that consists of many AWS Lambda functions. The Lambda functions connect to a single Amazon RDS database. The developer needs to implement a solution to store the database credentials securely. When the credentials are updated, the Lambda functions must be able to use the new credentials without requiring a code update or a configuration update. Which solution will meet these requirements?

Select an option, then click Submit answer.

  • Store the credentials as a secret in AWS Secrets Manager. Access the secret at runtime from within the Lambda functions.
  • Store the credentials as a secret in AWS Secrets Manager. Access the credentials in environment variables by using the containerDefinitions and valueFrom elements in reference to the secret value.
  • Store the credentials as a SecureString parameter in AWS Systems Manager Parameter Store. Add a trigger to pass the credentials to the Lambda functions when the Lambda functions run.
  • Store the credentials as a SecureString parameter in AWS Systems Manager Parameter Store. Add a reference to the parameter in an environment variable in the Lambda functions.
Question 56 (Topic 1)

A developer created several AWS Lambda functions that write data to a single Amazon S3 bucket. The developer configured all the Lambda functions to send logs and metrics to Amazon CloudWatch. The developer receives reports that one of the Lambda functions writes data to the bucket very slowly. The developer needs to measure the latency between the problematic Lambda function and the S3 bucket. Which solution will meet this requirement?

Select an option, then click Submit answer.

  • Enable AWS X-Ray on the Lambda function. In the generated trace map, select the line between Lambda and Amazon S3.
  • Query the Lambda function’s log file in Amazon CloudWatch Logs Insights. Return the average of the auto-discovered @duration field.
  • Enable CloudWatch Lambda Insights on the function. View the latency graph that CloudWatch Lambda Insights provides.
  • Enable AWS X-Ray on the Lambda function. Select Amazon S3 in the latency graph to view the latency histogram.