A SysOps administrator must protect the credentials for an Amazon RDS instance that a CloudFormation template will create. The credentials must be stored encrypted and support automatic rotation. Which approach satisfies these requirements?
Choose an answer
Tap an option to check your answer.
Correct answer: Define an AWS::SecretsManager::Secret resource in the CloudFormation template. Use the resolve:secretsmanager dynamic reference to supply the credentials to the AWS::RDS::DBInstance resource..
Why this is the answer
The correct approach is to define an AWS::SecretsManager::Secret resource in the CloudFormation template and use the resolve:secretsmanager dynamic reference. AWS Secrets Manager is designed for storing, retrieving, and rotating sensitive credentials like database passwords, meeting the encryption and automatic rotation requirements. The resolve:secretsmanager dynamic reference allows CloudFormation to fetch the secret value at deployment time. Using resolve:ssm-secure is incorrect because it's for AWS Systems Manager Parameter Store, not Secrets Manager. While Parameter Store can store encrypted parameters, it doesn't offer built-in automatic rotation for database credentials like Secrets Manager does. Defining an AWS::SSM::Parameter with resolve:ssm is also incorrect as it lacks the automatic rotation feature and resolve:ssm is for plain text or encrypted parameters, not specifically secrets. Declaring template parameters for credentials is insecure as they are exposed in the template and lack encryption and rotation capabilities.
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