Courseiva
DeploymentmediumMultiple ChoiceObjective-mapped

CV0-004 Deployment Practice Question

A company uses GitLab CI for its CI/CD pipeline. The pipeline includes a 'deploy' job that runs only when a tag is pushed. Which GitLab CI keyword should be used to control job execution based on tags?

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

only

The 'only' keyword (or 'rules') in GitLab CI specifies conditions for job execution. 'only: tags' ensures the job runs only for tags.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • stage

    Why it's wrong here

    'stage' defines pipeline stage, not conditional execution.

  • except

    Why it's wrong here

    'except' excludes conditions, not includes.

  • only

    Why this is correct

    'only: tags' restricts job to tags.

  • needs

    Why it's wrong here

    'needs' defines job dependencies.

About these practice questions

Courseiva writes every CV0-004 question from scratch — 977 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 →

How Courseiva writes practice questions · Editorial policy

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.