CI/CD interview questions for QA

// 38 QUESTIONS Β· UPDATED MAY 2026

CI/CD interview questions for QA engineers covering pipeline design, parallelisation, flaky test detection, test data management, and environment strategy.

Level

Showing 38 of 38 questions

  1. What is a flaky test and how do you handle it in CI?Junior

    A flaky test passes and fails on the same code without changes. Quarantine it (don't auto-retry), mark it owned, fix the root cause withi…

  2. How do you parallelise your test suite to keep CI runs under 10 minutes?Mid

    Shard tests across multiple runners by historical duration, run unit tests with the test runner's built-in workers, and parallelise E2E b…

  3. What is CI/CD and where does QA fit?Junior

    CI is automated build + test on every commit to catch breakage early. CD is automated deployment to environments after passing checks. QA…

  4. What's the difference between continuous integration and continuous deployment?Junior

    CI integrates code frequently, automatically building and testing every change. Continuous *delivery* takes integrated code and prepares…

  5. What is a build pipeline?Junior

    A sequence of automated stages β€” typically checkout, install, lint, build, test, package, deploy β€” triggered by a commit, schedule, or ma…

  6. How would you decide which test suites run on every commit versus nightly?Mid

    Per-commit: fast (under 10 min), high-signal β€” unit, fast integration, lint, smoke E2E on critical paths. Nightly: slow or broad β€” full E…

  7. How do you handle test data isolation when tests run in parallel?Mid

    Generate unique data per test (UUIDs in usernames, emails, IDs), use per-worker databases or schemas, transactional rollback for unit/int…

  8. What's the difference between blue-green and canary deployments from a testing perspective?Mid

    Blue-green flips 100% of traffic at once after smoke tests pass on green β€” easy rollback, but if smoke missed a bug, everyone hits it. Ca…

  9. How do you secure secrets (API keys, credentials) in a CI pipeline running QA tests?Mid

    Use the CI provider's secret store (GitHub Secrets, GitLab CI/CD variables, HashiCorp Vault) β€” never commit secrets, never echo them in l…

  10. How do you set up Cypress (or Playwright) in GitHub Actions with reporting?Mid

    Use the official action (cypress-io/github-action or installed Playwright), cache npm and browser binaries, run with sharding, upload HTM…

  11. What is a quality gate and what should it block on?Mid

    A quality gate is a CI step that fails the build (or blocks merge/deploy) on objective criteria. Block on: failing tests, test pass rate…

  12. How do you cache dependencies and Docker layers to speed up CI?Mid

    Hash lockfiles for cache keys (package-lock.json, poetry.lock, pom.xml). Use the CI provider's cache action with restore-keys for partial…

  13. How would you design a test automation strategy that doesn't slow down developer velocity?Senior

    Tier the suite (smoke on PR, full on merge, nightly soak), invest in parallelism and infra, kill flakes ruthlessly, and treat test runtim…

  14. How do you balance fast feedback (PR-time tests) with comprehensive coverage (nightly tests)?Senior

    PR-time runs the minimum that catches ~95% of regressions β€” unit, fast integration, smoke E2E on critical paths. Nightly runs the full su…

  15. How would you handle environments (dev/staging/prod) for different test suite tiers?Senior

    Unit/integration runs in CI runners β€” no env. PR-time E2E hits a per-PR ephemeral env or a shared dev. Nightly E2E hits staging β€” closer…

  16. How do you debug a CI pipeline that passes locally but fails in CI?Senior

    Compare environments β€” Node/Python version, OS, env vars, file system case-sensitivity, parallel workers, network egress, time zone, loca…

  17. What's your approach to making the CI pipeline fail loudly without becoming noisy?Senior

    Page only on real failures (no flaky retries that mask intermittent breakage), route notifications by ownership, summarise the failure ca…

  18. How would you implement zero-downtime testing during a production deployment?Senior

    Smoke tests against the new version in a canary slice, synthetic monitoring for SLO-critical paths, and progressive rollout (1%β†’10%β†’100%)…

  19. How would you structure a monorepo's CI to only test changed packages?Mid

    Compute the affected set from the diff against the base branch β€” Nx, Turborepo, and Bazel all expose a 'what's affected' command. Run tes…

  20. How would you measure ROI on QA's investment in CI/CD infrastructure?Lead

    Quantify: bug-escape rate (fewer prod bugs β‰ˆ saved incident response and customer churn), dev cycle time (faster pipelines = more PRs/wee…

  21. What is a smoke test and when do you run it in a CI/CD pipeline?Junior

    A smoke test is a small, fast suite of critical-path checks that confirms a build is stable enough for deeper testing. Run it immediately…

  22. What does 'shift-left testing' mean in a CI/CD context?Junior

    Shift-left means moving testing earlier in the delivery cycle β€” into development and PR stages β€” so defects are caught when they are chea…

  23. What is the difference between a pipeline stage, a job, and a step in CI?Junior

    A stage is a logical phase of the pipeline (build, test, deploy). A job is a unit of work that runs on an agent within a stage. A step is…

  24. How do you run post-deployment smoke tests as part of a deployment pipeline?Mid

    Add a smoke job after the deploy step that hits the live environment's real URLs, verifies critical flows, and reports pass/fail back to…

  25. What are ephemeral test environments and why are they valuable?Mid

    Ephemeral environments are short-lived, on-demand environments spun up for a specific PR or test run and torn down automatically after. T…

  26. How do you manage test sign-off during environment promotion from dev to staging to production?Mid

    Each promotion gate has a defined set of tests that must pass before the artifact advances. The same versioned artifact moves through env…

  27. How do you containerise a Playwright or Selenium test suite for consistent CI execution?Mid

    Package the test suite into a Docker image that includes the test runner, browser binaries, and all dependencies. Run the container in CI…

  28. How do you capture and publish test reports, screenshots, and video artifacts in CI?Mid

    Configure your test runner to write reports and media to a named directory, then use your CI platform's artifact upload step to persist t…

  29. How do you detect flaky tests in CI at scale and manage a quarantine process?Mid

    Track each test's pass/fail history across runs. Mark a test flaky when it fails then passes on the same commit without a code change. Qu…

  30. How do you write a GitHub Actions workflow for running automated tests on every pull request?Mid

    Create a .github/workflows/test.yml that triggers on pull_request, checks out the code, caches dependencies, runs your test command, and…

  31. How do you include performance tests in a CI pipeline without blocking fast feedback?Mid

    Run a fast performance smoke (low VU count, 60–90 seconds) on every PR to catch regressions. Reserve full load tests for a dedicated nigh…

  32. How would you design a rollback strategy and what automated tests support it?Senior

    A rollback strategy defines how to revert to the last known-good state when a deployment goes bad. QA's role is to write post-deploy smok…

  33. How do you integrate monitoring and observability into your release pipeline?Senior

    Emit deployment events to your observability stack so every deploy appears as a marker in dashboards. Then add automated post-deploy moni…

  34. How would you implement contract testing between microservices in a CI pipeline?Senior

    Use a consumer-driven contract tool such as Pact. Consumers publish contracts to a Pact Broker when their tests run; providers verify aga…

  35. How does trunk-based development change your CI/CD testing strategy?Senior

    Trunk-based development means all engineers commit to main on short-lived branches merged within a day. This requires the commit-level pi…

  36. How do you build progressive delivery pipelines with automated quality gates?Senior

    Progressive delivery incrementally shifts traffic to a new release (1% β†’ 10% β†’ 100%) and uses automated observability checks at each incr…

  37. How do you test database schema migrations in a CI pipeline without risking production data?Senior

    Run migrations against a schema-identical ephemeral database in CI. Test forward migration, rollback migration, and idempotency. Use a mi…

  38. How do you prioritise CI/CD test infrastructure work against feature delivery requests from product and engineering?Lead

    Frame CI/CD investment in terms of developer velocity metrics β€” cycle time, mean time to recovery, engineer-hours lost to flaky tests and…