CI/CD & DevOps for QA interview questions.
Questions on GitLab CI, Jenkins, GitHub Actions, Docker, test pipeline design, shift-left testing, and QA in DevOps workflows.
A test passes locally but fails in CI about one run in five. Walk me through what you check first, and why.
This single answer is scored on four dimensions: Technical accuracy · Coverage · Clarity · Best practices.
Free to start · 7-day trial on paid plans
How to approach ci/cd questions.
CI/CD rounds for QA engineers are pipeline-shape questions, not tool quizzes. Hiring managers want to know whether you have ever held a stuck deploy at 4pm on a Friday because a flaky integration test was blocking the merge queue, and whether you fixed it the right way or the fast way. Talk like someone who has been on call for the pipeline.
Frame your answer around stages and gates before you name a tool. A modern QA pipeline runs unit tests on every push, integration tests on every PR, end-to-end smoke tests on the merge queue, and full regression on a nightly cadence. Each stage has a different budget for runtime, a different failure cost, and a different audience for the failure signal. If you can explain that shape on a whiteboard, the specific tool (Jenkins, GitHub Actions, GitLab CI, CircleCI, Buildkite) becomes an implementation detail you fill in last.
GitLab CI questions follow the same shape. You define the pipeline in a .gitlab-ci.yml file, group jobs into stages with the stages keyword, and use rules to decide which jobs run on a given commit. Expect to explain how needs lets a job start before its whole stage finishes, and how the parallel keyword runs several copies of a test job at once. Answer with the pipeline design first, then the keywords that implement it.
Parallelisation is the question that separates candidates who have used CI from those who have built it. Be ready to explain how you shard a 90-minute Playwright suite across 8 workers and bring it back under 15 minutes, how you handle test files that allocate a database, and how you decide whether to share state across workers (faster, riskier) or isolate per worker (slower, safer). Name the actual primitives: Playwright projects, Cypress parallel groups, JUnit shard indexes, container affinity.
Shift-left is the philosophy question that often closes the round. The wrong answer is "we move tests earlier in the pipeline." The right answer talks about who owns the tests after the shift: developers writing component tests because QA built ergonomic helpers, product running smoke tests on staging because the QA team published a runbook, security scans gated on PR because the pipeline made them cheap. Shift-left without ownership transfer is just relabeling.
What hiring managers are listening for
- Pipeline shapeYou design stages by failure cost and runtime budget, not by tool feature lists.
- Parallelisation craftYou can shard a real suite and explain the state-isolation choices you made.
- Quality gatesYou know which checks block merge, which warn, and why those defaults are correct.
- Shift-left fluencyYou talk about ownership transfer, not just earlier execution.
Do not stop at "I wrote a Jenkinsfile that runs my tests." Senior interviewers want to know what happened the first time the suite went red on main. Did you have a quarantine lane, an auto-revert hook, a rollback playbook? If your CI story has no failure mode in it, it sounds like a demo, not production.
Need the vocabulary first? Browse all 22 DevOps & CI/CD terms in the QA glossary.
Showing 34 questions · 10 free answers remaining
CI (Continuous Integration): developers merge code frequently, automated builds and tests run on every merge. CD (Continuous Delivery/Deployment): code automatically progresses through stages to production. For QA: CI/CD means faster feedback (know within minutes if a change breaks something), consistent test execution (no "works on my machine"), and the ability to test every commit rather than a batch of changes. QA's role shifts from "gatekeeper" to "quality enabler", building test automation that runs in the pipeline.
Practice this question on its own pageTry a scored practice question, freeTypical stages: (1) Lint + unit tests (fast, fail early). (2) Build application. (3) Deploy to test environment. (4) Integration/API tests (parallel if possible). (5) E2E/UI tests (parallel shards). (6) Performance smoke test (optional). (7) Report results, upload artifacts (screenshots, videos). Key decisions: when to run (every PR, main only, nightly), parallelism (matrix strategy for browsers), and failure handling (block merge vs. warning). Cache dependencies between runs for speed.
Practice this question on its own pageTry a scored practice question, freeOptions by maturity: (1) Shared staging, simple but tests conflict with each other. (2) Ephemeral environments - spin up a fresh environment per PR (Vercel preview deployments, Docker Compose, Kubernetes namespaces). (3) Service virtualization - mock external dependencies. Best practice: ephemeral environments with database seeding, destroyed after pipeline completes. This gives isolation without maintaining permanent test environments. For external services, use sandboxes or mocks.
Practice this question on its own pageTry a scored practice question, freeDocker packages an application and its dependencies into a lightweight, portable container that runs consistently everywhere. For testing: (1) Consistent test environments, same container runs locally and in CI. (2) Dependency isolation - run a Postgres, Redis, or Elasticsearch container for tests without installing them. (3) Parallelism - spin up multiple isolated containers for parallel test execution. (4) Clean state - destroy and recreate containers for fresh test environments. Docker Compose orchestrates multi-container setups.
Practice this question on its own pageTry a scored practice question, freeStrategies: (1) Parallelism, shard tests across multiple CI runners (Playwright: `--shard=1/4`). (2) Selective testing - only run tests affected by changed files (using test impact analysis or path-based filtering). (3) Caching - cache node_modules and Docker layers between runs (not Playwright browsers: restoring that cache takes about as long as downloading, so install with `npx playwright install --with-deps`). (4) Fail fast - run smoke tests first, stop early on failure. (5) Tier tests - fast tests on every PR, full suite nightly. (6) Optimize test setup - API-based data seeding instead of UI-based, reuse auth state. Target: PR feedback in <10 minutes.
Practice this question on its own pageTry a scored practice question, freeShift-left means moving testing earlier in the development lifecycle, finding bugs when they're cheapest to fix. Implementation: (1) Pre-commit - linting, type checking, unit tests. (2) PR-level - automated test suite, code review with testability focus. (3) Design phase - QA reviews designs and writes test scenarios before development starts. (4) Requirements - QA participates in story grooming, identifies edge cases. (5) Developer testing - encourage developers to write tests, provide easy-to-use test infrastructure. The goal: bugs found in code review, not in production.
Practice this question on its own pageTry a scored practice question, freeReporting: use standard formats (JUnit XML, Allure) that CI tools can parse. Allure provides rich HTML reports with screenshots, steps, and history. Upload test artifacts (screenshots, videos, traces) as build artifacts. Notifications: Slack/Teams integration for failures, include test name, error message, and link to report. PR comments with test summary (GitHub Actions: dorny/test-reporter). Dashboard: Grafana for trend visualization - track test pass rate, duration, and flaky test rate over time.
Practice this question on its own pageTry a scored practice question, freeIaC defines infrastructure (servers, databases, networks) in version-controlled configuration files (Terraform, CloudFormation, Pulumi). For testing: (1) Reproducible environments, spin up identical test infrastructure on demand. (2) Environment parity - test environments match production configuration. (3) Self-service - QA can create/destroy environments without DevOps bottleneck. (4) Cost control - destroy environments when not in use. (5) Audit trail - all changes are reviewed and tracked in Git. Test environments should be defined in IaC alongside the application code.
Practice this question on its own pageTry a scored practice question, freeNever hardcode secrets in test code or config files. Use: (1) CI secret management, GitHub Secrets, Jenkins Credentials. (2) Environment variables - injected at runtime, not stored in code. (3) Secret managers - AWS Secrets Manager, HashiCorp Vault for dynamic secrets. (4) Test-specific credentials - separate from production, rotated regularly. (5) Mask secrets in logs - most CI tools auto-mask, but verify. Common mistake: committing .env files or screenshots containing tokens. Add .env to .gitignore and scan for secrets in pre-commit hooks.
Practice this question on its own pageTry a scored practice question, freeFeature flags allow toggling features without deployment (tools: LaunchDarkly, Unleash, or simple config). Testing implications: (1) Test matrix expands, each flag combination is a potential state. (2) Focus on critical combinations, not all permutations. (3) Test flag default state AND enabled state. (4) Test flag transitions - what happens when a flag is toggled in production? (5) Clean up old flags - untested dead code paths. (6) Use flags for canary releases - roll out to 5% of users, monitor, then expand. QA should be involved in flag rollout plans.
Practice this question on its own pageTry a scored practice question, freeBlue-green maintains two identical production environments. "Blue" serves live traffic while "green" gets the new release. After green passes validation, traffic switches to green. QA role: (1) Smoke test the green environment before switching. (2) Verify critical paths, login, core business flows. (3) Validate data compatibility - does the new version work with the existing database? (4) Test rollback - can you switch back to blue if issues arise? (5) Monitor after switch - compare error rates and performance between blue baseline and green.
Practice this question on its own pageTry a scored practice question, freeQuality gates are automated checkpoints that block promotion if criteria aren't met. Examples: (1) Code coverage threshold (e.g., new code must be >80% covered). (2) Zero critical/high security vulnerabilities (Snyk, SonarQube). (3) All tests pass (no test failures). (4) Performance budget met (Lighthouse score >90). (5) No flaky tests introduced. Implementation: configure CI to run checks and block merge/deploy on failure. Balance: too strict = developer friction, too loose = quality issues. Start strict on critical paths, lenient on experimental branches.
Practice this question on its own pageTry a scored practice question, freeMigrations are high-risk, test them before production. Strategy: (1) Run migrations against a production-schema clone (not empty DB). (2) Test forward migration AND rollback. (3) Verify data integrity after migration - row counts, checksums, sample data validation. (4) Test with production-scale data volume (migration that takes 1 second on dev data may take 30 minutes on production). (5) Zero-downtime migrations - verify the app works with both old and new schema simultaneously during rolling deployments. (6) Include migration in CI with a seeded database.
Practice this question on its own pageTry a scored practice question, freeGitOps treats Git as the single source of truth for infrastructure and application state, changes are made via PRs, applied by automated operators (ArgoCD, Flux). For testing: (1) Every environment change is a code change, so it's testable in CI. (2) Rollback is a git revert. (3) Environment drift is eliminated - if it's not in Git, it's not deployed. (4) Test configurations are versioned alongside code. QA benefit: you can reproduce any environment state by checking out that commit.
Practice this question on its own pageTry a scored practice question, freeEach microservice should be independently deployable. Test: (1) Deploy service A v2 while service B stays at v1, verify communication still works (contract tests catch this). (2) Verify backward-compatible API changes - don't break consumers. (3) Test service discovery - does the new version register and route correctly? (4) Test circuit breakers - what happens when a dependency is down? (5) Test data schema compatibility across versions. CI pipeline: each service has its own pipeline, with cross-service integration tests triggered on deploy to shared environments.
Practice this question on its own pageTry a scored practice question, freeChaos engineering deliberately injects failures to test resilience. CI integration: (1) Start with game days, manual experiments in staging. (2) Automate with tools (Chaos Monkey, Litmus, Gremlin) - kill pods, inject latency, simulate network partitions. (3) Define steady-state metrics - error rate, response time, throughput. (4) Run experiments and verify the system stays within acceptable bounds. (5) Graduate to production chaos (carefully, with kill switches). QA role: define the "blast radius," monitor impact, and validate self-healing. Start small - kill one instance and verify recovery.
Practice this question on its own pageTry a scored practice question, freeKey principles: (1) Only build and test what changed, use file path filters or tools like Nx/Turborepo to detect affected projects. (2) Shared CI steps for common operations (linting, type checking). (3) Parallel jobs per service for independent build/test. (4) Dependency-aware ordering: if service A depends on library B, test B first. (5) Caching: node_modules, build artifacts, Docker layers. (6) Selective deployment: only deploy changed services. Tools: GitHub Actions path filters, Nx affected commands, Bazel for large monorepos.
Practice this question on its own pageTry a scored practice question, freeTiers: (1) Local: Docker Compose for running dependencies locally. (2) CI: ephemeral environments spun up per PR, torn down after merge. (3) Staging: long-lived environment mirroring production for integration and manual testing. (4) Production: monitoring and synthetic tests only. Best practices: infrastructure as code (Terraform, Pulumi), database seeding scripts, environment parity (same OS, same database version), secrets management (Vault, AWS Secrets Manager). Avoid: shared environments where tests interfere with each other.
Practice this question on its own pageTry a scored practice question, freeCanary deployment routes a small percentage of traffic (1-5%) to the new version. Testing approach: (1) Automated health checks on the canary (error rate, latency, CPU). (2) Comparison metrics: canary vs baseline (old version). (3) Automatic rollback if canary metrics exceed thresholds. (4) Gradual promotion: 1% to 5% to 25% to 100% over hours/days. (5) Feature flag integration: canary + feature flags for fine-grained control. (6) QA smoke tests against the canary endpoint specifically. Tools: Kubernetes canary with Istio/Argo Rollouts, AWS CodeDeploy, Vercel preview deployments.
Practice this question on its own pageTry a scored practice question, freeLayers of security scanning: (1) Static Analysis (SAST): scan code for vulnerabilities (Semgrep, SonarQube, CodeQL). (2) Dependency scanning: check for known CVEs (npm audit, Dependabot, Snyk). (3) Secret detection: prevent committed secrets (TruffleHog, GitLeaks). (4) Container scanning: scan Docker images (Trivy, Snyk Container). (5) DAST: dynamic testing against running application (OWASP ZAP). Run SAST and dependency scanning on every PR (fast). Run DAST nightly (slow). Block merges on critical/high vulnerabilities.
Practice this question on its own pageTry a scored practice question, freeSteps: (1) Migrations versioned in code alongside application changes. (2) CI runs migrations against a test database before tests. (3) Validate rollback: every migration has an up and down path. (4) Zero-downtime migrations: use expand-and-contract pattern (add new column, deploy code that writes to both, migrate data, deploy code that reads from new, drop old). (5) Lock timeout protection: set statement_timeout to prevent long-running migrations from blocking production. (6) Test with production-scale data before deploying.
Practice this question on its own pageTry a scored practice question, freeGitOps uses Git as the single source of truth for infrastructure and deployments. Benefits for QA: (1) Full audit trail: every change is a git commit with who/what/when. (2) Easy rollback: revert a commit to roll back a deployment. (3) Reproducible environments: environment config is versioned. (4) PR-based workflows for infrastructure changes, same review process as code. (5) Self-healing: if someone manually changes something, GitOps reverts it to match git. Tools: ArgoCD, Flux for Kubernetes. QA benefit: test environment parity is guaranteed by code, not manual setup.
Practice this question on its own pageTry a scored practice question, freeTechniques: (1) Multi-stage builds: separate build and runtime stages. (2) Layer caching: order Dockerfile commands from least to most frequently changed (COPY package.json before COPY .). (3) .dockerignore: exclude node_modules, .git, test files from context. (4) BuildKit features: parallel stage execution, mount caches. (5) Use slim/alpine base images to reduce image size. (6) Pin exact versions for reproducibility. (7) CI-level caching: cache Docker layers between runs (GitHub Actions cache, registry-based cache). Typical improvement: 10x faster builds with proper caching.
Practice this question on its own pageTry a scored practice question, freeImplementation: (1) Feature flag service (LaunchDarkly, Unleash, or custom). (2) Wrap new features in flag checks. (3) Default flags to off, enable gradually (percentage rollout, user targeting). Testing: (4) Test both flag states (on and off) in CI. (5) Test flag combinations if flags interact. (6) Test flag evaluation performance (should be fast, cached locally). (7) Clean up old flags regularly, they accumulate and become tech debt. (8) Use flags for operational safety (kill switches for expensive features) and gradual rollouts.
Practice this question on its own pageTry a scored practice question, freePrinciples: (1) Never hardcode secrets in code or CI config. (2) Use CI platform secret management (GitHub Secrets, GitLab CI Variables). (3) Rotate secrets regularly and after team member departures. (4) Least privilege: each pipeline step only accesses secrets it needs. (5) Audit: log secret access (not values). (6) For production: use a vault (HashiCorp Vault, AWS Secrets Manager). (7) Test environments should use different secrets than production. (8) Secret scanning in CI to catch accidental commits (pre-commit hooks, CI checks).
Practice this question on its own pageTry a scored practice question, freeStrategy: (1) Blocking failures: critical test failures halt the pipeline, no deployment. (2) Non-blocking warnings: flaky tests or low-priority issues are reported but do not block. (3) Failure categorization: infrastructure failure (retry), flaky test (quarantine and investigate), real regression (block). (4) Fast feedback: run fastest tests first (unit, then integration, then e2e). (5) Failure notifications: Slack/email with failure details and links. (6) Automatic issue creation for persistent failures. Never just re-run and hope, investigate root cause.
Practice this question on its own pageTry a scored practice question, freeShift-left means moving testing earlier in the development lifecycle. Implementation: (1) Unit tests written alongside code (TDD). (2) Static analysis and linting on every save (IDE integration). (3) Pre-commit hooks for formatting and basic checks. (4) PR-level tests: unit and integration tests run before code review. (5) Design reviews that include testability considerations. (6) Contract tests catch integration issues before deployment. (7) Security scanning in the IDE (Snyk, SonarLint). The goal: find bugs when they are cheapest to fix, during development, not in production.
Practice this question on its own pageTry a scored practice question, freeBlue-green: maintain two identical production environments (blue and green). Process: (1) Blue is live, deploy new version to green. (2) Run smoke tests against green. (3) Switch load balancer to green. (4) Monitor for issues. (5) If problems, instantly switch back to blue. Benefits: zero-downtime deployment, instant rollback. Challenges: database state must be compatible with both versions (expand-contract migrations), session management during switch, cost of running two environments. Suitable for: critical applications where rollback speed matters.
Practice this question on its own pageTry a scored practice question, freeTesting layers: (1) Linting and validation: terraform validate, tflint. (2) Plan review: terraform plan output in PR comments. (3) Unit tests: test modules in isolation with mock providers (Terratest, terraform test). (4) Integration tests: apply to a test environment, verify resources exist, destroy. (5) Policy tests: OPA/Sentinel to enforce organizational rules (no public S3 buckets, required tags). (6) Drift detection: regularly plan against production to detect manual changes. (7) Cost estimation: infracost to predict cost impact of changes.
Practice this question on its own pageTry a scored practice question, freeObservability stack for test environments: (1) Logging: structured logs aggregated (ELK, Loki). (2) Metrics: application and infrastructure metrics (Prometheus, Datadog). (3) Tracing: distributed traces to debug test failures (Jaeger, Honeycomb). (4) Alerting: test environment health checks. (5) Dashboards: CI pipeline metrics, test pass rates, deployment frequency. Why it matters for QA: when a test fails, you need more than "assertion failed," you need the server logs, database state, and request traces to diagnose. Invest in observability for test environments like you would for production.
Practice this question on its own pageTry a scored practice question, freeMobile-specific challenges: app store review, device fragmentation, longer build times. Approach: (1) Build automation: Fastlane for iOS/Android builds, signing, and distribution. (2) Testing: unit tests in CI, UI tests on emulators/simulators, device farm for real devices (Firebase Test Lab, BrowserStack). (3) Distribution: internal testing via TestFlight (iOS) and internal tracks (Android). (4) Versioning: automated version bumps tied to git tags. (5) Code signing: securely manage certificates and provisioning profiles in CI. (6) Parallel builds: iOS and Android build simultaneously.
Practice this question on its own pageTry a scored practice question, freeRollback options: (1) Redeploy previous version: simplest, works if no database changes. (2) Feature flag disable: turn off the problematic feature without deploying. (3) Blue-green switch: instant traffic switch to previous environment. (4) Database rollback: reverse migration if the schema changed (risky, test thoroughly). (5) GitRevert + redeploy: revert the commit and run the full pipeline. Best practice: decide the rollback strategy before deploying, not during an incident. Automate rollback triggers based on error rate spikes or health check failures.
Practice this question on its own pageTry a scored practice question, freeDesign principles: (1) Independent pipelines per service: each service builds, tests, and deploys independently. (2) Shared pipeline templates for consistency. (3) Contract tests between services run in a dedicated stage. (4) Service mesh for traffic management during deployments. (5) Centralized deployment dashboard showing all service versions. (6) Automated integration tests in a shared staging environment. (7) Progressive delivery: canary per service. (8) Centralized secret management and config. Key: optimize for team autonomy while maintaining system-level quality gates.
Practice this question on its own pageTry a scored practice question, freeIn DevOps, QA shifts from gate-keeper to quality enabler: (1) Build test automation infrastructure that developers use. (2) Define quality criteria for CI pipelines. (3) Champion observability, help teams understand production behavior. (4) Shift-left: bring testing expertise into design and development phases. (5) Own end-to-end test suites that validate the full system. (6) Analyze production incidents for testing gaps. (7) Educate: teach developers to write better tests, help ops understand test requirements. QA does not disappear in DevOps, it becomes embedded in everything.
Practice this question on its own pageTry a scored practice question, freeStop reading answers. Start practicing them.
AssertHired's AI interviewer asks follow-up questions, scores your responses across 4 QA-specific dimensions, and gives you actionable feedback.
Answer a Free QuestionFree to start · 7-day trial on paid plans
More Question Categories
Explore questions across all QA interview topics.
Practice by Tool & Technology
Dive deeper with tool-specific interview questions.
Go deeper on CI/CD
Go beyond practice interviews - get the guides, drills, and frameworks that top QA engineers use.
Free QA career tools, no account needed
Instant and private, everything runs in your browser. Try them before you sign up.
QA Resume Checker
Instant 0-100 score on automation keywords, impact, and ATS formatting.
QA Cover Letter Generator
A tailored 3-paragraph QA cover letter from your resume and a job post.
QA Application Tracker
Drag-and-drop kanban to track every QA application from Applied to Offer.
QA Take-Home Test Generator
A realistic take-home assignment with a scenario, tasks, and a rubric.
QA LinkedIn Headline Generator
A recruiter-searchable headline, About section, and skills list.
QA STAR Story Builder
Structure a QA behavioral answer with the STAR method and instant checks.
QA Bug Report Generator
Build a clean, reproducible bug report for Markdown, Jira, or plain text.
Boundary Value Analysis Generator
Generate boundary value and equivalence partitioning test cases from a range.
QA Metrics Calculator
Calculate DRE, defect leakage, defect density, and pass rate with interpretation.
QA Test Plan Generator
Build a structured test plan (scope, approach, criteria, risks) in Markdown.
QA Salary Calculator
Estimate QA, SDET, and automation tester pay by level, market, and skills.
QA Offer Evaluator
See total comp, a counter range, and a ready-to-send negotiation message.
Ready to Ace Your QA Interview?
Stop reading answers, start practicing them live with AI that knows QA.
Join 700+ QA engineers already practicing with AssertHired.
A test passes locally but fails in CI about one run in five. Walk me through what you check first, and why.
This single answer is scored on four dimensions: Technical accuracy · Coverage · Clarity · Best practices.
Rather skip ahead? Create a free account