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

A developer is creating an AWS Lambda function that will connect to an Amazon RDS for MySQL instance. The developer wants to store the database credentials. The database credentials need to be encrypted and the database password needs to be automatically rotated.

Which solution will meet these requirements?

Answer options

Correct answer: B

Explanation

The correct answer is B because AWS Secrets Manager is specifically designed for securely storing sensitive information like database credentials and includes built-in support for automatic credential rotation. Options A and C do not provide encryption and managed rotation as effectively as Secrets Manager, while option D incorrectly suggests using the X-Amz-Security-Token parameter, which is not suitable for storing database credentials.