A company is designing the security architecture for a new financial application. The application stores sensitive transaction records in an Amazon S3 bucket and connects to an Amazon RDS database. The company's compliance policy mandates the following security controls:
1. The database credentials must be rotated automatically every 30 days.
2. The S3 bucket objects must be encrypted at rest using a KMS Customer Managed Key (CMK) that is rotated annually.
3. Historical S3 objects must remain decryptable without manual intervention or data re-encryption.
Which combination of configurations will meet these security requirements with the least operational overhead?
- Store the database credentials in AWS Secrets Manager and configure automatic rotation. For the S3 bucket, configure default encryption using a Customer Managed Key (CMK) and enable automatic key rotation.Cevap
- BStore the database credentials as a standard String parameter in AWS Systems Manager Parameter Store. For the S3 bucket, configure default encryption using a Customer Managed Key (CMK) and enable automatic key rotation.
- CStore the database credentials in AWS Secrets Manager and configure automatic rotation. For the S3 bucket, configure default encryption using a Customer Managed Key (CMK), manually rotate the key annually by creating a new CMK, and delete the previous CMK.
- DStore the database credentials in AWS Secrets Manager. Use the AWS account root user credentials to configure a custom script that rotates the database credentials. For the S3 bucket, configure default encryption using the AWS managed key (aws/s3) and enable automatic key rotation.
Cevap
Store the database credentials in AWS Secrets Manager and configure automatic rotation. For the S3 bucket, configure default encryption using a Customer Managed Key (CMK) and enable automatic key rotation.
The correct solution stores the database credentials in AWS Secrets Manager, which natively manages automatic rotation. For S3, utilizing an AWS KMS Customer Managed Key (CMK) with automatic rotation enabled satisfies the annual rotation requirement. When automatic key rotation is enabled, AWS KMS rotates the backing key material annually while keeping the same key ARN. Crucially, AWS KMS retains older backing key material to decrypt historical objects, ensuring that older files remain decryptable without manual intervention or data re-encryption.
Adım Adım Çözüm
Anahtar Kavram
AWS KMS Customer Managed Key automatic rotation mechanics and AWS Secrets Manager integration for database credentials rotation.