A company is migrating a multi-tier application to AWS. The application consists of microservices running on AWS Fargate that require access to two different credentials: a database password for an Amazon RDS for PostgreSQL database that must be automatically rotated every 14 days, and a third-party API key that rarely changes but must be encrypted at rest using a customer managed key (CMK) with minimum retrieval cost. Which combination of actions should a solutions architect take to meet these requirements securely and cost-effectively? (Select TWO.)
- Store the PostgreSQL database credentials in AWS Secrets Manager, and configure the secret to rotate automatically using the database's built-in RDS rotation function.Answer
- Store the API key in AWS Systems Manager Parameter Store as a SecureString parameter, specifying the customer managed KMS key for encryption.Answer
- CStore the database credentials in Systems Manager Parameter Store as a String parameter, and create a custom AWS Lambda function to update the database password every 14 days.
- DStore the database credentials in Systems Manager Parameter Store as a SecureString parameter, and configure AWS KMS customer managed key automatic rotation to rotate the database password every 14 days.
- EStore the API key in Systems Manager Parameter Store as a String parameter, and enable the default KMS automatic annual rotation for the parameter storage.
Answer
Store the database credentials in AWS Secrets Manager with built-in RDS PostgreSQL automatic rotation, and store the API key in Systems Manager Parameter Store as a SecureString parameter encrypted with the customer managed KMS key.
For the database credentials, AWS Secrets Manager is the correct choice because it natively manages database secrets and supports automatic rotation for RDS databases out-of-the-box. For the static API key, storing it as a SecureString in Systems Manager Parameter Store is the most secure and cost-effective approach since it supports encryption with customer managed KMS keys and has no storage costs for standard parameters.
Step-by-Step Solution
Key Concept
Selecting the appropriate secrets management service based on rotation needs, encryption requirements, and cost-efficiency.
Estimated Time:2m 0s