exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

View all questions & answers for the AWS Certified Developer - Associate DVA-C02 exam

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 549 discussion

A developer is building an application that consists of many AWS Lambda functions. The Lambda functions connect to a single Amazon RDS database.

The developer needs to implement a solution to store the database credentials securely. When the credentials are updated, the Lambda functions must be able to use the new credentials without requiring a code update or a configuration update.

Which solution will meet these requirements?

  • A. Store the credentials as a secret in AWS Secrets Manager. Access the secret at runtime from within the Lambda functions.
  • B. Store the credentials as a secret in AWS Secrets Manager. Access the credentials in environment variables by using the containerDefinitions and valueFrom elements in reference to the secret value.
  • C. Store the credentials as a SecureString parameter in AWS Systems Manager Parameter Store. Add a trigger to pass the credentials to the Lambda functions when the Lambda functions run.
  • D. Store the credentials as a SecureString parameter in AWS Systems Manager Parameter Store. Add a reference to the parameter in an environment variable in the Lambda functions.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
0bdf3af
1 month, 3 weeks ago
Selected Answer: D
D We can store the credentials in SSM Parameter Store with encryption. Then we can add a environment variable "db_password" in lambda with proper credential name from SSM Parameter Store In the code in Lambda we can import ssm and call ssm.get_parameters(os.environ("db_password"))
upvoted 1 times
...
Dadasar
1 month, 3 weeks ago
Selected Answer: A
Secret manager é para essa finalidade
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago