Limited-Time Offer: Enjoy 50% Savings! - Ends In 0d 00h 00m 00s Coupon code: 50OFF
Free Exam Questions

GH-200 Exam Questions & Answers

GitHub Actions Exam  •  Microsoft

100 Questions 120 min Updated Sep 2026 99% Pass Rate
Get Full Access

100% money-back guarantee

Sample GH-200 Questions

Practice with real exam-style questions, each with the verified correct answer and explanation.

Q1 MultipleChoice

What can be used to set a failed status of an action from its code?

Correct Answer: D
Explanation:

A non-zero exit code is used to set the status of an action to 'failed' in GitHub Actions. When the action's script or code exits with a non-zero status, it indicates failure, and GitHub will mark the action as failed.

Q2 MultipleChoice

You need to make a script to retrieve workflow run logs via the API. Which is the correct API to download a workflow run log?

Correct Answer: C
Explanation:

The GET /repos/:owner/:repo/actions/runs/:run_id/logs API endpoint is used to retrieve the logs of a specific workflow run identified by run_id. This is the correct method for downloading logs from a workflow run.

Q3 MultipleChoice

As a developer, you are optimizing a GitHub workflow that uses and produces many different files. You need to determine when to use caching versus workflow artifacts. Which two statements are true? (Choose two.)

Correct Answer: A, B
Explanation:

Caching is ideal for files that change rarely, such as dependencies or build outputs, as it speeds up subsequent workflow runs by reusing previously cached files instead of re-downloading or rebuilding them.

Artifacts are used for persisting files produced during a job that need to be used in later jobs or after the workflow has ended, allowing them to be downloaded or referenced later.

Q4 MultipleChoice

Which of the following is the best way for an enterprise to prevent certain marketplace actions from running?

Correct Answer: D
Explanation:

The best way for an enterprise to control which GitHub Actions run is by creating a list of approved actions as an enterprise policy. This approach restricts workflows to only use the actions that are explicitly allowed, ensuring security and compliance within the organization.

Q5 MultipleChoice

You are a DevOps engineer working on deployment workflows. You need to execute the deploy job only if the current branch name is feature-branch. Which code snippet will help you to implement the conditional execution of the job?

Correct Answer: A
Explanation:

The correct GitHub Actions context property for the short branch or tag name that triggered the workflow is github.ref_name. A job-level if: condition can use this context to control whether the job runs. Therefore, if: github.ref_name == 'feature-branch' correctly limits the deploy job to the feature-branch branch. The other options use invalid context paths such as github.ref.name, github.branch_name, and github.branch.name; these are not recognized GitHub Actions properties. In exam terms, this question validates knowledge of workflow expressions, GitHub context variables, and conditional job execution. The important distinction is that github.ref contains the full ref path, while github.ref_name provides the branch or tag name directly.

Get access to all 100 verified questions with detailed answers.

Unlock All GH-200 Questions

Frequently Asked Questions

The GH-200 is Microsoft's certification exam for GitHub Actions, designed to validate your skills in automating workflows and CI/CD pipelines using GitHub's native automation platform. This exam demonstrates your ability to create, configure, and manage GitHub Actions workflows for software development and deployment.

While there are no formal prerequisites, Microsoft recommends having practical experience with GitHub, version control concepts, and CI/CD principles before attempting the exam. It's beneficial to have hands-on experience creating and managing GitHub Actions workflows in real projects.

The GH-200 exam typically consists of 40-60 questions and you have 90 minutes to complete it. You need to achieve a passing score of approximately 70% to earn the certification, though the exact passing score may vary.

The exam covers GitHub Actions fundamentals, workflow syntax and structure, creating custom actions, managing secrets and variables, integrating with external services, and implementing CI/CD best practices. It also includes topics on debugging workflows, managing dependencies, and optimizing automation processes.

The GH-200 exam typically costs around $99 USD, though pricing may vary by region and promotional offers. You can register and schedule the exam through Microsoft's official certification portal or Pearson VUE testing centers.
Exam Details
  • Exam CodeGH-200
  • VendorMicrosoft
  • Total Questions100
  • Duration120 min
  • LanguageEnglish
  • Last UpdatedSep 6, 2026
4.9/5

Pass GH-200 First Time

Get all 100 exam questions with verified answers and 90-day free updates.

Buy Now & Pass
  • PDF + Practice Test Bundle
  • 90-Day Free Updates
  • 100% Money-Back Guarantee
  • Instant Download
  • 24/7 Customer Support
99% Pass Rate Trusted by 50,000+ IT professionals