AWS SAP-C02 · Question 63 · Domain 3.2: Security Improvement
A company is using AWS CodePipeline for its CI/CD process. The pipeline deploys an application to an Amazon ECS cluster. The security team requires that every container image must be scanned for vulnerabilities before it is deployed. If critical vulnerabilities are found, the pipeline must fail automatically. How can the Architect implement this requirement?
A company is using AWS CodePipeline for its CI/CD process. The pipeline deploys an application to an Amazon ECS cluster. The security team requires that every container image must be scanned for vulnerabilities before it is deployed. If critical vulnerabilities are found, the pipeline must fail automatically. How can the Architect implement this requirement?
Answer options:
Configure Amazon ECR to scan on push. Add an AWS Step Functions state machine or a Lambda function to the pipeline to check the ECR scan results and fail the pipeline if critical vulnerabilities exist.
Enable AWS Security Hub integration with CodePipeline to automatically block deployments with vulnerabilities.
Use AWS CodeBuild to run an Amazon Inspector agent inside the container during the build phase.
Configure the ECS service to refuse deployment of images with critical vulnerabilities.
How to approach this question
Full Answer
Common mistakes
Practice the full AWS Solutions Architect Professional SAP-C02 Practice Exam 5
75 questions · hints · full answers · grading
Expert