An enterprise architecture team is reviewing the security posture of an analytics application that processes sensitive financial data. The application requires access to a database password, and all associated Amazon EBS volumes must be encrypted. To comply with internal security policies, the database password must be rotated every 30 days without manual intervention, and the KMS keys used for EBS volume encryption must be automatically rotated annually. Which strategy should a solutions architect implement to meet these requirements with the least operational effort?
- Store the database password in AWS Secrets Manager and configure automatic rotation using an AWS Lambda function. Encrypt the EBS volumes using a Customer Managed Key (CMK) and enable automatic key rotation in AWS KMS.Answer
- BStore the database password in AWS Systems Manager Parameter Store as a standard String parameter. Encrypt the EBS volumes using a Customer Managed Key (CMK) and enable automatic key rotation in AWS KMS.
- CStore the database password in AWS Secrets Manager with automatic rotation enabled. Encrypt the EBS volumes using a Customer Managed Key (CMK), enable automatic key rotation, and configure an automated script to immediately re-encrypt all existing historical EBS volume data block-by-block under the new key version.
- DStore the database password in AWS Secrets Manager. Log in as the AWS account root user to configure the Secrets Manager rotation policy and to create the Customer Managed Key (CMK) for EBS encryption to bypass KMS key policy permissions.
Answer
Store the database password in AWS Secrets Manager and configure automatic rotation using an AWS Lambda function. Encrypt the EBS volumes using a Customer Managed Key (CMK) and enable automatic key rotation in AWS KMS.
The correct solution stores database passwords securely in AWS Secrets Manager, which natively orchestrates rotation using AWS Lambda. It also encrypts EBS volumes using a Customer Managed Key (CMK) and leverages AWS KMS's native automatic rotation feature. This ensures that new data is encrypted with the new key version, while the previous key versions are retained to decrypt existing data without manual re-encryption overhead.
Step-by-Step Solution
Key Concept
Database credential rotation using Secrets Manager and KMS Customer Managed Key automatic rotation mechanics.
Estimated Time:1m 30s