A company is deploying an IoT data processing application on Amazon ECS using the Fargate launch type. The application needs to retrieve two configuration values: a database endpoint address that does not contain sensitive information, and an API password for an external service that must be rotated every 60 days. The solutions architect wants to implement a secure solution that minimizes ongoing operational costs.
Which combination of actions should the solutions architect take to meet these requirements? (Select TWO.)
- Store the database endpoint address as a String parameter in AWS Systems Manager Parameter Store.Answer
- Store the API password in AWS Secrets Manager and configure an AWS Lambda function to rotate the secret every 60 days.Answer
- CStore the database endpoint address in AWS Secrets Manager and enable the default automatic rotation feature.
- DStore the API password as a String parameter in AWS Systems Manager Parameter Store.
- EConfigure automatic key rotation on the AWS Key Management Service (AWS KMS) customer managed key to automatically rotate the API password value every 60 days.
Answer
Store the database endpoint address as a String parameter in AWS Systems Manager Parameter Store, and store the API password in AWS Secrets Manager and configure an AWS Lambda function to rotate the secret every 60 days.
The database endpoint is non-sensitive configuration data, meaning it can be stored cost-effectively as a String parameter in AWS Systems Manager Parameter Store without incurring extra charges. The API password, being sensitive and requiring automated rotation every 60 days, must be stored in AWS Secrets Manager. Secrets Manager natively supports automated rotation schedules and can trigger a custom AWS Lambda function to update the credential on the third-party service.
Step-by-Step Solution
Key Concept
Secrets and Parameter Management