Hard1 markMultiple Choice
Domain 3.2: Security ImprovementCI/CDSecurityECRDevSecOps

AWS SAP-C02 · Question 72 · Domain 3.2: Security Improvement

A company is using AWS CodePipeline for CI/CD. The pipeline deploys an application to an Amazon EKS cluster. The security team wants to ensure that container images are scanned for vulnerabilities before they are deployed. If a critical vulnerability is found, the pipeline must stop. What is the MOST automated way to implement this?

Answer options:

A.

Use Amazon Inspector to scan the EKS worker nodes.

B.

Use Amazon ECR image scanning. Configure an EventBridge rule to trigger a Lambda function that fails the CodePipeline stage if critical vulnerabilities are found.

C.

Add a manual approval stage in CodePipeline and have the security team manually check the ECR scan results.

D.

Use AWS Shield to block deployments of vulnerable images.

How to approach this question

Combine ECR scanning with EventBridge/Lambda for automated pipeline control.

Full Answer

B.Use Amazon ECR image scanning. Configure an EventBridge rule to trigger a Lambda function that fails the CodePipeline stage if critical vulnerabilities are found.✓ Correct
Use Amazon ECR image scanning. Configure an EventBridge rule to trigger a Lambda function that fails the CodePipeline stage if critical vulnerabilities are found.
Amazon Elastic Container Registry (ECR) supports image scanning on push. When a scan completes, it emits an event to Amazon EventBridge. A Lambda function can be triggered by this event to check the severity of the findings and use the CodePipeline API to fail the deployment stage if critical vulnerabilities exist.

Common mistakes

Relying on manual approvals instead of automated event-driven checks.

Practice the full AWS Solutions Architect Professional SAP-C02 Practice Exam 4

75 questions · hints · full answers · grading

More questions from this exam