A company is developing a serverless application that processes highly sensitive client records stored in an Amazon S3 bucket. The records must be encrypted at rest using an AWS KMS customer managed key. The company's compliance policy requires that the encryption key be rotated every 90 days. Additionally, legacy records encrypted with older versions of the key must remain accessible for read operations without manual administrative intervention. The security team also requires that access to the KMS key be restricted using the principle of least privilege, ensuring that even the AWS account root user cannot access the key unless explicitly permitted.
Which two actions should a solutions architect take to meet these requirements?
- Enable automatic key rotation on the customer managed key and configure the rotation period to 90 days.Answer
- BCreate a new customer managed key every 90 days, update the S3 bucket configuration to use the new key, and run an S3 Batch Operations job to re-encrypt all historical records.
- Modify the KMS key policy to remove the default policy statement that grants the AWS account root user access to the key, and explicitly list the authorized IAM roles.Answer
- DEnable automatic key rotation on the customer managed key, and configure a Lambda function to decrypt and re-encrypt all existing S3 objects under the new key version immediately after rotation.
- EStore the KMS key credentials as a plaintext String parameter in AWS Systems Manager Parameter Store to allow administrative access while bypassing the key policy.
Answer
Enable automatic key rotation on the customer managed key with a 90-day rotation period, and modify the KMS key policy to remove the default statement that delegates access to the account root user while explicitly defining authorized IAM roles.
Enabling automatic key rotation with a 90-day period meets the compliance timeline while keeping older key material available for automatic decryption. Removing the default root statement from the KMS key policy ensures that access is governed strictly by the key policy itself and cannot be bypassed via IAM policies.
Step-by-Step Solution
Key Concept
AWS KMS Key Policies and Automatic Rotation Mechanics