Free GH-200 sample questions

Real questions from the GitHub Actions practice bank, with the correct answer and an explanation for each one. No junk, no filler.

Try them in the simulator Same questions, with study, timed and flashcard modes.

Showing 8 of 17 free sample questions.

Question 1Choose one

You are creating a workflow that accepts manual inputs to deploy a specific version of an application to a chosen environment. You need to ensure the `environment` input can only be one of three values: 'dev', 'staging', or 'prod'. How should you define this input in the `workflow_dispatch` trigger?

Question 2Choose one

CASE STUDY: GlobalLogistics Corp GlobalLogistics has a complex deployment pipeline. The workflow `deploy.yml` consists of three jobs: `build`, `test`, and `deploy`. Requirements: 1. `build` must run first. 2. `test` must run only if `build` succeeds. 3. `deploy` must run only if `test` succeeds. 4. If `test` fails, a special cleanup job called `report-failure` must run to upload logs to an S3 bucket. How should you configure the `report-failure` job dependencies?

Question 3Choose 2

You need to select a runner for a job that requires a Linux environment with 64GB of RAM and custom GPU drivers installed. You have configured a self-hosted runner with these specifications and assigned it the labels: `linux`, `x64`, `gpu`, and `high-mem`. Which `runs-on` configuration ensures the job lands on this specific runner or one with identical capabilities? (Select TWO)

Question 4Choose one

A developer defines an environment variable `API_KEY` at the workflow level, but redefines it with a different value in a specific job, and again within a specific step. When the step executes, which value of `API_KEY` will be used?

Question 5Choose one

You are maintaining a public repository. A contributor submits a Pull Request from a forked repository. Your workflow normally runs integration tests using a secret `DB_PASSWORD`. Why does the workflow fail when triggered by the PR from the fork?

Question 6Choose one

Your workflow requires a Redis database for integration testing. You want to configure a service container for Redis that is accessible to the job steps. Which configuration correctly sets up the Redis service and maps the port?

Question 7Choose one

True or False: The automatic `GITHUB_TOKEN` secret always has read/write permissions to the repository contents by default, regardless of the organization or repository settings.

Question 8Choose one

You are using a matrix strategy to test your application on multiple Node.js versions (14, 16, 18) and Operating Systems (ubuntu-latest, windows-latest). However, you know that Node.js 14 is incompatible with windows-latest. How do you exclude this specific combination from the matrix?

9 more free samples are waiting

Create a free account to unlock the whole GH-200 sample bank, or get full access to all 250 practice questions in the simulator.

Create account