A developer is configuring an AWS CloudFormation template to deploy an Amazon RDS DB instance. The database requires a master password that must be stored securely and rotated automatically every 30 days to comply with company security policies. Which configuration should the developer use to reference and manage the password?
- AStore the database password in Systems Manager Parameter Store as a SecureString parameter, and reference it using the ssm-secure dynamic reference in the template.
- Store the database password in AWS Secrets Manager, and reference it in the CloudFormation template using a secretsmanager dynamic reference.Cevap
- CStore the database password in Systems Manager Parameter Store as a String parameter, and reference it using the ssm dynamic reference in the template.
- DHardcode the password in the CloudFormation template, and then manually change it in the Amazon RDS console after deployment to trigger a stack drift detection and alignment.
Cevap
Store the database password in AWS Secrets Manager, and reference it in the CloudFormation template using a secretsmanager dynamic reference.
The correct option stores the database password in AWS Secrets Manager, which natively supports automatic rotation, and references it using the secretsmanager dynamic reference in the template. This ensures that the secret is kept secure and is retrieved dynamically during deployment.
Adım Adım Çözüm
Anahtar Kavram
AWS CloudFormation Dynamic References and Secrets Management