nerdexam
Amazon

DVA-C02 · Question #694

A developer wants to connect an Amazon RDS DB instance to an AWS Lambda function. The Amazon RDS credentials are stored in AWS Secrets Manager. The developer wants to optimize the performance of the L

The correct answer is B. Use the AWS Parameters and Secrets Lambda Extension to cache and manage the retrieval of. The AWS Parameters and Secrets Lambda Extension securely caches Secrets Manager and Systems Manager Parameter Store secrets locally within the Lambda execution environment. This reduces latency for secret retrieval while maintaining security by avoiding embedding secrets directly

Submitted by suresh_in· Mar 5, 2026Security

Question

A developer wants to connect an Amazon RDS DB instance to an AWS Lambda function. The Amazon RDS credentials are stored in AWS Secrets Manager. The developer wants to optimize the performance of the Lambda function. The developer wants to reduce the latency that is associated with retrieving parameters. Which solution will meet these requirements MOST securely?

Options

  • AUpdate the Lambda code to store and retrieve the database credentials in a Lambda layer.
  • BUse the AWS Parameters and Secrets Lambda Extension to cache and manage the retrieval of
  • CStore the database credentials in the Lambda function environment variables.
  • DRetrieve the parameters by using API Gateway. Pass the parameters to the Lambda function as

How the community answered

(29 responses)
  • A
    3% (1)
  • B
    72% (21)
  • C
    17% (5)
  • D
    7% (2)

Explanation

The AWS Parameters and Secrets Lambda Extension securely caches Secrets Manager and Systems Manager Parameter Store secrets locally within the Lambda execution environment. This reduces latency for secret retrieval while maintaining security by avoiding embedding secrets directly in code or environment variables.

Community Discussion

No community discussion yet for this question.

Full DVA-C02 Practice