A developer is building a containerized microservice deployed on Amazon Elastic Container Service (Amazon ECS) using the AWS Fargate launch type. The microservice requires access to:
1. A sensitive API key for a third-party SaaS service that requires scheduled rotation every days.
2. A non-sensitive log level configuration setting (e.g., INFO, DEBUG) that varies between development and production environments.
Which combination of actions should the developer take to configure these parameters securely and cost-effectively? (Select TWO.)
- Store the third-party API key in AWS Secrets Manager and configure an AWS Lambda function to handle the -day rotation logic.Answer
- Store the log level configuration setting in AWS Systems Manager Parameter Store as a String parameter.Answer
- CStore both the third-party API key and the log level setting in AWS Systems Manager Parameter Store as SecureString parameters with an automated Systems Manager association policy for rotation.
- DHardcode the log level configuration setting in the application code and store the third-party API key directly in the ECS task definition environment variables.
- EStore the log level configuration setting in AWS Secrets Manager and configure a standard rotation schedule using a built-in Amazon RDS database rotation template.
Answer
Store the third-party API key in AWS Secrets Manager and configure an AWS Lambda function to handle the -day rotation logic, and store the log level configuration setting in AWS Systems Manager Parameter Store as a String parameter.
For the sensitive third-party API key, storing it in AWS Secrets Manager allows the developer to configure an AWS Lambda function to handle the required custom -day rotation logic. For the non-sensitive log level configuration, AWS Systems Manager Parameter Store is a cost-effective and simple solution that avoids unnecessary Secrets Manager costs.
Step-by-Step Solution
Key Concept
Selecting between AWS Secrets Manager and AWS Systems Manager Parameter Store based on sensitivity and rotation requirements.