AWS Certified Developer – Associate (DVA-C02) — Question 214

A company has an existing application that has hardcoded database credentials. A developer needs to modify the existing application. The application is deployed in two AWS Regions with an active-passive failover configuration to meet company’s disaster recovery strategy.

The developer needs a solution to store the credentials outside the code. The solution must comply with the company’s disaster recovery strategy.

Which solution will meet these requirements in the MOST secure way?

Answer options

Correct answer: A

Explanation

Option A is the most secure method as AWS Secrets Manager is designed for managing sensitive information and allows for automated secret replication across regions, ensuring compliance with disaster recovery strategies. Option B, while also secure, is not as specialized for secret management. Options C and D use less secure methods by storing credentials in config files, which can expose sensitive data if not properly secured.