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

A company stores its Python-based application code in AWS CodeCommit. The company uses AWS CodePipeline to deploy the application. The CodeCommit repository and the CodePipeline pipeline are deployed to the same AWS account.

The company's security team requires all code to be scanned for vulnerabilities before the code is deployed to production. If any vulnerabilities are found, the deployment must stop.

Which solution will meet these requirements?

Answer options

Correct answer: A

Explanation

The correct answer is A because it specifically uses Amazon CodeGuru Security to scan the code for vulnerabilities and is configured to stop the deployment if any vulnerabilities are found. Option B, while also using a scanning service, relies on Amazon Inspector, which does not directly integrate with CodePipeline in this manner. Options C and D incorrectly involve Amazon DevOps Guru, which is not designed for code vulnerability scanning, thus failing to meet the requirement of halting deployment on vulnerability detection.