An application deployed on Amazon EC2 instances must connect to an external database. The developer needs to store the database endpoint URL, which is non-sensitive, and the database credentials, which must be rotated automatically every 30 days. Which combination of actions should the developer take to configure these parameters in a secure and cost-effective manner? (Select TWO.)
- Store the non-sensitive database endpoint URL as a Parameter Store parameter.Answer
- Store the database credentials in AWS Secrets Manager with automatic rotation enabled.Answer
- CStore the database credentials as a String parameter in Systems Manager Parameter Store and create a custom AWS Lambda function for rotation.
- DStore both the database endpoint URL and the database credentials in AWS Secrets Manager as a single secret.
- EHardcode the database credentials directly in the application configuration files.
Answer
Store the non-sensitive database endpoint URL as a Parameter Store parameter, and store the database credentials in AWS Secrets Manager with automatic rotation enabled.
Storing the non-sensitive database endpoint in Systems Manager Parameter Store provides a low-cost, fully-managed configuration store. Storing the sensitive database credentials in AWS Secrets Manager provides native automated credentials rotation, which meets security requirements with minimal operational overhead.
Step-by-Step Solution
Key Concept
Selecting between Systems Manager Parameter Store and AWS Secrets Manager based on credential sensitivity and automatic rotation requirements.