A company is deploying an application on Amazon EC2 instances that connects to an Amazon RDS for PostgreSQL database. The company's security policy requires database credentials to be encrypted and rotated every 30 days. Additionally, the master key used to encrypt these credentials must be a customer managed KMS key that is rotated annually. The solutions architect must implement a solution that minimizes administrative overhead and prevents the application from storing credentials in plaintext configuration files.
Which combination of actions should the solutions architect take to meet these requirements? (Select TWO.)
- Store the database credentials in AWS Secrets Manager and configure automatic credentials rotation every 30 days using an AWS Lambda function.Answer
- Enable automatic key rotation on the customer managed KMS key to rotate the key material annually without changing the key ARN.Answer
- CStore the database credentials as a String parameter in AWS Systems Manager Parameter Store to simplify configuration management and rotation.
- DCreate a new customer managed KMS key annually, manually re-encrypt the credentials in Secrets Manager with the new key, and update the application configuration.
- EEnable automatic rotation on the AWS managed KMS key (aws/secretsmanager) and configure it to rotate the secret every 30 days.
Answer
To secure the database credentials and satisfy the rotation requirements, store the credentials in AWS Secrets Manager and configure automatic rotation every 30 days using an AWS Lambda function, and enable automatic key rotation on the customer managed KMS key to rotate the key material annually without changing the key ARN.
Storing database credentials in AWS Secrets Manager with Lambda-based rotation enables secure, automated credential rotation every 30 days. Additionally, enabling automatic key rotation on the customer managed KMS key meets the requirement for annual key rotation with zero administrative overhead and no change to the key ARN.
Step-by-Step Solution
Key Concept
Key rotation in AWS KMS is separate from secret rotation in AWS Secrets Manager. KMS automatic rotation rotates the underlying key material without changing the key ARN, while Secrets Manager handles updating credentials in the target database.
Estimated Time:2m 0s