# GitHub Actions GH-200 practice exams

> GH-200 practice exams: 290 questions in 5 timed tests covering Author and manage workflows. Every answer explained, with a score for each domain.

Page: https://devopscodelab.com/exams/github-gh-200/

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.

## Exam at a glance

| Setting | Value |
| --- | --- |
| 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 format before you book.

## Domains and weights

| Domain | Weight | 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 |

## Price and access

- GH-200 practice exams: $12.99 for 12 months of access.
- Free mini exam: 15 questions with explanations (free account): https://devopscodelab.com/app/exams/github-gh-200/mini/
- All-Access subscription includes every exam: https://devopscodelab.com/pricing/
- 10 free questions with answers: https://devopscodelab.com/exams/github-gh-200/free-practice-questions/

## 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?

- A. if: ${{ !failure() && !cancelled() && needs.test.result == 'success' }}
- B. if: ${{ needs.docs.result == 'skipped' || needs.docs.result == 'success' }}
- C. if: ${{ success() && needs.test.result == 'success' }}
- D. if: ${{ always() }}

**Answer:** A

**Explanation:** 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?

- A. Append the value to GITHUB_PATH in the build job so the deploy job finds it on its search path
- B. Move the echo command into a workflow-level env: block so every job in the workflow inherits the VERSION value
- C. Write the value to GITHUB_STATE in the build job so that the runner shares it with every downstream job
- 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

**Answer:** D

**Explanation:** 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?

- A. postgres on port 5432, using the service label as the hostname
- B. The service container IP address read from the runner context
- C. host.docker.internal on port 5432 through the Docker bridge
- D. localhost on port 5432

**Answer:** D

**Explanation:** 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.


## 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.

DevOpsCode Lab is not affiliated with GitHub. GH-200 and related names are trademarks of their owners. We write every question ourselves; these are not real exam questions.
