CI/CD interview questions — Hard
200 hard-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 hard level, interviewers are typically checking depth under pressure — edge cases, failure modes, performance characteristics, and the trade-offs you accepted. Work through these, then explain your answer out loud; the second part is what interviews actually test.
4 example questions
1. Regarding CI/CD, which of the following is a false statement?
- A. Continuous Integration merges code frequently and runs automated tests on every change.
- B. CI pipelines should run the full regression suite on every keystroke.correct
- C. Shift-left testing moves testing activities earlier in the development lifecycle.
- D. In GitHub Actions, workflows are YAML files stored under .github/workflows.
Why: The selected statement is false. The other options are accurate statements about CI/CD.
2. Identify the INCORRECT statement about CI/CD:
- A. In GitHub Actions, workflows are YAML files stored under .github/workflows.
- B. Ephemeral test environments can be spun up per pull request using containers.
- C. Artifacts uploaded in CI are deleted immediately when the job ends and can never be downloaded.correct
- D. Continuous Delivery keeps the main branch always deployable, with releases triggered manually.
Why: The selected statement is false. The other options are accurate statements about CI/CD.
3. Which of the following statements about CI/CD is FALSE?
- A. Shift-left means postponing all testing until just before release.correct
- B. In GitHub Actions, workflows are YAML files stored under .github/workflows.
- C. Shift-left testing moves testing activities earlier in the development lifecycle.
- D. Continuous Delivery keeps the main branch always deployable, with releases triggered manually.
Why: The selected statement is false. The other options are accurate statements about CI/CD.
4. Which statement about CI/CD is NOT correct?
- A. Shift-left means postponing all testing until just before release.correct
- B. Secrets in CI should be stored in the platform's secret manager, never hard-coded in pipeline files.
- C. Continuous Delivery keeps the main branch always deployable, with releases triggered manually.
- D. Running smoke tests on pull requests and full regression nightly is a common test-pipeline pattern.
Why: The selected statement is false. The other options are accurate statements about CI/CD.