An application running on EC2 uses an Amazon RDS for SQL Server database. Security requires database credentials to be rotated at least weekly. How should the developer configure credentials to meet this requirement?
Choose an answer
Tap an option to check your answer.
Correct answer: Create a database user and store the username and password in AWS Secrets Manager with automated rotation enabled (e.g., daily rotation)..
Why this is the answer
AWS Secrets Manager is the most appropriate service for this requirement because it is designed to store, manage, and automatically rotate database credentials, API keys, and other secrets. By enabling automated rotation, Secrets Manager can rotate the credentials weekly (or even daily as suggested), meeting the security requirement without manual intervention. Storing credentials in Systems Manager Parameter Store as a secure string is possible, but it does not natively support automated rotation, requiring custom automation to achieve the weekly rotation. Enabling rotation of the KMS key encrypting the parameter only rotates the key, not the secret itself. IAM database authentication for RDS is a good security practice, but it manages authentication via IAM users/roles, not traditional database user password rotation, and doesn't directly address rotating a database user's password. Storing credentials in EC2 user data or environment variables is highly insecure and does not provide any rotation mechanism.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed