AWS Certified Solutions Architect – Professional (SAP-C02) — Question 376

A company is deploying AWS Lambda functions that access an Amazon RDS for PostgreSQL database. The company needs to launch the Lambda functions in a QA environment and in a production environment.

The company must not expose credentials within application code and must rotate passwords automatically.

Which solution will meet these requirements?

Answer options

Correct answer: B

Explanation

AWS Secrets Manager is the ideal service for this scenario because it natively supports automatic rotation of database credentials, including those for Amazon RDS for PostgreSQL. It allows secure retrieval of credentials at runtime without hardcoding them in the application code. While AWS Systems Manager Parameter Store, AWS KMS, and Amazon S3 can store sensitive data, they do not offer built-in, out-of-the-box automatic credential rotation for databases.