Courseiva
Deployment →easyMultiple Choice

CV0-004 Deployment Practice Question

A cloud architect is designing a deployment pipeline using GitHub Actions. They want to automatically run tests on every push to the main branch. Which GitHub Actions component defines the automation workflow?

⚠ Common exam trap

CV0-004 often tests the confusion between the workflow (top-level YAML) and its sub-components (job, step, action); candidates must identify the workflow as the automation definition.

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

✓

Workflow

A GitHub Actions workflow is the top-level YAML file (in .github/workflows) that defines when automation runs and what jobs it contains. It is the component that binds triggers (like push to main) to jobs and steps, so it is the correct answer for 'defines the automation workflow.'

Answer analysis

Option-by-option breakdown

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

  • ✗

    Job

    Why it's wrong here

    A job is a set of steps executing on the same runner, but it does not itself define when automation triggers; the workflow file declares the on: push event and contains jobs. Jobs would be the right unit when grouping steps that must share a runner or run in sequence within an already-triggered workflow.

  • ✗

    Step

    Why it's wrong here

    A step is a single task within a job, such as running one shell command or action, and cannot declare the push trigger or orchestrate multiple jobs. Steps are the correct component when you need to sequence individual commands inside a job that a workflow has already started.

  • ✗

    Action

    Why it's wrong here

    An action is a reusable unit of code invoked by a step, not the container that declares triggers, jobs and their ordering. Actions are the right choice when packaging logic for reuse across workflows, such as a shared test-runner action called by many pipelines.

  • ✓

    Workflow

    Why this is correct

    A workflow is the YAML-defined automation unit in GitHub Actions, containing the triggers and jobs that run. Defining it with an on: push trigger scoped to the main branch executes the test jobs automatically on every push, meeting the stated requirement.

About these practice questions

This CV0-004 question is part of Courseiva's 834-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official CompTIA exam blueprint

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.