All Microsoft exams

Microsoft GH-200: GitHub Actions

What the GH-200 exam covers and what it costs, with a free 30-question practice test and an explanation for every answer.

At a glance
Level
Associate
Topic areas
4
Free practice questions
30
Full question bank
100 questions

What the GH-200 exam covers

The topic areas in our GH-200 question bank, with each one's share of the 100 practice questions.

GH-200 cost and format

Exam codeGH-200
CertificationGitHub Actions
VendorMicrosoft
LevelAssociate
StatusActive

Last checked October 22, 2026 against the official Microsoft exam page.

GH-200 sample questions

The first 5 questions from the free practice test. Open a question to see the answer and why it is right.

All 30 free questions
  1. Question 1Ecosystem and deployment

    A team wants to deploy a web app to Azure from a workflow using a service that has an official action. Which practice is most appropriate?

    1. AWrite a custom script that copies passwords and store them in a plain text file
    2. BDeploy by manually uploading files each time through the web portal
    3. CSkip authentication to save time so the deploy job runs faster
    4. DUse the official Azure login and deployment actions with OIDC credentials
    Show answer and explanation
    Correct answer: D

    Official Azure actions with OIDC give secure, maintained deployment with short-lived credentials. Custom password scripts, manual uploads and skipped authentication are weaker or unsafe.

  2. Question 2Security and secrets

    A workflow needs an API token for a deployment. The token must not appear in logs or in the workflow file. Which approach is correct?

    1. AStore it as an encrypted repository or environment secret and reference it through the secrets context
    2. BCommit it to a file named token.txt in the repository root and read it back with a cat command
    3. CPaste it into the workflow description field of the pull request template so everyone can see it
    4. DPrint it at the start of the job for debugging and echo it to the console log unredacted
    Show answer and explanation
    Correct answer: A

    Encrypted secrets referenced through the secrets context are masked in logs and kept out of source. Printing, committing and pasting expose the value.

  3. Question 3Automation and runners

    A workflow must run a build on a machine with a specific internal toolchain that GitHub-hosted runners do not provide. Which option should be used?

    1. AA GitHub-hosted runner that is renamed to match the internal toolchain labels in the workflow file
    2. BRunning the build on a developer laptop manually and uploading the final output
    3. CA self-hosted runner registered to the repository or organization with the required tools
    4. DRemoving the build step from the workflow so the job just checks out source code
    Show answer and explanation
    Correct answer: C

    Self-hosted runners let teams run jobs on their own machines with custom tools. Renaming a hosted runner changes nothing, manual laptop builds are not automation, and removing the step fails the requirement.

  4. Question 4Workflow fundamentals

    A team wants a GitHub Actions workflow to run tests on every push to any branch and on pull requests targeting main. Which trigger configuration is correct?

    1. Aon: workflow_call, so tests run when another workflow calls this file with inputs
    2. Bon: release published, so tests run after a version tag is pushed to remote
    3. Con: schedule with cron '*/5 * * * *', so tests run every five minutes on a timer
    4. Don: push for all branches and pull_request with branches set to main
    Show answer and explanation
    Correct answer: D

    The push trigger runs on pushes and the pull_request trigger with a branch filter runs for PRs targeting main. Schedule, workflow_call and release triggers do not match the requirement.

  5. Question 5Ecosystem and deployment

    A release must be deployed to production only after it has been tested in a staging environment, and the production job should show the deployment history. Which feature provides this?

    1. ANo deployment tracking, so release records exist in the CI console output
    2. BEnvironments with a deployment history and sequential jobs that depend on staging
    3. CA workflow that deploys both environments at the same moment without waiting for staging to pass
    4. DManual copying of files between servers using scp from a developer laptop with no audit record
    Show answer and explanation
    Correct answer: B

    Environments track deployment history and sequential jobs enforce order. Simultaneous deploys skip gating, manual copies are untracked, and no tracking removes visibility.

How to prepare for GH-200

  1. Read the official Microsoft outline first (exam page), so you know exactly what is in scope.
  2. Give the most time to Ecosystem and deployment and Security and secrets: together they make up 55% of the questions.
  3. Take the free 30-question practice test and note which topics you miss.
  4. Go back to the weak topics, then test again. A practice score shows where to study; it does not predict your exam result.

Full GH-200 question bank

All 100 questions with answers and explanations, as a PDF, an online practice exam, or both.

Full question bank
Coming to the store soon

The full 100-question bank for GH-200 is in final review. The free practice test is open now.

Start the free practice test

GH-200 FAQ