AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 120

A large enterprise is deploying a web application on AWS. The application runs on Amazon EC2 instances behind an Application Load Balancer. The instances run in an Auto Scaling group across multiple Availability Zones. The application stores data in an Amazon RDS for Oracle DB instance and Amazon DynamoDB. There are separate environments for development, testing, and production.

What is the MOST secure and flexible way to obtain password credentials during deployment?

Answer options

Correct answer: B

Explanation

Option B is correct because using an EC2 IAM role allows secure and temporary access to AWS services, and retrieving database credentials from AWS Secrets Manager provides robust security and management features. The other options either use less secure methods, like plaintext parameters or insecure storage methods for credentials, which are not recommended for production environments.