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?
Use AWS Systems Manager Parameter Store to manually rotate and update the database credentials.
Retrieve the database credentials from AWS Secrets Manager at the start of the Lambda function's execution.
Store the database credentials as environment variables within the Lambda function's configuration.
Embed the database credentials in the Lambda function's code and update the code when credentials change.
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 secret rotation work in AWS Secrets Manager?
Open an interactive chat with Bash
How does Secrets Manager compare to 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...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .