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

A company runs an application on Amazon EC2 instances. The EC2 instances open connections to an Amazon RDS for SQL Server database. A developer needs to store and access the credentials and wants to automatically rotate the credentials. The developer does not want to store the credentials for the database in the code.

Which solution will meet these requirements in the MOST secure way?

Answer options

Correct answer: B

Explanation

Option B is the most secure solution as AWS Secrets Manager is specifically designed for managing and automatically rotating secrets like database credentials. The other options either expose the credentials in less secure ways or do not provide automatic rotation, making them less suitable for this requirement.