AWS Certified Solutions Architect – Professional — Question 252

A solutions architect is implementing infrastructure as code for a two-tier web application in an AWS CloudFormation template. The web frontend application will be deployed on Amazon EC2 instances in an Auto Scaling group. The backend database will be an Amazon RDS for MySQL DB instance. The database password will be rotated every 60 days.
How can the solutions architect MOST securely manage the configuration of the application's database credentials?

Answer options

Correct answer: B

Explanation

Option B is the most secure choice because AWS Secrets Manager is designed specifically for managing sensitive information like database credentials. It allows for secure storage and automatic rotation of passwords. The other options either involve hardcoding passwords or using less secure storage methods, which can expose sensitive information.