A solutions architect is migrating an on-premises application to AWS. The application requires access to a database password and a third-party partner's API token. These credentials must be encrypted at rest and rotated automatically every 60 days. Additionally, the application writes audit logs to an Amazon EBS volume, which must be encrypted using a customer managed KMS key that is rotated every year. The historical audit logs must remain readable after key rotation without manual intervention.
Which combination of actions should the solutions architect take to meet these security requirements? (Select TWO.)
- Store the database password and API token in AWS Secrets Manager, and configure a custom AWS Lambda function to rotate the secrets every 60 days.Answer
- Enable automatic key rotation for the customer managed KMS key used for the EBS volume.Answer
- CStore the database password and API token as String parameters in AWS Systems Manager Parameter Store, and write an Amazon EventBridge rule to update the plaintext values every 60 days.
- DEnable automatic key rotation for the customer managed KMS key, and schedule an AWS Lambda function to decrypt and re-encrypt all existing EBS volume snapshots with the new key version immediately after rotation.
- ECreate a new customer managed KMS key annually, update the EBS volume configuration to use the new key, and delete the old KMS key to ensure only the active key is used.
Answer
The correct solutions are to store the credentials in AWS Secrets Manager with a custom Lambda function for rotation, and to enable automatic key rotation on the customer managed KMS key used for the EBS volume.
To secure credentials and meet the 60-day rotation requirement, AWS Secrets Manager should be used with a custom AWS Lambda function to rotate the database password and third-party API token. To secure the EBS volume and meet the annual rotation requirement without manual re-encryption or interrupting access to historical data, automatic key rotation should be enabled on the customer managed KMS key. AWS KMS automatically manages the rotation and retains the older key versions to decrypt existing data when needed.
Step-by-Step Solution
Key Concept
Data Encryption and Key Management