CI/CD interview questions — Medium
395 medium-level CI/CD questions from our Automation Testing bank, each with the correct answer and an explanation of why it is correct.
What this covers
CI/CD appears throughout Automation Testing interviews. At medium level, interviewers are typically checking that you have used it in practice: what you configured, what broke, and how you knew it worked. Work through these, then explain your answer out loud; the second part is what interviews actually test.
20 example questions
1. "Machine or container that executes pipeline jobs" — in CI/CD, this describes which of the following?
- A. Runner / agent.correct
- B. Canary release.
- C. Build artifact.
- D. Cron schedule trigger.
Why: runner / agent: Machine or container that executes pipeline jobs.
2. "A phase in the pipeline such as build, test, or deploy" — in CI/CD, this describes which of the following?
- A. Blue-green deployment.
- B. Pipeline stage.correct
- C. Parallel jobs.
- D. Build artifact.
Why: pipeline stage: A phase in the pipeline such as build, test, or deploy.
3. "Groovy-based pipeline-as-code definition for Jenkins" — in CI/CD, this describes which of the following?
- A. Runner / agent.
- B. Blue-green deployment.
- C. Parallel jobs.
- D. Jenkinsfile.correct
Why: Jenkinsfile: Groovy-based pipeline-as-code definition for Jenkins.
4. "Time-based trigger for nightly or periodic pipeline runs" — in CI/CD, this describes which of the following?
- A. Jenkinsfile.
- B. Canary release.
- C. Cron schedule trigger.correct
- D. Runner / agent.
Why: cron schedule trigger: Time-based trigger for nightly or periodic pipeline runs.
5. "Packaged output of a build stage consumed by later stages" — in CI/CD, this describes which of the following?
- A. Jenkinsfile.
- B. Build artifact.correct
- C. Blue-green deployment.
- D. On: pull_request.
Why: build artifact: Packaged output of a build stage consumed by later stages.
6. "Gradually routing a small percentage of traffic to a new version" — in CI/CD, this describes which of the following?
- A. On: pull_request.
- B. Jenkinsfile.
- C. Parallel jobs.
- D. Canary release.correct
Why: canary release: Gradually routing a small percentage of traffic to a new version.
7. "Release strategy switching traffic between two identical environments" — in CI/CD, this describes which of the following?
- A. Blue-green deployment.correct
- B. Code coverage gate.
- C. Parallel jobs.
- D. Canary release.
Why: blue-green deployment: Release strategy switching traffic between two identical environments.
8. Which of the following statements about CI/CD is TRUE?
- A. A matrix strategy can only vary one dimension, such as OS.
- B. Continuous Delivery keeps the main branch always deployable, with releases triggered manually.correct
- C. Continuous Deployment requires a manual approval before every production release.
- D. Artifacts uploaded in CI are deleted immediately when the job ends and can never be downloaded.
Why: CD (delivery) automates up to production, gated by a human decision.
9. Which statement correctly describes CI/CD?
- A. GitHub Actions workflows are written in XML files at the repository root.
- B. Shift-left means postponing all testing until just before release.
- C. A matrix strategy can only vary one dimension, such as OS.
- D. Running smoke tests on pull requests and full regression nightly is a common test-pipeline pattern.correct
Why: Fast PR feedback plus deep nightly coverage balances speed and depth.
10. Identify the accurate statement about CI/CD:
- A. Shift-left means postponing all testing until just before release.
- B. Caching dependencies in CI always slows the pipeline down.
- C. Continuous Deployment requires a manual approval before every production release.
- D. Test results and artifacts (reports, traces, screenshots) can be uploaded from CI for debugging.correct
Why: Artifacts persist evidence of failures beyond the ephemeral runner.
11. In CI/CD, which of the following is described as: "Independent jobs executing simultaneously to shorten pipeline time"?
- A. Runner / agent.
- B. Parallel jobs.correct
- C. On: pull_request.
- D. Cron schedule trigger.
Why: parallel jobs: Independent jobs executing simultaneously to shorten pipeline time.
12. Which CI/CD concept matches this description: "Packaged output of a build stage consumed by later stages"?
- A. Blue-green deployment.
- B. Parallel jobs.
- C. Build artifact.correct
- D. On: pull_request.
Why: build artifact: Packaged output of a build stage consumed by later stages.
13. In CI/CD, which of the following is described as: "Release strategy switching traffic between two identical environments"?
- A. Pipeline stage.
- B. Blue-green deployment.correct
- C. Parallel jobs.
- D. Jenkinsfile.
Why: blue-green deployment: Release strategy switching traffic between two identical environments.
14. In CI/CD, which of the following is described as: "GitHub Actions trigger running a workflow for PRs"?
- A. Parallel jobs.
- B. Build artifact.
- C. On: pull_request.correct
- D. Canary release.
Why: on: pull_request: GitHub Actions trigger running a workflow for PRs.
15. In the context of CI/CD, which of the following is a correct statement?
- A. A matrix strategy can only vary one dimension, such as OS.
- B. Test results and artifacts (reports, traces, screenshots) can be uploaded from CI for debugging.correct
- C. Shift-left means postponing all testing until just before release.
- D. CI pipelines should run the full regression suite on every keystroke.
Why: Artifacts persist evidence of failures beyond the ephemeral runner.
16. In CI/CD, which of the following is described as: "Threshold check failing the build when coverage is too low"?
- A. Code coverage gate.correct
- B. Runner / agent.
- C. Blue-green deployment.
- D. Cron schedule trigger.
Why: code coverage gate: Threshold check failing the build when coverage is too low.
17. Which CI/CD concept matches this description: "Threshold check failing the build when coverage is too low"?
- A. Code coverage gate.correct
- B. Blue-green deployment.
- C. Runner / agent.
- D. Parallel jobs.
Why: code coverage gate: Threshold check failing the build when coverage is too low.
18. In CI/CD, which of the following is described as: "Gradually routing a small percentage of traffic to a new version"?
- A. Cron schedule trigger.
- B. Canary release.correct
- C. Parallel jobs.
- D. Code coverage gate.
Why: canary release: Gradually routing a small percentage of traffic to a new version.
19. In CI/CD, which of the following is described as: "Machine or container that executes pipeline jobs"?
- A. Code coverage gate.
- B. Runner / agent.correct
- C. On: pull_request.
- D. Canary release.
Why: runner / agent: Machine or container that executes pipeline jobs.
20. In CI/CD, which of the following is described as: "Groovy-based pipeline-as-code definition for Jenkins"?
- A. Code coverage gate.
- B. Blue-green deployment.
- C. Jenkinsfile.correct
- D. Runner / agent.
Why: Jenkinsfile: Groovy-based pipeline-as-code definition for Jenkins.