AWS Certified Developer Associate DVA-C02 Practice Question
A developer is creating a Lambda function that will be interacting with an Amazon RDS instance. The Lambda function should not store the database credentials in the code, and the credentials might change periodically. The developer wishes to securely manage these credentials and ensure that they can be updated without redeploying the Lambda function. What is the MOST appropriate way to manage the database credentials?
Store the database credentials as environment variables within the Lambda function's configuration.
Retrieve the database credentials from AWS Secrets Manager at the start of the Lambda function's execution.
Embed the database credentials in the Lambda function's code and update the code when credentials change.
Use AWS Systems Manager Parameter Store to manually rotate and update the database credentials.
Using AWS Secrets Manager to store database credentials allows for secure management and rotation of secrets without hard-coding them into the Lambda function. When the credentials in Secrets Manager are rotated or updated, the Lambda function can retrieve the updated credentials without needing redeployment. AWS Systems Manager Parameter Store is also used for managing configuration data securely, but it does not provide the same level of secret rotation capabilities as Secrets Manager. Environment variables would require function configuration updates and redeployment if credentials change, which is not ideal. Lastly, embedding the credentials in the Lambda code is a security risk and against best practices for sensitive information management.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is AWS Secrets Manager?
Open an interactive chat with Bash
How does credential rotation work in AWS Secrets Manager?
Open an interactive chat with Bash
What are the differences between AWS Secrets Manager and AWS Systems Manager Parameter Store?
Open an interactive chat with Bash
AWS Certified Developer Associate DVA-C02
Deployment
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access