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

A developer is creating an AWS Lambda function that needs credentials to connect to an Amazon RDS for MySQL database. An Amazon S3 bucket currently stores the credentials. The developer needs to improve the existing solution by implementing credential rotation and secure storage. The developer also needs to provide integration with the Lambda function.
Which solution should the developer use to store and retrieve the credentials with the LEAST management overhead?

Answer options

Correct answer: C

Explanation

The correct answer is C because AWS Secrets Manager is specifically designed for storing and managing sensitive information like database credentials, offering built-in automatic rotation and easy integration with AWS services like Lambda. Options A, B, and D involve more management overhead, such as maintaining separate functions or using less optimal storage solutions that do not specifically cater to credential management.