Jenkins — Level by Level›Level 1 · Cheat sheet & self-check

Level 1 — Foundations · wrap-up

Cheat sheet & self-check

9 questions across 3 lessons. Each answer links back to the lesson it came from.

Pick an answer to see if you got it, and why.

  1. Q1. Why should the controller's built-in node have 0 executors in production?

    Show answer

    B. The controller holds every secret and job definition. Keeping builds off it is both a security and a stability measure.

    From lesson 01 · Jenkins architecture and installation
  2. Q2. What lives in JENKINS_HOME?

    Show answer

    B. JENKINS_HOME is the whole state of the controller, which is why it needs backups and careful access control.

    From lesson 01 · Jenkins architecture and installation
  3. Q3. What is an executor?

    Show answer

    B. A node with 4 executors can run 4 builds concurrently. Agents on Kubernetes typically have one executor per pod.

    From lesson 01 · Jenkins architecture and installation
  4. Q4. Why use single quotes in sh steps that reference secrets, e.g. sh 'echo $TOKEN'?

    Show answer

    B. Groovy string interpolation of secrets is a classic leak (Jenkins even warns about it). Let the shell expand the variable.

    From lesson 02 · Declarative pipelines
  5. Q5. Where should a JUnit report be published so it's recorded even when tests fail?

    Show answer

    B. Steps stop at the first failure; post always runs, so reports are captured for failed builds too.

    From lesson 02 · Declarative pipelines
  6. Q6. What does when { branch 'main' } do in a multibranch pipeline?

    Show answer

    B. Stages like 'publish' or 'deploy' run only for main (or tags), while every branch and PR still builds and tests.

    From lesson 02 · Declarative pipelines
  7. Q7. Why avoid mounting the host's Docker socket into build agents?

    Show answer

    B. Rootless builders (BuildKit rootless, Buildah) build images without host-level privileges, which is essential on shared Kubernetes nodes.

    From lesson 03 · Build, test and publish images
  8. Q8. Which image tag is best for tracing a running container back to its source?

    Show answer

    B. A commit SHA tag points to the exact source; the digest guarantees the exact bytes. 'latest' tells you nothing.

    From lesson 03 · Build, test and publish images
  9. Q9. In a GitOps setup, what's the last step of the Jenkins pipeline?

    Show answer

    B. CI builds and publishes; deployment is pulled by Argo CD or Flux from Git, so CI doesn't need cluster credentials.

    From lesson 03 · Build, test and publish images