A solutions architect is reviewing the security of a web application running on Amazon EC2 instances. The solutions architect finds that a database password is currently stored as a plaintext string parameter in Systems Manager Parameter Store. The company requires the database credentials to be encrypted at rest and rotated automatically every 30 days. Which solution should the solutions architect implement to meet these requirements?
- Store the credentials in AWS Secrets Manager, enable automatic rotation, and configure the application to retrieve the credentials from Secrets Manager.Cevap
- BStore the credentials as a standard String parameter in Systems Manager Parameter Store and restrict access using an IAM policy.
- CStore the credentials as a SecureString parameter in Systems Manager Parameter Store, and configure the application to use the AWS account root user credentials to retrieve them.
- DStore the credentials as a SecureString parameter in Systems Manager Parameter Store, and enable AWS KMS automatic key rotation to rotate the database password.
Cevap
Store the credentials in AWS Secrets Manager, enable automatic rotation, and configure the application to retrieve the credentials from Secrets Manager.
AWS Secrets Manager natively supports both encryption at rest and automatic credential rotation (such as for Amazon RDS databases) without requiring custom code or infrastructure. The application can securely query Secrets Manager at runtime to retrieve the current password.
Adım Adım Çözüm
Anahtar Kavram
Secure secrets storage and lifecycle management using AWS Secrets Manager