You are refactoring a Jenkins CI/CD pipeline for a container-based application that currently runs the stages checkout → build → unit_test → package → deploy. The security team asks you to adopt a shift-left DevSecOps approach that detects vulnerable open-source dependencies and unsafe container images as early in the workflow as possible while providing rapid feedback to developers and preventing risky artifacts from progressing further in the pipeline. Where should you add automated Software Composition Analysis (SCA) and container-image vulnerability-scanning jobs to best satisfy this requirement?
Run vulnerability scans only in a separate nightly pipeline that reviews artifacts already pushed to the registry.
Perform the scans in the deploy stage so images are assessed just before they go to production.
Insert SCA and image-scan jobs directly after the build stage of every commit-triggered pipeline, blocking the pipeline if high-severity issues are found.
Rely on a post-production monitoring tool that periodically scans running containers for vulnerabilities.
Shift-left testing means moving security and quality checks to the earliest practical point in the software-delivery life-cycle. Adding SCA and image-scanning tasks immediately after the build (or as part of the build stage itself) causes every commit-triggered pipeline to fail fast whenever critical vulnerabilities are found, giving developers near-instant feedback and ensuring that unsafe artifacts never reach later packaging or deployment stages. Running scans in nightly jobs, during deployment, or after production release still leaves a window where vulnerable code can be packaged or even deployed, which contradicts the goal of catching issues "to the left" of the pipeline.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is shift-left testing in DevSecOps?
Open an interactive chat with Bash
Why is Software Composition Analysis (SCA) important for security?
Open an interactive chat with Bash
How do container-image vulnerability scans work?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
Automation, Orchestration, and Scripting
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .