A healthcare provider hosts a web portal on AWS that stores patient medical imaging files in an Amazon S3 bucket and patient metadata in an Amazon Aurora PostgreSQL database. The provider's compliance policy mandates that all data at rest must be encrypted using customer managed keys in AWS Key Management Service (AWS KMS). The cryptographic key material must be updated annually, but existing data must not be actively re-encrypted. Additionally, the database credentials must be rotated every 30 days without causing database connection issues or application downtime. Which combination of actions will meet these requirements in the most secure manner? (Select TWO.)
- Enable automatic key rotation on the customer managed keys in AWS KMS.Answer
- Store the database credentials in AWS Secrets Manager and configure automatic rotation using an AWS Lambda function every 30 days.Answer
- CStore the database credentials as a String parameter in AWS Systems Manager Parameter Store and write a custom script to rotate the password.
- DEnable automatic key rotation in AWS KMS and execute an AWS Batch job to immediately re-encrypt all existing data with the new key version.
- EManually create a new customer managed key annually to replace the active key, and delete the previous customer managed key to prevent its unauthorized use.
Answer
Enable automatic key rotation on the customer managed keys in AWS KMS, and store the database credentials in AWS Secrets Manager and configure automatic rotation using an AWS Lambda function every 30 days.
Enabling automatic key rotation for customer managed keys satisfies the annual rotation requirement without re-encrypting existing data because AWS KMS automatically retains older key versions to decrypt historical data. Storing database credentials in AWS Secrets Manager and using an AWS Lambda function to rotate the credentials every 30 days satisfies the rotation requirement while avoiding application downtime or connection issues.
Step-by-Step Solution
Key Concept
AWS KMS Automatic Key Rotation and AWS Secrets Manager Credential Rotation
Estimated Time:2m 0s