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
- The full regression takes 60 minutes and PRs are waiting. How do you split the runs? Middle
- What feedback time should you aim for with the required checks on a pull request? Junior
- The PR pipeline takes 40 minutes: lint → unit → build → e2e one after another. What do you change first? Middle
- Why are lint and unit tests placed before e2e in a pipeline? Junior
- A quarantined test fails unpredictably. Should it block merge and what do you do with it? Middle
- Which CI retry policy is the most sensible for a Playwright suite? Senior
- In a matrix of 4 e2e shards one job failed because of a runner network glitch. What is the cheapest fix? Middle
- 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
- What is the difference between a workflow, a job and a step in GitHub Actions? Junior
- The schedule has cron "0 2 * * *". At what Kyiv time will the run start? Middle
- What does actions/setup-node cache with the cache: npm option? Middle
- How do you speed up installing Playwright browsers in GitHub Actions? Middle
- 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/
- How does if: always() differ from if: ${{ !cancelled() }} for the report upload step? Middle
- What does this concurrency block do in a workflow? Middle
concurrency:
group: e2e-${{ github.ref }}
cancel-in-progress: true
- One of four shards in a matrix failed. What happens to the rest by default? Middle
strategy:
matrix:
shard: [1, 2, 3, 4]
- API tests in GitHub Actions need Postgres. What is the simplest reliable way? Middle
- 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
- Why must the mcr.microsoft.com/playwright image tag match the @playwright/test version? Middle
- Visual tests pass in CI but fail for a developer on macOS. How does Docker solve this? Middle
- In docker compose the test container starts before the app and gets ECONNREFUSED. How do you fix it? Middle
- Chromium in Docker crashes on heavy pages ("Target crashed"). What is the typical cause and fix? Middle
- Why is it better in CI to start a separate empty DB for every run rather than a shared stage database? Middle
- How is an image different from a container? Junior
- What does -p 8080:80 mean in docker run? Junior
- The PostgreSQL container was deleted, and all the test data vanished. How do you avoid that? Middle
- How is a Dockerfile different from docker-compose.yml? Junior
- How do you see what the application in a container has printed? Junior
- How do you run a command inside a running container, for example to open psql? Junior
- In docker compose there are the services app and db. How should app reach the database? Middle
- Why is the
latest tag a poor fit for a test environment? Junior - 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
- Why is a JUnit XML usually generated in CI when an HTML report already exists? Junior
- The artifact quota runs out quickly: gigabytes of traces and videos. What do you do? Middle
- How do you build a single HTML report from four shards in GitHub Actions? Middle
- The team complains that downloading and unpacking the HTML report artifact is inconvenient. What do you propose? Middle
- How do you show a short test summary right on the run page in GitHub Actions? Middle
- What does the flaky rate show and how is it calculated? Middle
- After the nightly run 30 tests are red. How do you sort it out quickly? Senior
- 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