An application hosted on Amazon EC2 instances requires access to a database password that must be rotated every 30 days, as well as a non-sensitive external API endpoint URL that does not change. Which TWO of the following configurations should the developer use to manage these values securely and cost-effectively? (Select TWO.)
- Store the database password in AWS Secrets Manager and configure automatic rotation.Answer
- Store the API endpoint URL in Systems Manager Parameter Store as a Standard String parameter.Answer
- CStore the database password in Systems Manager Parameter Store, as Parameter Store natively supports automatic rotation of database credentials.
- DHardcode the database password directly within the application's SDK client initialization code.
- EStore the API endpoint URL in AWS Secrets Manager to utilize Secrets Manager's automatic rotation feature for static endpoints.
Answer
Store the database password in AWS Secrets Manager and configure automatic rotation, and store the API endpoint URL in Systems Manager Parameter Store as a Standard String parameter.
The correct options are to store the database password in AWS Secrets Manager and configure automatic rotation, and store the API endpoint URL in Systems Manager Parameter Store as a Standard String parameter. This ensures sensitive passwords are encrypted and rotated automatically, while non-sensitive parameters are stored cost-effectively in Parameter Store without incurring extra charges.
Step-by-Step Solution
Key Concept
Distinction between AWS Secrets Manager and Systems Manager Parameter Store
Estimated Time:1m 0s