GH-200 GitHub Actions Exam Topics and Questions
These Microsoft GitHub Actions Exam (GH-200) exam topics are organized according to official exam domains to help candidates quickly verify coverage and focus on assessment rather than theory. Each domain is paired with topic-wise GH-200 sample questions that reflect how objectives are tested in the actual exam. This structure enables efficient review, targeted self-assessment, and rapid identification of weak areas when preparing for the Microsoft GitHub Actions Exam certification exam.
Let's Practice Free Microsoft GH-200 Questions Aligned with Official Exam Topics
This is the engine room of the exam. Everything else assumes you can read, write, and reason about workflow YAML fluently. The topic covers the full lifecycle: from the moment a trigger fires to the moment outputs land in a downstream job. Where candidates lose ground here is not on basic syntax but on the interactions between features, such as how matrix expansions, conditional logic, and context availability combine at runtime. β Triggers, events, and permissions Workflow triggers are more...
This is the engine room of the exam. Everything else assumes you can read, write, and reason about workflow YAML fluently. The topic covers the full lifecycle: from the moment a trigger fires to the moment outputs land in a downstream job. Where candidates lose ground here is not on basic syntax but on the interactions between features, such as how matrix expansions, conditional logic, and context availability combine at runtime.
β Triggers, events, and permissions
Workflow triggers are more granular than most candidates expect. You need to know not just that push and pull_request exist, but how activity types, branch filters, and path filters shape exactly when a workflow runs. Scheduled triggers use cron syntax, and manual triggers via workflow_dispatch accept typed inputs with defaults and required flags. Those inputs can be passed into reusable workflows through workflow_call with an explicit inputs and secrets mapping. The exam tests whether you can pick the right scope and permission set for a given automation scenario. GITHUB_TOKEN permissions are configurable at the workflow and job level, and choosing least-privilege matters. Understanding which events are available to which permission scopes, and what happens when a workflow is triggered from a fork, is the kind of detail that separates a correct answer from a plausible-looking wrong one.
β Workflow structure and job orchestration
Jobs run in parallel by default. The needs keyword creates explicit sequencing, and the exam will check that you understand what outputs a job can expose and how a downstream job consumes them. Conditional logic with if: expressions controls whether a step or job runs at all. The expressions use ${{ }} syntax and can reference contexts including github, runner, env, vars, secrets, inputs, matrix, needs, strategy, job, steps, github.event, and github.ref. Knowing which contexts are available at parse time versus runtime is a common exam trap. Service containers under services: let you attach databases or queues to a job; you configure exposed ports, health checks, and container options. Strategy and matrix generate job variants across OS and runtime combinations. The include and exclude keys, fail-fast, and max-parallel all modify that behavior, and the exam tests cost and performance trade-offs within matrix configuration, including awareness of runner image lifecycle changes such as Ubuntu 20.04 deprecation.
β Reuse, contexts, and expression safety
YAML anchors and aliases (&, *, and the merge key <<) let you deduplicate repeated mappings within a single workflow file. The exam expects you to read and write them, not just recognize their existence. Context usage goes deeper than variable substitution: you need to know which contexts are immutable, what version pinning means for actions referenced in a workflow, and how expressions are evaluated. A persistent exam trap is secret leakage: secrets must not appear in log output or in expression strings that get echoed. The exam will probe whether you know how to prevent that. Workflow commands such as set-env (deprecated), GITHUB_ENV, and GITHUB_OUTPUT control how data flows between steps and jobs. GITHUB_STEP_SUMMARY lets you write rich Markdown job summaries. Status badges and environment protections round out the authoring picture. Editor tooling, including the GitHub Actions VS Code extension with YAML schema completion and metadata IntelliSense, is in scope as a practical authoring aid.
β Execution management, artifacts, and caching
Passing data between jobs requires deliberate design. Artifacts upload at the end of one job and download at the start of another; outputs flow through the needs context. Environment files via GITHUB_ENV and GITHUB_OUTPUT are the step-level mechanism. Caching with actions/cache speeds up dependency installation, and the exam tests cache key design: a poorly constructed key either misses too often or serves stale content. Artifact and log retention policies can be configured programmatically via the REST API at the organization or repository level. Knowing the API surface for managing workflow runs, not just the YAML surface, is part of what this topic covers. Retention policy decisions affect storage cost, and the exam may ask you to reason about the right policy for a given scenario.
How Author and manage workflows is tested
This topic carries the broadest sub-topic list in the exam, and items from it tend to be scenario-based rather than recall-based. You are given a workflow fragment and asked what it does, what is wrong with it, or what change achieves a stated goal. The demand is close reading: a matrix with fail-fast: false behaves differently from the default, and the exam exploits that. Context availability is another lever: items reward knowing that the secrets context is not available in if: conditions on pull_request events from forks. Expression evaluation traps appear in items about secret leakage, where candidates who know the syntax but not the runtime behavior pick the option that looks syntactically correct but exposes a secret in logs. Candidates also lose marks on artifact and output wiring: confusing job outputs with step outputs, or misunderstanding when GITHUB_OUTPUT must be used instead of set-output. The runner image deprecation sub-topic tends to appear as a practical scenario about a workflow that suddenly fails after an image update, rewarding candidates who know where to find image release notes and how to pin or migrate.
The ITExamsTopics practice test for the GitHub Actions Exam covers all nineteen sub-topics in this domain. Running through a full timed session lets you see which trigger types and context rules you already have solid and which matrix or expression scenarios still trip you up, before the real exam does.
The question below targets a specific authoring scenario from this topic. Work through it carefully before checking where your reasoning lands.
What are the two types of environment protection rules you can configure? (Choose two.)
Where the previous topic asks you to build workflows, this one asks you to read and diagnose them. That shift matters because the skills are not symmetric: you can author correct YAML without being able to quickly locate why someone else's workflow is misfiring. The exam tests whether you can trace a failure from a log entry back to its cause in configuration, and whether you understand the differences between the several ways GitHub lets you package and share workflow...
Where the previous topic asks you to build workflows, this one asks you to read and diagnose them. That shift matters because the skills are not symmetric: you can author correct YAML without being able to quickly locate why someone else's workflow is misfiring. The exam tests whether you can trace a failure from a log entry back to its cause in configuration, and whether you understand the differences between the several ways GitHub lets you package and share workflow logic.
β Reading logs and diagnosing failures
Diagnosing a failed workflow run starts with knowing where to look. The GitHub UI surfaces run history, per-step log output, and annotations. The API gives you programmatic access to the same data. The exam expects you to correlate a log entry with a configuration choice, not just observe that something failed. YAML anchors, aliases, and merge keys that appeared in the authoring topic come back here as a reading challenge: you need to mentally expand a merged mapping to understand what a step actually executes. Matrix failures add another layer. A matrix job produces multiple named runs, and the exam tests whether you can map a failing job name back to the correct axis values, understand why one variant fails while others pass, and know how to rerun only the failing matrix job without re-running the whole workflow. Identifying which trigger fired, and what effect that has on available permissions and contexts, is part of the same diagnostic skill set.
β Artifacts, templates, and workflow reuse
Locating and downloading artifacts from the UI and via the API is a practical skill the exam checks directly. Beyond that, the topic draws a three-way distinction that candidates frequently blur. Starter workflows are scaffold templates: when a user picks one, a copy lands in their repository and evolves independently from that point. Reusable workflows are centrally versioned definitions invoked via workflow_call; every caller runs the same definition at the referenced version. Composite actions encapsulate step logic inside an action, not a workflow. The exam tests whether you can identify which mechanism is appropriate for a given sharing scenario, and what the operational consequences of each choice are. Non-public organization workflow templates add a visibility dimension: they are available to members of the organization but not to the public. Disabling a workflow preserves its history and configuration but stops it from running; deleting it removes the file. That distinction appears in scenario items about workflow lifecycle management.
How Consume and troubleshoot workflows is tested
Items in this topic present you with a workflow configuration, a log excerpt, or a description of observed behavior, and ask you to identify the cause or the correct next step. The skill rewarded is diagnosis under realistic conditions, not abstract knowledge of features. The three-way distinction between starter workflows, reusable workflows, and composite actions is a reliable source of items. Candidates who treat these as interchangeable lose marks on any scenario that turns on versioning, independence after creation, or the mechanism of invocation. Matrix troubleshooting items reward knowing that individual matrix jobs can be rerun selectively and that job names encode axis values. A common trap is assuming a full workflow rerun is the only option. The disable versus delete distinction appears in items about workflow lifecycle, and candidates who conflate the two pick options that describe irreversible actions when a reversible one was available. Log and artifact access via the API is tested practically: knowing the endpoint structure matters when the UI path is not the scenario's constraint.
Checking a weak area by running targeted questions is faster than re-reading documentation. The ITExamsTopics practice test lets you filter by topic so you can focus specifically on troubleshooting and template scenarios without cycling through the entire bank.
The question below presents a diagnostic scenario from this topic. Commit to an answer before reading on.
You need to trigger a workflow using the GitHub API for activity that happens outside of GitHub. Which workflow event do you use?
Workflows consume actions; this topic is about building them. The distinction between the three action types, JavaScript, Docker, and composite, is not cosmetic: each has a different execution model, a different startup cost, and different constraints on where it can run. Getting the type decision wrong in a scenario item is an easy mark to drop. The topic also covers the full path from writing an action to putting it in front of other users, including versioning and Marketplace publication....
Workflows consume actions; this topic is about building them. The distinction between the three action types, JavaScript, Docker, and composite, is not cosmetic: each has a different execution model, a different startup cost, and different constraints on where it can run. Getting the type decision wrong in a scenario item is an easy mark to drop. The topic also covers the full path from writing an action to putting it in front of other users, including versioning and Marketplace publication.
β Action types, structure, and metadata
JavaScript actions run directly on the runner without a container startup penalty, which makes them the fastest option for simple tasks. Docker actions package their own environment, which is useful when you need a specific runtime or set of dependencies, but they add startup time and only run on Linux-based runners. Composite actions chain existing steps and actions together inside an action's definition, using the same YAML step syntax as a workflow. Each type requires an action.yml metadata file at the root of the action's repository or directory. That file declares inputs, outputs, and the runs block, which differs in structure depending on the type. The exam tests whether you can identify which type fits a described requirement and whether you can read an action.yml and predict its behavior. Immutable actions rollout on GitHub-hosted runners affects version pinning: once a runner enforces immutability, actions must be pinned to a specific SHA or a tag that resolves to one, and the registry source matters. Workflow commands inside actions, such as writing to GITHUB_OUTPUT or setting an error annotation, are also in scope.
β Distribution, versioning, and the Marketplace
An action can be kept private to a repository, shared within an organization, or published publicly on the GitHub Marketplace. The distribution model you choose determines who can use it and how. Publishing to the Marketplace requires a public repository and a correctly structured action.yml with a name, description, and branding block. Versioning strategy is an operational decision with exam weight behind it. Semantic versioning tags such as v1, v1.2, and v1.2.3 are the conventional approach, and moving a major version tag forward on each release lets callers pin to v1 and receive updates automatically. The exam tests whether you understand the trade-offs: a floating major tag is convenient for callers but means an action author can push a breaking change to everyone at once. Pinning to a full commit SHA eliminates that risk but shifts the update burden to the caller. Release strategies, including when to cut a new major version versus a patch, are part of what the exam expects you to reason about.
How Author and maintain actions is tested
Items here tend to be scenario-driven: a described requirement maps to one action type more cleanly than the others, and the item rewards picking the right one and knowing why. The action.yml metadata structure is tested by presenting a file and asking what behavior it produces, or by asking what is missing from a file that fails validation. Troubleshooting items describe an action that errors at runtime and ask you to identify the cause, which often comes down to mismatched input declarations, an incorrect runs block, or a workflow command written in the wrong syntax for the action type. Distribution and versioning items reward understanding the operational consequences of each strategy. Candidates lose marks by treating version tags as interchangeable with SHAs, or by not knowing what the Marketplace requires before a publication attempt succeeds. The immutable actions sub-topic connects back to the first topic: items may describe a runner environment where a previously working action reference now fails, and the rewarded answer involves understanding why the enforcement change broke the existing pin.
The ITExamsTopics practice test covers action type selection, metadata structure, and versioning scenarios across the full question bank. Seeing the item style before the exam day lets you calibrate how precisely the questions probe action.yml structure and distribution decisions.
The question below focuses on a specific action authoring or distribution decision. Think through the type and metadata implications before selecting.
At enterprise scale, the decisions shift from how to write a workflow to who can run what, on which infrastructure, and with which secrets. Policy, governance, and runner management become the dominant concerns. Candidates who have only used GitHub Actions in a personal or small-team context often underestimate how much of this topic is about access control and organizational structure rather than YAML authoring. β Governance, policies, and reusable components Enterprises and organizations can restrict which actions are allowed to...
At enterprise scale, the decisions shift from how to write a workflow to who can run what, on which infrastructure, and with which secrets. Policy, governance, and runner management become the dominant concerns. Candidates who have only used GitHub Actions in a personal or small-team context often underestimate how much of this topic is about access control and organizational structure rather than YAML authoring.
β Governance, policies, and reusable components
Enterprises and organizations can restrict which actions are allowed to run. The allow list controls whether workflows can use actions from the Marketplace, from specific organizations, or only from within the enterprise. Organizational use policies set the baseline, and repositories can be granted more or less latitude within that baseline. Reusable workflows and workflow templates are the mechanism for sharing standardized pipelines across teams. Defining them centrally and controlling who can call or copy them is part of enterprise workflow governance. The exam tests whether you can map a described governance requirement to the correct policy setting, and whether you understand the difference between a policy that restricts action sources and one that restricts workflow triggers or permissions. Access control to workflows within the enterprise also involves understanding which repositories can call reusable workflows in other repositories, governed by the calling repository's visibility and the reusable workflow's access settings.
β Runners: hosted, self-hosted, and at scale
GitHub-hosted runners come with a known set of preinstalled software documented in image release notes, and a toolcache for common runtimes. When a tool version you need is not preinstalled, the options are setup-* actions, package managers, caching a previously installed version, pulling a container image, or using a custom self-hosted runner image. The exam tests whether you can identify the right approach for a given scenario. Self-hosted runners require configuration, registration, and ongoing maintenance. Runner groups allow you to assign runners to specific organizations or repositories, controlling which workflows can use which runner pool. IP allow lists restrict which IP ranges can communicate with self-hosted runners, which matters for network-isolated environments. Troubleshooting runner issues, such as a runner that goes offline or a job that queues indefinitely, requires knowing the runner lifecycle and where to look for registration and connectivity errors. Monitoring runner utilization at scale is also in scope.
β Secrets, variables, and programmatic management
Secrets and variables exist at three scopes: organization, repository, and environment. The scope determines which workflows can access them and what override behavior applies when the same name exists at multiple levels. Environment-scoped secrets add a protection layer: a workflow must pass environment protection rules before those secrets are available. The exam tests scoping decisions, not just the mechanics of creating a secret. Programmatic management via the REST API is explicitly in scope. You need to know how to create, update, and delete secrets and variables through the API, not just through the UI. The distinction between encrypted secrets and plaintext variables is also tested: variables are visible in logs and appropriate for non-sensitive configuration, while secrets are masked. Knowing which to use in a given scenario, and what the behavioral difference is at runtime, is the kind of detail the exam rewards.
How Manage GitHub Actions for the enterprise is tested
Items in this topic are almost always scenario-based, describing an organizational structure, a policy requirement, or an operational problem, and asking which configuration or action resolves it. The policy and governance sub-topics reward precise knowledge of where settings live in the UI hierarchy: enterprise, organization, and repository levels each have distinct controls, and confusing them produces wrong answers. Runner management items describe a failure mode, such as a self-hosted runner that is not picking up jobs, and reward candidates who know the registration and connectivity requirements rather than those who guess at YAML fixes. Secrets scoping items frequently involve an environment-scoped secret that is not available when expected, and the rewarded answer involves understanding protection rules rather than assuming a configuration bug. The API management sub-topic produces items where the UI path is not an option and candidates must reason about the correct API call. Candidates who have only used the UI lose marks here.
Enterprise governance and runner management scenarios are harder to encounter in a personal GitHub account. Working through the ITExamsTopics question bank gives you volume across policy, runner, and secrets scenarios that you are unlikely to accumulate from hands-on practice alone.
The question below tests an enterprise configuration decision. Pin down the scope and policy layer before committing to an answer.
Security in GitHub Actions is not a separate discipline bolted on at the end. It runs through every other topic: token permissions from topic one, action pinning from topic three, secret scoping from topic four. This topic pulls those threads together and adds the optimization dimension. The exam tests whether you can reason about attack surface and supply chain risk in a workflow context, and whether you can make cost and performance trade-offs that hold up under realistic workload conditions....
Security in GitHub Actions is not a separate discipline bolted on at the end. It runs through every other topic: token permissions from topic one, action pinning from topic three, secret scoping from topic four. This topic pulls those threads together and adds the optimization dimension. The exam tests whether you can reason about attack surface and supply chain risk in a workflow context, and whether you can make cost and performance trade-offs that hold up under realistic workload conditions.
β Token security, OIDC, and permission scoping
GITHUB_TOKEN is ephemeral and scoped to the workflow run. It is not a personal access token and does not persist beyond the run. Configuring granular permissions at the workflow or job level, using the permissions key, is the mechanism for least-privilege enforcement. The exam tests whether you can read a permissions block and identify which operations it allows or denies, and whether you can write one that satisfies a stated requirement without granting unnecessary write access. OIDC federation via the id-token permission lets a workflow authenticate to a cloud provider without storing a long-lived credential as a secret. The exam expects you to know how that flow works and when it is the right choice over a PAT or a stored cloud credential. Items reward knowing that OIDC eliminates the rotation burden and the exposure window of long-lived secrets, and that it requires the cloud provider to be configured to trust the GitHub OIDC issuer.
β Script injection, action trust, and supply chain
Script injection occurs when untrusted data from a workflow context, such as a pull request title or a branch name, is interpolated into a run: block without sanitization. The exam tests whether you can identify an injection-vulnerable workflow and know the mitigations: validate and sanitize inputs, avoid interpolating untrusted context values into shell scripts, prefer vetted actions over inline scripts for operations that touch untrusted input, and use proper shell quoting. Pinning third-party actions to a full commit SHA prevents a compromised or updated action from silently changing behavior. The exam connects this to the immutable actions enforcement on hosted runners covered in earlier topics. Marketplace trust is a related concern: verified creators and actions with a strong download history are lower risk than unverified alternatives. Artifact attestations and provenance, using frameworks such as SLSA, allow downstream consumers to verify that a build artifact was produced by a specific workflow run. The exam tests the concept and the integration point, not the cryptographic detail.
β Performance, caching, and cost optimization
Workflow cost on GitHub-hosted runners is a function of execution time and the number of jobs. Caching dependencies with actions/cache reduces installation time across runs; the exam tests cache key design and the trade-off between cache hit rate and staleness. Artifact retention policies affect storage cost, and the exam expects you to know that these can be set programmatically via the REST API at the organization or repository level, not just through the UI. Matrix optimization is a performance lever: a large matrix generates many parallel jobs, which speeds up total elapsed time but increases concurrent runner consumption and cost. The exam tests whether you can recommend a matrix size or configuration that balances speed against cost for a described scenario. Strategies such as splitting test suites, using conditional job execution to skip unnecessary work, and choosing the right runner type for a workload are all in scope as optimization recommendations.
How Secure and optimize automation is tested
Security items in this topic reward precise threat modeling, not general awareness. An item describes a workflow and asks which change reduces a specific risk; candidates who pick the option that sounds most security-conscious rather than the one that addresses the stated threat lose marks. Script injection items reward identifying the exact point where untrusted data enters a shell context and the specific mitigation that closes that path. OIDC items reward understanding the federation model: candidates who conflate OIDC with PATs or stored secrets pick options that describe the wrong credential type. Action pinning items connect to the immutable actions enforcement sub-topic and reward knowing the difference between a floating tag and a SHA pin in terms of supply chain risk. Optimization items tend to be scenario-based: a described workflow has a performance or cost problem, and the rewarded answer involves a specific caching, matrix, or retention policy change rather than a vague recommendation to use caching. Candidates who treat optimization as a secondary concern after security often run short of time on these items.
Security and optimization scenarios span multiple sub-topics and often require connecting concepts from earlier domains. The ITExamsTopics practice test lets you work through timed conditions so you can practice the cross-topic reasoning these items demand without the pressure of the live exam.
The question below targets a security or optimization scenario from this topic. Identify the specific risk or constraint before selecting your answer.
Ready to Start Practicing?
Access all questions and start your exam preparation journey
Upgrade to Full GH-200 Exam Questions π