Skip to content

All certifications

XK0-006 practice question on Automation and IaC, 2026-11-13

Archived question for 2026-11-13. Domain: Automation, Orchestration, and Scripting. Objective 4.1: Automation and IaC. Original SecLern question, written for practice.

A pipeline file has these jobs. ``` stages: - build - test - deploy deploy-job: stage: deploy script: - ./deploy.sh test-job: stage: test script: - make test build-job: stage: build script: - make ``` In which order do the jobs run, and what happens when test-job fails?

Show the explanation

The stages list sets the order, and a failed stage stops the later stages by default.

Each option

  • A (correct). Correct: The stages list sets the order, and a failed stage stops the later stages by default.
  • B. The order of job definitions does not decide execution. It would be right for no pipeline rule.
  • C. Jobs in different stages run in stage order. It would be right for jobs in one stage.
  • D. A failed job stops later stages by default. It would be right only with allow_failure set.

What this question tests

It maps to XK0-006 objective 4.1, Automation and IaC: Automation and infrastructure as code Related ideas: ci cd, stages.

The published topics under this objective, so you can check what you have covered:

  • Ansible playbooks
  • Puppet manifests
  • CI/CD and GitOps

More from the archive

Start a daily session

Several questions at a time, aimed at your gaps.