Testing and Deployment

Development and production use separate Amazon RDS databases. A Lambda application must retrieve each environment's database password at runtime and support managed password rotation; where should the passwords be stored?

Show the answer

Correct answerB. In separate AWS Secrets Manager secrets

AWhy not this: SecureString parameters encrypt values but require additional automation to rotate database passwords.

BWhy this is right: Secrets Manager supports separate environment secrets, runtime retrieval, and managed rotation for supported RDS credentials.

CWhy not this: Hosted configurations manage application settings rather than database credential rotation.

DWhy not this: Environment variables can hold encrypted values but do not manage rotation of database credentials.

Secrets Manager supports runtime secret retrieval and managed rotation for supported Amazon RDS credentials. Parameter Store SecureString encrypts sensitive values but does not natively manage database password rotation.