
Answer-first summary for fast verification
Answer: By utilizing AWS Secrets Manager to store and retrieve credentials.
The correct answer is B. AWS Secrets Manager is specifically designed to help manage, retrieve, and automatically rotate credentials securely without hardcoding them into the application code. By using AWS Secrets Manager, you can easily rotate database credentials and retrieve them whenever needed, ensuring secure credential management. Other options like IAM roles, S3 buckets, and DynamoDB tables do not provide built-in functionality for automatic credential rotation and secure retrieval specifically for this purpose.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
How can a developer securely store and automatically rotate database credentials for an application running on Amazon EC2, without hardcoding them into the application code?
A
By using IAM roles with database access permissions attached to EC2 instances.
B
By utilizing AWS Secrets Manager to store and retrieve credentials.
C
By encrypting credentials in an S3 bucket and downloading them during EC2 instance launch.
D
By storing credentials in a DynamoDB table and updating them with a Lambda function triggered by CloudWatch Events.
No comments yet.