Microsoft GH-200 Practice Exam Questions & Answers

7 Free Questions · Last reviewed: October 19, 2026 · Prepared & Reviewed by the ValidExamDumps Editorial Team

Exam Facts

Microsoft GH-200 Exam Details

Key details for this exam, checked against the published exam outline

112 Practice Questions (Our Bank)
120 minutes Exam Duration
Exam Code
GH-200
Full Name
GitHub Actions
Issuing Body
Microsoft
Question Format (Our Bank)
Multiple Choice
Delivery
Online proctored through Pearson VUE
Eligibility
Intermediate level experience in GitHub Actions, including workflow creation, automation, and CI/CD pipeline management. Familiarity with CI/CD, GitHub repositories, GitHub Packages, and integrating third-party services is recommended.
Practice Questions

Free GH-200 Practice Questions

Each question shows the correct answer and an explanation of why it is right

VA
ValidExamDumps Editorial Team Every question and its answer is checked by our GH-200 exam preparation team, who also write the explanation shown with each one. How we research and review these pages

Which files are required for a Docker container action in addition to the source code? (Choose two.)

Correct Answer: A, D
Explanation

Dockerfile: The Dockerfile is required for Docker container actions. It defines the environment for the action, specifying the base image, dependencies, and any commands to set up the action's runtime inside the container.

action.yml: The action.yml file is required for all GitHub Actions, including Docker container actions. It contains metadata about the action, including the inputs, outputs, and the runtime environment (which in this case is Docker, defined under runs.using).

As a DevOps engineer, you are developing a composite action. You have a step that needs to be executed against a subdirectory. Which code snippet should you use within the composite action to specify the directory?

Correct Answer: D
Explanation

For a composite action, commands are defined inside the runs.steps section of the action metadata file. When a specific command must execute from a particular folder, the correct key is working-directory, and it must be applied at the individual run step level. Option D is correct because it keeps using: 'composite' at the runs level and applies working-directory: ${{ inputs.dir }} directly to the step that runs the script. Option A is incorrect because directory is not a valid GitHub Actions run-step key. Option B incorrectly places directory at the runs level. Option C uses the right keyword but places it at the wrong level. This tests composite action metadata syntax and correct step-level execution configuration.

You are reaching your organization's storage limit for GitHub artifacts and packages. What should you do to prevent the storage limit from being reached? (Choose two.)

Correct Answer: A, D
Explanation

Deleting artifacts from repositories manually will free up storage space. Artifacts are typically stored for a limited time by default, but manual cleanup can help manage space.

Configuring the artifact and log retention period allows you to control how long artifacts and logs are retained in your repository. By shortening the retention period, you can prevent unnecessary accumulation of data and manage storage more effectively.

How can GitHub Actions encrypted secrets be used in if: conditionals within a workflow job?

Correct Answer: C
Explanation

GitHub Actions encrypted secrets can be accessed in workflows using the secrets context. You can directly reference the secret within an if: conditional using ${{ secrets.MySuperSecret }} to determine whether a job or step should run based on the secret's value.

What are the advantages of using a matrix strategy in a job definition? (Choose two.)

Correct Answer: A, D
Explanation

A matrix strategy allows you to define different versions of a programming language (or any other environment setting) and run tests on each version simultaneously. This is particularly useful for testing code compatibility across different versions of a language.

A matrix strategy can also be used to test code on multiple operating systems (e.g., Windows, macOS, Linux) by defining these operating systems as matrix variables. This enables cross-platform testing within the same workflow.

As a developer, how can you identify a JavaScript action on GitHub?

Correct Answer: D
Explanation

A JavaScript action is identified in its action metadata file by the runs.using runtime value. In older exam-style content, this is commonly shown as node16; in current GitHub documentation, supported JavaScript runtimes have moved forward, but the principle remains the same: JavaScript actions declare a Node.js runtime under runs.using and specify the main JavaScript file under runs.main. Option A is not reliable because a repository can contain package.json without being a JavaScript action. Option B is unrelated because workflow files do not define the action type. Option C is naming-based and has no technical meaning. GitHub metadata syntax defines runs.using as the runtime for JavaScript actions.

As a developer, you have a 10-MB data set that is required in a specific workflow. Which steps should you perform so the dataset is stored encrypted and can be decrypted during the workflow? (Choose three.)

Correct Answer: A, C, D
Explanation

First, the dataset should be encrypted before being stored. This ensures that the data is protected when stored in a repository.

The encrypted dataset can be stored in a GitHub secret, ensuring it is securely kept and not exposed publicly.

The encryption key needed to decrypt the dataset should also be stored in a GitHub secret to maintain security during the workflow, allowing access only when needed.

Full Access

Get the complete GH-200 question set

  • 112 questions covering all exam domains
  • Correct answers with explanations, like the free questions above
  • PDF and online practice test
  • 90 days of free updates
Starting from 50% OFF
$20 $40
Get Full Access

One-time payment · Instant download

Study Guide

What the Microsoft GH-200 Exam Covers

Exam domains verified against: Official Microsoft GH-200 exam guide, last checked October 2026.

Domain 1: Author and manage workflows 20% - 25%

Configure workflow triggers for scheduled, manual, webhook, and repository events. Use jobs, steps, conditional logic, and strategy/matrix to generate job variations across OS and runtime versions. Implement YAML anchors and aliases to reuse mappings, and leverage predefined contexts like github, runner, env, and secrets to access workflow metadata and prevent secret leakage in logs.

Sample questions from this domain above: Q1Q2Q3Q6Q7

Domain 2: Consume and troubleshoot workflows 15% - 20%

Identify workflow triggers and diagnose failed runs using logs and run history. Expand YAML anchors and interpret matrix expansions to correlate job names to matrix axes. Locate workflows, artifacts, and logs in the UI and via API, then download and manage artifacts as needed.

Sample question from this domain above: Q5

Domain 3: Author and maintain actions 15% - 20%

Identify and implement action types: JavaScript, Docker, and composite. Specify required files, directory structure, and metadata, then implement workflow commands within actions. Select distribution models (public, private, or marketplace) and apply versioning and release strategies.

Sample question from this domain above: Q4

Domain 4: Manage GitHub Actions for the enterprise 20% - 25%

Define and manage reusable components and templates. Configure and monitor GitHub-hosted and self-hosted runners, apply IP allow lists, manage runner groups, and identify preinstalled software versions. Define and scope encrypted secrets and variables at organization, repository, and environment levels, then access and manage them programmatically via REST APIs.

Domain 5: Secure and optimize automation 10% - 15%

Use environment protections and approval gates. Identify trustworthy actions from the Marketplace and mitigate script injection through input sanitization and least-privilege permissions. Pin third-party actions to full commit SHAs, configure granular GITHUB_TOKEN permissions, and use OIDC tokens for cloud provider federation to eliminate long-lived secrets. Generate and verify artifact attestations for deployment verification.

FAQ

GH-200 Exam FAQ

Common questions about the exam itself

What background do I need before taking GH-200?
You need intermediate experience building and managing GitHub Actions workflows, CI/CD pipelines, and automation. Familiarity with GitHub repositories, GitHub Packages, and integrating third-party services helps. This is not an entry-level exam, so hands-on workflow creation experience matters more than theory alone.
How much time do I have to answer the questions on GH-200?
You get 100 minutes to complete the exam. That is testing time only, not the full appointment length. The exam is proctored, so you need a quiet space and a camera.
Is GH-200 harder than GH-900 (GitHub Foundations)?
Yes. GH-900 covers foundational GitHub concepts across the platform. GH-200 is intermediate level and focuses specifically on GitHub Actions, requiring hands-on knowledge of workflow syntax, runners, security, and enterprise-scale management. GH-900 is recommended first if you are new to GitHub.
Which domain in GH-200 gives candidates the most trouble?
Enterprise management and security topics often trip people up because they involve configuring runners at scale, managing secrets programmatically via REST APIs, using OIDC for cloud federation, and enforcing organization-level policies. Real-world lab experience with these features helps more than memorizing alone.
How long should I study for GH-200?
Most candidates need 4 to 6 weeks of focused study if they already write GitHub Actions workflows regularly. If you are new to GitHub Actions, plan for 8 to 12 weeks. The Microsoft Learn study guide is the authoritative source, but hands-on practice building and troubleshooting real workflows is more valuable than reading alone.
How do I take GH-200 and what is exam day like?
You schedule through Pearson VUE for an online proctored exam. You need a quiet, private space, a functioning webcam, and a stable internet connection. The proctor will verify your identity and monitor the session. You cannot reference external materials during the exam.
What happens if I fail GH-200, and can I retake it?
If you fail, you can retake the exam after a waiting period (standard Microsoft policy is 24 hours between attempts). You can schedule a new exam through Pearson VUE. There is no published limit on total attempts, but each exam attempt requires a new seat fee.
How long does the GH-200 certification stay valid?
Microsoft has not published an expiration date for the GitHub Actions certification. Check the official Microsoft Learn certification page for current validity rules, as GitHub certification policies may change.
Which job role is GH-200 best for?
GH-200 is designed for DevOps engineers, software developers, and IT professionals who build and maintain CI/CD pipelines with GitHub Actions. It is especially relevant for teams adopting GitHub Actions at scale or moving to enterprise GitHub deployments.
How does GH-200 fit into the broader GitHub certification track?
GitHub offers a family of certifications: GH-900 (Foundations) is the entry point, GH-200 (Actions) focuses on automation and CI/CD, GH-100 (Enterprise Administrator) covers governance and operations, GH-500 (Advanced Security) addresses supply chain and code security, and GH-300 (Copilot) covers AI-assisted coding. Take them in order or choose based on your role.