QA Interview Hub · Knowledge base · Quizzes · Українська

All topics

CI/CD interview questions

40 questions on CI/CD, from the basics to the hard ones. Answers and explanations are in the quiz and the knowledge base.

By level: Junior QA interview questions · Middle QA interview questions · Senior QA interview questions

Pipeline and quality gates

  1. The full regression takes 60 minutes and PRs are waiting. How do you split the runs? Middle
  2. What feedback time should you aim for with the required checks on a pull request? Junior
  3. The PR pipeline takes 40 minutes: lint → unit → build → e2e one after another. What do you change first? Middle
  4. Why are lint and unit tests placed before e2e in a pipeline? Junior
  5. A quarantined test fails unpredictably. Should it block merge and what do you do with it? Middle
  6. Which CI retry policy is the most sensible for a Playwright suite? Senior
  7. In a matrix of 4 e2e shards one job failed because of a runner network glitch. What is the cheapest fix? Middle
  8. In a monorepo a PR changes one service, yet CI runs the tests of all of them. What do you do? Senior

Take the quiz for this chapter · Read the explanation in the knowledge base

GitHub Actions for a test framework

  1. What is the difference between a workflow, a job and a step in GitHub Actions? Junior
  2. The schedule has cron "0 2 * * *". At what Kyiv time will the run start? Middle
  3. What does actions/setup-node cache with the cache: npm option? Middle
  4. How do you speed up installing Playwright browsers in GitHub Actions? Middle
  5. The tests fail, but the playwright-report artifact does not appear. Why? Middle
    - run: npx playwright test
    - uses: actions/upload-artifact@v7
      with:
        name: playwright-report
        path: playwright-report/
  6. How does if: always() differ from if: ${{ !cancelled() }} for the report upload step? Middle
  7. What does this concurrency block do in a workflow? Middle
    concurrency:
      group: e2e-${{ github.ref }}
      cancel-in-progress: true
  8. One of four shards in a matrix failed. What happens to the rest by default? Middle
    strategy:
      matrix:
        shard: [1, 2, 3, 4]
  9. API tests in GitHub Actions need Postgres. What is the simplest reliable way? Middle
  10. An e2e run with the API_TOKEN secret works in PRs from teammates but fails in PRs from a fork. Why? Senior

Take the quiz for this chapter · Read the explanation in the knowledge base

Docker for automated tests

  1. Why must the mcr.microsoft.com/playwright image tag match the @playwright/test version? Middle
  2. Visual tests pass in CI but fail for a developer on macOS. How does Docker solve this? Middle
  3. In docker compose the test container starts before the app and gets ECONNREFUSED. How do you fix it? Middle
  4. Chromium in Docker crashes on heavy pages ("Target crashed"). What is the typical cause and fix? Middle
  5. Why is it better in CI to start a separate empty DB for every run rather than a shared stage database? Middle
  6. How is an image different from a container? Junior
  7. What does -p 8080:80 mean in docker run? Junior
  8. The PostgreSQL container was deleted, and all the test data vanished. How do you avoid that? Middle
  9. How is a Dockerfile different from docker-compose.yml? Junior
  10. How do you see what the application in a container has printed? Junior
  11. How do you run a command inside a running container, for example to open psql? Junior
  12. In docker compose there are the services app and db. How should app reach the database? Middle
  13. Why is the latest tag a poor fit for a test environment? Junior
  14. What does depends_on do in compose and what does it not guarantee? Middle

Take the quiz for this chapter · Read the explanation in the knowledge base

CI reports, artifacts and metrics

  1. Why is a JUnit XML usually generated in CI when an HTML report already exists? Junior
  2. The artifact quota runs out quickly: gigabytes of traces and videos. What do you do? Middle
  3. How do you build a single HTML report from four shards in GitHub Actions? Middle
  4. The team complains that downloading and unpacking the HTML report artifact is inconvenient. What do you propose? Middle
  5. How do you show a short test summary right on the run page in GitHub Actions? Middle
  6. What does the flaky rate show and how is it calculated? Middle
  7. After the nightly run 30 tests are red. How do you sort it out quickly? Senior
  8. Which artifact helps most to find out why a UI test failed in CI? Junior

Take the quiz for this chapter · Read the explanation in the knowledge base