An organization requires a developer to build a secure configuration strategy for an application running on AWS Lambda. The application must connect to an Amazon RDS PostgreSQL database, which requires credentials to be rotated every 30 days. The application also needs to access non-sensitive service configuration parameters that change frequently. To minimize costs and management overhead, which of the following actions should the developer take? (Select TWO.)
- Store the database credentials in AWS Secrets Manager and configure automatic rotation.Answer
- Store the non-sensitive service configuration parameters as standard parameters in AWS Systems Manager Parameter Store.Answer
- CStore the database credentials in AWS Systems Manager Parameter Store as SecureString parameters and write a custom AWS Lambda function to handle rotation.
- DPass hardcoded IAM access keys directly into the AWS SDK client initialization code to authenticate requests to Secrets Manager.
- EStore the non-sensitive service configuration parameters in AWS Secrets Manager to simplify credential management.
Answer
Store the database credentials in AWS Secrets Manager with automatic rotation configured, and store the non-sensitive service configuration parameters as standard parameters in AWS Systems Manager Parameter Store.
Storing database credentials in AWS Secrets Manager with automatic rotation configured satisfies the security requirement natively. Storing non-sensitive configuration parameters in AWS Systems Manager Parameter Store standard parameters satisfies the cost-effectiveness requirement, as standard parameters in Parameter Store do not incur any additional charges.
Step-by-Step Solution
Key Concept
Selecting the appropriate AWS service (Secrets Manager vs. Parameter Store) based on rotation requirements and cost-effectiveness, while adhering to secure credential management practices.