A company uses an AWS Key Management Service (AWS KMS) customer managed key to encrypt data in an Amazon S3 bucket. The security team enables automatic annual key rotation for this key. What will happen to the existing data that was encrypted before the key rotation occurred?
- AAWS KMS automatically decrypts and re-encrypts all historical data in the S3 bucket using the new key version within 24 hours of rotation.
- The existing data remains encrypted under the older key version, and AWS KMS automatically uses the older key version to decrypt the data when requested.Answer
- CThe solutions architect must manually download and re-encrypt all existing data in the S3 bucket using the new key version.
- DThe encryption key material is rotated, and the previous key version must be stored as a plaintext parameter in Systems Manager Parameter Store to decrypt older data.
Answer
The existing data remains encrypted under the older key version, and AWS KMS automatically uses the older key version to decrypt the data when requested.
When automatic key rotation is enabled for a customer managed key, AWS KMS retains all prior versions of the backing key. This allows AWS KMS to decrypt existing data encrypted with older key versions automatically without requiring any actions from the user or applications.
Step-by-Step Solution
Key Concept
AWS KMS automatic key rotation mechanics and preservation of historical key material