QuestionQ69

VerifiedSecurity and Compliance

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

The company’s security team requires that all code undergo vulnerability scanning before deployment to production. If vulnerabilities are detected, the deployment must stop.

Which solution meets these requirements?

Explanation

Amazon CodeGuru Security performs static analysis to detect vulnerabilities in application code. A CodeBuild project can run the scan against the pipeline’s source artifact and fail its build when findings are detected. Because CodePipeline stops when a required CodeBuild action fails, placing that action before deployment prevents vulnerable code from reaching production. Amazon Inspector assesses deployed workloads, while Amazon DevOps Guru provides operational insights rather than source-code vulnerability scanning.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!