GH-200

GitHub Actions GH-200 practice exams

290 questions in 5 timed practice tests. Each test has about 60 questions and a 100-minute limit. The pass mark is 70%. Results are split across the 5 exam domains.

Read the GH-200 study guide: what the exam covers, a 4-week plan and the topics people miss.

Exam at a glance

GH-200 practice exam settings
Practice tests 5
Questions in total 290
Questions per test About 60
Time limit per test 100 minutes
Pass mark 70%
Question types Single answer and multiple answer (24 multiple-answer questions)
Level Associate
Category DevOps & Cloud Native

These are the settings of our practice tests. Check the official GitHub exam page for the current exam format before you book.

Domains and weights

GH-200 exam domains, weights and question counts
Domain Weight Weight bar Questions in our bank
Author and manage workflows 24% 69
Consume and troubleshoot workflows 19% 55
Author and maintain actions 19% 55
Manage GitHub Actions for the enterprise 24% 70
Secure and optimize automation 14% 41

Sample questions

Question 1 of 3

Job publish declares needs: [test, docs]. The docs job is skipped by its own if condition on most runs, and publish is then skipped too, although test succeeded. Which condition on publish makes it run when test succeeds and docs succeeds or is skipped?

  1. A if: ${{ !failure() && !cancelled() && needs.test.result == 'success' }} (correct answer)
  2. B if: ${{ needs.docs.result == 'skipped' || needs.docs.result == 'success' }}
  3. C if: ${{ success() && needs.test.result == 'success' }}
  4. D if: ${{ always() }}
Why: A skipped dependency makes the implicit success() check false, so publish needs a status function that is not success(); !failure() && !cancelled() lets it run after a skip while still blocking on failures or cancellation, and the test check enforces the requirement. A condition without a status function gets success() added and is still skipped. success() fails on the skipped docs job, and always() would also run publish after test fails.

Question 2 of 3

In a build job, a step runs echo "VERSION=1.4.2" >> "$GITHUB_ENV". A separate deploy job declared with needs: build references ${{ env.VERSION }} and gets an empty value. What should the team change?

  1. A Append the value to GITHUB_PATH in the build job so the deploy job finds it on its search path
  2. B Move the echo command into a workflow-level env: block so every job in the workflow inherits the VERSION value
  3. C Write the value to GITHUB_STATE in the build job so that the runner shares it with every downstream job
  4. D Write the value to GITHUB_OUTPUT in a step with an id, expose it as a build job output, and read needs.build.outputs (correct answer)
Why: GITHUB_ENV only affects later steps of the same job, so a value must cross job boundaries through a step output mapped to jobs.build.outputs and read with needs.build.outputs. A workflow-level env block holds static values and cannot run a command. GITHUB_STATE passes values between the pre, main, and post phases of one action, and GITHUB_PATH only prepends directories to PATH for later steps in the same job.

Question 3 of 3

A job runs directly on ubuntu-latest, not inside a container, and defines a postgres service container with ports: ['5432:5432']. Which connection host and port should the integration tests use?

  1. A postgres on port 5432, using the service label as the hostname
  2. B The service container IP address read from the runner context
  3. C host.docker.internal on port 5432 through the Docker bridge
  4. D localhost on port 5432 (correct answer)
Why: When the job runs directly on the runner machine, service containers are reached through the ports mapped to the host, so localhost:5432 is correct. Using the service label as the hostname works only when the job itself runs in a container on the same Docker network. host.docker.internal is used from inside containers to reach the host, and the runner context does not expose service container IP addresses.

What your score report looks like

Example attempt, GH-200 practice test 3

77%

Passed
Pass mark 70%

Score by exam domain
DomainWeightYour score%
Author and manage workflows 24%
88
Consume and troubleshoot workflows 19%
81
Author and maintain actions 19%
76
Manage GitHub Actions for the enterprise 24%
58
Secure and optimize automation 14%
84

Study next: Manage GitHub Actions for the enterprise. It is below the pass mark and carries 24% of the exam.

Domains and pass mark from our GH-200 practice tests. Scores are an example attempt.

Study plans

Two weeks

  1. Day 1: take practice test 1 in exam mode to get a baseline.
  2. Days 2 to 5: domain mode on Author and manage workflows and Manage GitHub Actions for the enterprise, the two most heavily weighted domains.
  3. Day 6: practice test 2 in exam mode, then the mistakes quiz.
  4. Days 7 to 12: practice tests 3 to 5, one every other day, each followed by its mistakes quiz.
  5. Days 13 and 14: final mode. Book the exam when your readiness stays above the pass mark.

Four weeks

  1. Week 1: one practice test in practice mode, reading every explanation. Note your two lowest domains.
  2. Week 2: domain mode on those two domains, then a second practice test in exam mode.
  3. Week 3: practice tests 3 and 4 in exam mode, with the mistakes and flagged quizzes after each.
  4. Week 4: practice test 5 and final mode until your readiness holds above the pass mark.

Questions about the GH-200 practice exams

Are these real GH-200 exam questions?
No. We write every question ourselves and map it to the published GH-200 exam objectives. We do not use leaked or recalled questions.
Do the time limit and pass mark match the official exam?
They match the settings of our practice tests. Exam providers change their format from time to time, so check the official exam page before you book.
Can I try it before I pay?
Yes. The free mini exam has 15 questions with full explanations and needs no account.
How long do I keep access?
A single-exam purchase gives you 12 months of access. All-Access includes this exam for as long as your subscription runs.
What happens after I finish a test?
You get a score, a pass or fail against the pass mark, a score per domain and every answer with its explanation.

Last updated November 2026. Written and reviewed by the DevOpsCode Lab team.

DevOpsCode Lab is not affiliated with GitHub. GH-200 and related names are trademarks of their owners.

Related exams
Exam Vendor Level Questions Minutes Price
GH-900GitHub Foundations GH-900 GitHub Foundational 300 100 $9.99
GH-100GitHub Enterprise GH-100 GitHub Associate 300 100 $12.99
010-160LPI Linux Essentials 010-200 LPI Foundational 200 60 $9.99
AT0-001CompTIA AutoOps+ AT0-001 CompTIA Associate 300 60 $12.99
CAPAArgo CAPA CNCF Associate 300 90 $12.99
CKACertified Kubernetes Administrator (CKA) CNCF Associate 300 120 $12.99