A company is deploying a new web application on Amazon EC2 instances. The application requires access to a database password and must encrypt configuration files at rest using an AWS Key Management Service (AWS KMS) customer managed key (CMK). The security team requires that the database password be stored securely, the CMK automatically rotate every year, and historical files encrypted with the CMK remain decryptable without manual key management or re-encryption. Which configuration meets these requirements with the least operational overhead?
- Store the database password in AWS Secrets Manager. Enable automatic rotation on the KMS customer managed key (CMK).Cevap
- BStore the database password as a String parameter in AWS Systems Manager Parameter Store. Enable automatic rotation on the KMS customer managed key (CMK), and write a script to re-encrypt all historical files with the new backing key after rotation.
- CStore the database password in AWS Secrets Manager. Use the AWS account root user to manually delete the previous backing key version after rotation to ensure only the newest backing key is active.
- DStore the database password in AWS Systems Manager Parameter Store as a SecureString. Disable automatic key rotation, manually create a new customer managed key (CMK) each year, delete the old CMK, and update the application configuration with the new CMK ARN.
Cevap
Store the database password in AWS Secrets Manager, and enable automatic rotation on the KMS customer managed key (CMK).
Storing the database password in AWS Secrets Manager satisfies the requirement for secure credential storage. Enabling automatic key rotation on the KMS customer managed key (CMK) automatically creates a new backing key every year while preserving the previous backing key versions. This allows the application to seamlessly decrypt older files without manual intervention, script execution, or code changes.
Adım Adım Çözüm
Anahtar Kavram
AWS KMS Automatic Key Rotation and Secrets Management