0 votes
972 views
in AWS by (0 points)
closed by

A company has an application that calls AWS Lambda functions. A recent code review found database credentials stored in the source code. The database credentials need to be removed from the Lambda source code. The credentials must then be securely stored and rotated on an ongoing basis to meet security policy requirements. What should a solutions architect recommend to meet these requirements?

A.  Store the password in AWS CloudHSM.Associate the Lambda function with a role that can retrieve the password from CloudHSM given its key ID.

B.  Store the password in AWS Secrets Manager.Associate the Lambda function with a role that can retrieve the password from Secrets Manager given its secret ID.

C.  Move the database password to an environment variable associated with the Lambda function.Retrieve the password from the environment variable upon execution.

D.  Store the password in AWS Key Management Service (AWS KMS).Associate the Lambda function with a role that can retrieve the password from AWS KMS given its key ID.

closed

1 Answer

0 votes
by (0 points)
 
Best answer
Correct Answer: B

Related questions

2.1k questions

2.1k answers

0 comments

76 users

Welcome to MCQ Village Q&A, where you can ask questions and receive answers from other members of the community.
...