A developer is deploying a serverless microservice on AWS Lambda that requires access to an Amazon RDS database. The developer needs to store the database host URL (non-sensitive configuration) and the database password (sensitive credential). The database password must be automatically rotated every 30 days. Which combination of actions should the developer take to meet these requirements in the most secure and cost-effective manner? (Select TWO.)
- Store the database password in AWS Secrets Manager and enable automatic rotation.Cevap
- Store the database host URL as a String parameter in AWS Systems Manager Parameter Store.Cevap
- CStore the database password in AWS Systems Manager Parameter Store as a SecureString parameter and configure scheduled automatic rotation.
- DHardcode the database password directly within the Lambda function code to minimize configuration overhead.
- EStore both the database host URL and the database password in AWS Secrets Manager as a single JSON secret with automatic rotation enabled.
Cevap
The developer should store the database password in AWS Secrets Manager with automatic rotation enabled, and store the database host URL in AWS Systems Manager Parameter Store.
The correct options are storing the database password in AWS Secrets Manager and storing the database host URL in AWS Systems Manager Parameter Store. Storing the password in AWS Secrets Manager ensures security and enables native automatic rotation (especially for RDS). Storing the host URL in Systems Manager Parameter Store is the most cost-effective solution for non-sensitive configuration details because standard parameters in Parameter Store are free, avoiding unnecessary Secrets Manager fees.
Adım Adım Çözüm
Anahtar Kavram
Selecting the appropriate secrets management service based on sensitivity, rotation requirements, and cost-efficiency.
Tahmini Süre:1m 0s