An organization stores sensitive compliance logs in an Amazon S3 bucket encrypted using an AWS KMS Customer Managed Key. Compliance policies mandate that all new logs must be encrypted with key material that is rotated annually. Additionally, any logs older than one year must be re-encrypted using a completely new Customer Managed Key to comply with a cryptographic obsolescence policy. Which combination of actions should a solutions architect take to meet these requirements? (Select TWO.)
- Enable automatic key rotation for the existing Customer Managed Key.Answer
- Create a new Customer Managed Key, configure the application to use it, and use Amazon S3 Batch Operations to copy and re-encrypt the historical logs older than one year under the new key.Answer
- CEnable automatic key rotation on the existing Customer Managed Key to trigger AWS KMS to automatically decrypt and re-encrypt all historical logs in the S3 bucket using the new key version.
- DDeploy an AWS Lambda function running under AWS root account credentials to programmatically decrypt and re-encrypt historical logs to prevent key policy access errors.
- EStore the KMS key configuration and the database access passwords as a plain String parameter in AWS Systems Manager Parameter Store to allow the rotation script to easily retrieve them.
Answer
The correct actions are to enable automatic key rotation for the existing Customer Managed Key and to use Amazon S3 Batch Operations to re-encrypt historical logs. Automatic key rotation manages the rotation of backing key material for new writes, while historical data re-encryption must be executed manually or via S3 Batch Operations, as AWS KMS does not retroactively re-encrypt existing S3 objects. Managing credentials via IAM roles instead of the root account and securing parameters as SecureString are fundamental AWS security best practices.
The correct actions are to enable automatic key rotation for the existing Customer Managed Key and to use Amazon S3 Batch Operations to re-encrypt historical logs. Automatic key rotation manages the rotation of backing key material for new writes, while historical data re-encryption must be executed manually or via S3 Batch Operations, as AWS KMS does not retroactively re-encrypt existing S3 objects. Managing credentials via IAM roles instead of the root account and securing parameters as SecureString are fundamental AWS security best practices.
Step-by-Step Solution
Key Concept
AWS KMS Key Rotation and Historical Data Re-encryption