Interview Q&A · questions with model answers

GitHub Actions Fundamentals Interview Questions

Part of the study plan for: DevOps Engineer

Ordered by how often they're asked. Most-asked answers are free to read in full; members see every answer and can rate their confidence on each.

  1. Most asked How do you keep secrets safe in GitHub Actions, and why use OIDC to reach the cloud?

    Store secrets in repository, organisation or environment secrets (never in the YAML), give the GITHUB_TOKEN the least permissions it needs, and prefer OIDC federation to cloud providers: the…

  2. How do you speed up slow GitHub Actions workflows?

    Measure which jobs and steps are slow, then cache dependencies and Docker layers, split work into parallel jobs or a matrix, skip work that the change doesn't affect (path filters), cancel…

  3. How do you add approval gates to deployments in GitHub Actions?

    Create a production environment with required reviewers (and optionally a wait timer and a branch rule that only allows main), and target it from the deploy job with environment: production. The job…

  4. How do you run a matrix build, and how do you stop one failing combination cancelling the rest?

    Define a strategy.matrix with the dimensions to test (versions, operating systems); GitHub runs one job per combination. Set fail-fast: false so the other combinations finish when one fails, and use…

Was this page helpful?

Report a mistake