A DevOps team is adopting a new CI/CD pipeline to accelerate their release schedule. They have consistently found that discovering and fixing software defects during the final quality assurance (QA) phase is costly and time-consuming. To improve efficiency, the team decides to integrate automated code analysis and unit testing to run every time a developer commits new code to the central repository.
Which of the following concepts BEST describes this new approach?
The correct answer is shift-left testing. Shift-left testing is the practice of moving testing activities earlier in the software development lifecycle. By integrating automated unit tests and code analysis into the commit stage of the CI/CD pipeline, the team is shifting the testing phase to the left (earlier in the timeline). This allows for earlier detection of defects, reducing the cost and effort required for remediation.
DevSecOps is incorrect because it focuses on integrating security into every stage of the DevOps lifecycle. While shift-left testing can be part of a DevSecOps strategy, the scenario describes a broader quality initiative, not one exclusively about security.
A canary deployment is a release strategy used to test new software on a small percentage of users in a production environment. This is a shift-right activity that occurs near the end of the development cycle, not the beginning.
GitOps is a methodology for continuous deployment that uses a Git repository as the single source of truth for infrastructure and application configuration. It is a deployment paradigm, not a testing strategy concerned with when tests are performed.
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?
Open an interactive chat with Bash
How does shift-left testing differ from DevSecOps?
Open an interactive chat with Bash
Why is fixing defects earlier less costly?
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...
IT & Cybersecurity Package Join Premium for Full Access