AWS Certified Developer – Associate — Question 263

A developer is modifying an existing AWS Lambda function. While checking the code, the developer notices hardcoded parameter values for an Amazon RDS for SQL Server user name, password, database, host, and port. There also are hardcoded parameter values for an Amazon DynamoDB table, an Amazon S3 bucket, and an Amazon Simple Notification Service (Amazon SNS) topic.

The developer wants to securely store the parameter values outside the code in an encrypted format and wants to turn on rotation for the credentials. The developer also wants to be able to reuse the parameter values from other applications and to update the parameter values without modifying code.

Which solution will meet these requirements with the LEAST operational overhead?

Answer options

Correct answer: B

Explanation

Option B is correct because AWS Secrets Manager allows for secure storage and rotation of database credentials while enabling the use of SecureString parameters in AWS Systems Manager Parameter Store for other resources, meeting all requirements with minimal management effort. Option A does not utilize the Parameter Store optimally, while Options C and D involve additional operational overhead by introducing Lambda functions and scheduling for credential rotation, which is unnecessary when using Secrets Manager.