A company stores financial records in an Amazon S3 bucket. The objects are encrypted at rest using Server-Side Encryption with AWS KMS keys (SSE-KMS) and a Customer Managed Key (CMK). To comply with new regulatory requirements, the security team mandates that the KMS key must be rotated every 90 days. Furthermore, all existing historical records in the S3 bucket must be immediately re-encrypted using the new key material as soon as the key is rotated. Which combination of actions will meet these requirements with the least operational overhead?
- AEnable automatic key rotation for the Customer Managed Key with a 90-day interval. Rely on AWS KMS to automatically and immediately re-encrypt all historical S3 objects in the background once the key rotation completes.
- BManually generate a new Customer Managed Key every 90 days and store the new key ARN as a plaintext String parameter in Systems Manager Parameter Store. Write an AWS Lambda function to update the default bucket encryption settings and re-encrypt the historical objects using the Parameter Store value.
- Configure the Customer Managed Key with automatic key rotation set to a 90-day interval. Execute an Amazon S3 Batch Operations job using a copy operation to duplicate the existing objects in-place under the same key.Cevap
- DLog in to the AWS account root user every 90 days. Disable the active Customer Managed Key, create a new Customer Managed Key, and use the root user credentials to run an S3 Batch Operations copy job to re-encrypt all historical objects.
Cevap
Configuring the Customer Managed Key with automatic key rotation set to a 90-day interval and executing an Amazon S3 Batch Operations job to copy the objects in-place under the same key is the most operationally efficient solution.
Configuring automatic key rotation with a 90-day interval on the Customer Managed Key (CMK) allows AWS KMS to handle the rotation of key material natively. To address the requirement of re-encrypting historical objects in S3, running an S3 Batch Operations job with a copy operation to copy the objects onto themselves (in-place) forces S3 to decrypt the objects using the old key material and re-encrypt them with the newly rotated key material under the same key ID. This approach completely avoids manual key management, credential exposure, or the need to update bucket policies or application configurations.
Adım Adım Çözüm
Anahtar Kavram
KMS Key Rotation Mechanics and S3 Batch Re-encryption