AWS Certified Developer Associate DVA-C02 Practice Question
A developer needs to ensure that the credentials used by a serverless function to connect to a database are stored securely and are not exposed in plain text. What is the recommended method for managing the credentials to maximize security?
Place the encrypted credentials in a cloud storage service bucket and retrieve them via the serverless function.
Hardcode the credentials directly into the code base that is part of the serverless function.
Leverage a secrets manager to handle the credentials and retrieve them dynamically within the serverless function.
Encrypt the credentials manually and include them as part of the serverless function's environment variables.