CV0-004 Deployment Practice Question
A company is adopting a CI/CD pipeline using Jenkins to deploy a web application. The pipeline must include steps to compile code, run unit tests, package the application, deploy to a test environment, and then deploy to production. Which pipeline stage should be configured immediately after the build stage?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Test
In a typical CI/CD pipeline, after build (compile) comes test (e.g., unit tests) to validate the code before proceeding to deploy.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Verify
Why it's wrong here
Verify is not a discrete Jenkins stage; testing is expressed as a Test stage. It tempts because verification conceptually follows compilation, but the stem's next required activity is running unit tests, which the Test stage performs.
- ✓
Test
Why this is correct
Unit tests validate the compiled artefact before it is packaged or promoted, so the test stage must follow build. Running tests immediately after compilation catches defects earliest, satisfying the pipeline's requirement to verify code before deploying to the test environment.
- ✗
Deploy to production
Why it's wrong here
Deploying to production immediately after build skips unit testing, packaging and the test-environment deployment the pipeline requires. It is tempting because production deployment is the pipeline's ultimate goal, and a release stage would legitimately follow testing and staging in a mature pipeline — but here it must come last, not directly after build.
- ✗
Source
Why it's wrong here
Source is the pipeline entry point where Jenkins pulls code from version control, so it precedes compilation. It tempts as a genuine Jenkins stage, but placing it after build would re-fetch code rather than run the unit tests the stem requires next.
About these practice questions
Courseiva writes every CV0-004 question from scratch — 834 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This CV0-004 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CV0-004 exam.