A company runs a financial analytics application on Amazon ECS that queries an Amazon Aurora PostgreSQL database. The application encrypts generated PDF reports using an AWS KMS customer managed key (CMK) and stores them in an Amazon S3 bucket. The security policy mandates that the database credentials must be rotated every 15 days, and the KMS CMK used to encrypt the S3 bucket must be rotated automatically every year. The security team is concerned that rotating the CMK will make the older PDF reports in the S3 bucket unreadable.
Which configuration will meet these security requirements with the LEAST operational overhead?
- Store the database credentials in AWS Secrets Manager with automatic rotation configured for every 15 days. Enable automatic key rotation for the customer managed key in AWS KMS.Cevap
- BStore the database credentials in AWS Systems Manager Parameter Store as a String parameter. Enable automatic key rotation on the customer managed key, and configure an AWS Lambda function to update the Parameter Store value every 15 days.
- CStore the database credentials in AWS Secrets Manager with automatic rotation configured for every 15 days. Manually rotate the customer managed key annually by creating a new key, updating the S3 bucket policy with the new key ARN, and running an S3 Batch Operations job to re-encrypt all older PDF reports.
- DStore the database credentials in AWS Secrets Manager with automatic rotation configured for every 15 days. Use a stateless Network ACL on the ECS subnet to restrict access to the KMS endpoint, and configure a custom script to rotate the database credentials and manually re-encrypt the S3 bucket objects annually.
Cevap
Store the database credentials in AWS Secrets Manager with automatic rotation configured for every 15 days. Enable automatic key rotation for the customer managed key in AWS KMS.
The correct solution uses AWS Secrets Manager to handle the 15-day database credential rotation natively and securely. For the KMS Customer Managed Key (CMK), enabling automatic rotation is the most operationally efficient choice because it retains the same key ARN and automatically preserves older key versions. When applications request decryption of older PDF reports, AWS KMS automatically uses the corresponding older key version, eliminating the need to re-encrypt historical reports.
Adım Adım Çözüm
Anahtar Kavram
AWS KMS automatic key rotation retains older key versions to decrypt historical data without changing the key ARN, while AWS Secrets Manager manages DB credential rotation.