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

A company created four AWS Lambda functions that connect to a relational database server that runs on an Amazon RDS instance. A security team requires the company to automatically change the database password every 30 days.

Which solution will meet these requirements MOST securely?

Answer options

Correct answer: B

Explanation

Option B is the most secure solution because AWS Secrets Manager is specifically designed for managing sensitive information, including automatic rotation of database credentials. Option A is less secure as it involves hardcoding credentials in environment variables and requires redeployment. Option C, while secure, does not provide the same level of automation and ease of use as Secrets Manager. Option D exposes the credentials in an S3 bucket, which is not ideal for sensitive data storage.