AWS Certified DevOps Engineer – Professional — Question 176

A company needs to scan code changes for security issues before deployment and must prevent noncompliant code from being deployed. The company uses an AWS CodePipeline pipeline that starts when code changes occur. The code changes occur many times each day.

The company's security team supports a third-party application for code scans and has provided command-line integration steps to submit code scans. The code scan step requires a user name and password.

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

Answer options

Correct answer: B

Explanation

Option B is the most secure solution because AWS Secrets Manager is designed for securely storing sensitive information such as passwords, making it easy to manage access. The other options, while functional, either expose credentials in an environment variable (A), use a less secure storage method (C), or rely on S3 with policies that may still expose the data (D), which is not as secure as using Secrets Manager.