A company runs container workloads on AWS App Runner and stores container images in Amazon ECR. The DevOps engineer must continuously monitor the ECR repository and automatically produce a new container image when an OS or language-package vulnerability is detected. Which solution satisfies this requirement?
Choose an answer
Tap an option to check your answer.
Correct answer: Use EC2 Image Builder to create a container image pipeline with Amazon ECR as the target repository. Enable enhanced scanning on the ECR repository. Create an Amazon EventBridge rule to capture Amazon Inspector findings and use that event to trigger the Image Builder pipeline and re-upload the rebuilt image to the repository..
Why this is the answer
The correct solution leverages EC2 Image Builder for automated image creation and Amazon Inspector for vulnerability detection. Enabling enhanced scanning on ECR with Inspector automatically identifies OS and language-package vulnerabilities. An EventBridge rule then captures these Inspector findings, triggering the Image Builder pipeline to rebuild the image with updated components, addressing the detected vulnerabilities. The rebuilt image is pushed back to ECR, ensuring continuous remediation. Incorrect options: GuardDuty Malware Protection focuses on runtime threats, not static image vulnerabilities, and wouldn't trigger a rebuild for OS/language package issues. Basic ECR scanning is less comprehensive than enhanced scanning (Inspector) and triggering on ECR image action events doesn't address vulnerability detection as the primary trigger. AWS Systems Manager Compliance scans EC2 instances (managed nodes), not container images in ECR, making it unsuitable for detecting vulnerabilities within the container image itself.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed