AWS Certified Developer – Associate (DVA-C02) — Question 515

A developer is writing an application in AWS Lambda. To simplify testing and deployments, the developer needs the database connection string to be easily changed without modifying the Lambda code.

How can this requirement be met?

Answer options

Correct answer: A

Explanation

Storing the database connection string in AWS Secrets Manager allows the developer to retrieve it dynamically during execution, decoupling the configuration from the AWS Lambda code. IAM user accounts and AWS KMS are not designed to store and manage connection string values directly, while Lambda layers are meant for sharing code and dependencies rather than dynamic configuration management.