GitHub Foundations · GH-900 · Skills outline of January 2026 · Official skills outline · Original practice content

Free GH-900 practice questions: Apply modern development practices

Reviewed by the FlashGenius certification content team · Last updated: December 5, 2026 · Aligned to the published GH-900 skills outline and weights

The Apply modern development practices domain is 10-15% of the GH-900 exam and covers GitHub Actions, GitHub Copilot and its plans, Copilot agents and agent mode, Codespaces and dev containers, and the github.dev editor. Review each answer and explanation as you practice.

GH-900 has 60 scored multiple-choice questions (plus about 10-15 unscored ones) in 100 minutes, costs $99 USD, needs a scaled 700 to pass, and the certification does not expire.

Take the 10-question GH-900 quick-start test · Create a free account

What Apply modern development practices covers on the GH-900 exam

This domain is 10-15% of the GH-900 exam (about 9 questions in a 60-question mock). The official skills outline includes:

How to study Apply modern development practices

GH-900 Apply modern development practices sample questions with answers

Apply modern development practices

Sample question 1

A small nonprofit's web team wants its test suite to run automatically every time someone pushes new commits to a pull request, with the result shown on the pull request. Which GitHub feature should the team set up?

  1. A built-in workflow in the team's GitHub project board
  2. A GitHub Codespaces dev container for the repository
  3. Copilot code review requested on every pull request
  4. A GitHub Actions workflow triggered by pull requests
Show correct answer and explanation

Correct answer: D. A GitHub Actions workflow triggered by pull requests

D is correct because GitHub Actions runs workflows when repository events happen, such as pushes to a pull request, and reports the results as checks on that pull request. A is incorrect because project built-in workflows update project fields such as Status; they cannot run code or tests. B is incorrect because a dev container configures a cloud development environment for a person to work in; it does not run tests on its own when commits are pushed. C is incorrect because Copilot code review reads the changes and suggests improvements, but it does not execute the project's test suite. Skills measured: Apply modern development practices > Automation and AI tools.

Apply modern development practices

Sample question 2

A developer is adding her first GitHub Actions workflow to a repository. She should save the workflow's YAML file in the ___.

  1. .github/workflows directory of the repository
  2. root folder, in a file named actions.json
  3. .github/ISSUE_TEMPLATE directory of the repository
  4. .devcontainer directory of the repository
Show correct answer and explanation

Correct answer: A. .github/workflows directory of the repository

A is correct because GitHub Actions looks for workflow files written in YAML in the .github/workflows directory, and a repository can hold several workflows there. B is incorrect because workflows are YAML files in .github/workflows; GitHub does not read a JSON file in the root folder as a workflow. C is incorrect because that directory holds issue templates and issue forms, which shape new issues rather than automate anything. D is incorrect because the .devcontainer directory holds the dev container configuration used by Codespaces, not workflow definitions. Skills measured: Apply modern development practices > Automation and AI tools.

Apply modern development practices

Sample question 3

A workflow has three jobs: one builds the app on Windows, one builds it on Linux, and one publishes the release. The maintainer notices the publish job started at the same moment as both build jobs. What explains this?

  1. The publish job started first because it contains the fewest steps
  2. All jobs in a workflow share one runner, so they start together
  3. Jobs always run in the order they are written in the YAML file
  4. Jobs run in parallel unless a job declares it needs another job
Show correct answer and explanation

Correct answer: D. Jobs run in parallel unless a job declares it needs another job

D is correct because by default jobs in a workflow have no dependencies and run in parallel; to make publishing wait, the publish job must declare that it needs the build jobs. A is incorrect because GitHub does not schedule jobs by how many steps they contain; jobs without dependencies simply start in parallel. B is incorrect because each runner handles one job at a time, and each job gets its own runner. C is incorrect because written order does not create dependencies; without a declared dependency, jobs start in parallel. Skills measured: Apply modern development practices > Automation and AI tools.

Apply modern development practices

Sample question 4

The maintainers of an open-source mapping library want a friendly welcome comment posted automatically on every issue opened by a first-time contributor, without anyone doing it by hand. What should they use?

  1. A GitHub Actions workflow that runs on new issues
  2. A Discussions category set up for first-time contributors
  3. A saved reply containing the standard welcome message
  4. A CODEOWNERS file that lists every project maintainer
Show correct answer and explanation

Correct answer: A. A GitHub Actions workflow that runs on new issues

A is correct because GitHub Actions is not limited to build and test; workflows can run on repository events such as a new issue and act on it, for example by commenting or adding labels. B is incorrect because a discussion category organizes conversations; it does not react to new issues or post comments automatically. C is incorrect because a saved reply is a reusable comment that a person still has to insert manually; it never posts on its own. D is incorrect because CODEOWNERS requests reviews from owners on pull requests that touch their files; it does not comment on new issues. Skills measured: Apply modern development practices > Automation and AI tools.

Apply modern development practices

Sample question 5

A training lead is explaining GitHub Actions runners to new staff. Which statement about runners is true?

  1. GitHub-hosted runners are offered only with Linux, so Windows builds need self-hosted runners.
  2. A self-hosted runner is a machine that GitHub manages for you in its own datacenter.
  3. Each job on a GitHub-hosted runner gets a fresh, newly provisioned virtual machine.
  4. All the steps of a single job are spread across several runners to finish faster.
Show correct answer and explanation

Correct answer: C. Each job on a GitHub-hosted runner gets a fresh, newly provisioned virtual machine.

C is correct because GitHub-hosted runners provide a new virtual machine for each job, so nothing is left over from earlier runs. A is incorrect because GitHub provides hosted runners for Ubuntu Linux, Windows and macOS. B is incorrect because a self-hosted runner is a machine that you provide and manage; GitHub-hosted runners are the ones GitHub manages. D is incorrect because the steps of a job run in order on the same runner, which is how they can share data. Skills measured: Apply modern development practices > Automation and AI tools.

Apply modern development practices

Sample question 6

Match each GitHub Actions term to its description. 1. Workflow 2. Job 3. Step. Descriptions: A. a set of steps that runs on one runner; B. a single shell script or action; C. a configurable automated process defined in a YAML file.

  1. 1 B, 2 A, 3 C
  2. 1 A, 2 C, 3 B
  3. 1 C, 2 B, 3 A
  4. 1 C, 2 A, 3 B
Show correct answer and explanation

Correct answer: D. 1 C, 2 A, 3 B

D is correct because a workflow is the configurable automated process in YAML, a job is a set of steps run on one runner, and a step is a single script or action. A is incorrect because the workflow is the whole automated process defined in YAML, and a single script or action is a step. B is incorrect because the YAML-defined automated process is the workflow, while the set of steps on one runner is a job. C is incorrect because a single script or action is a step, and the set of steps on one runner is a job. Skills measured: Apply modern development practices > Automation and AI tools.

Apply modern development practices

Sample question 7

A hardware startup must run its firmware tests in a workflow on a lab computer that has a test board plugged in by USB cable. Which kind of runner should the team use for this job?

  1. A larger GitHub-hosted runner with more CPU and memory
  2. A codespace that runs the tests from its terminal
  3. A self-hosted runner installed on the lab computer
  4. A standard GitHub-hosted runner with a matrix strategy
Show correct answer and explanation

Correct answer: C. A self-hosted runner installed on the lab computer

C is correct because self-hosted runners are machines you provide, which is the option when a job needs specific hardware that GitHub-hosted runners cannot reach. A is incorrect because a larger runner adds resources but still runs on GitHub-managed infrastructure, which has no access to a board plugged into the lab computer. B is incorrect because a codespace is a cloud development environment on a GitHub-managed virtual machine, which cannot reach a USB device in the lab. D is incorrect because a matrix repeats a job across variable combinations on hosted machines; none of those machines has the test board attached. Skills measured: Apply modern development practices > Automation and AI tools.

Apply modern development practices

Sample question 8

A design agency keeps its client portal in a private repository owned by the agency's organization. A contractor with write access pushes a commit that triggers a workflow on a GitHub-hosted runner. Who is billed for that runner usage?

  1. The organization that owns the repository
  2. Nobody, because hosted runners are free in every repository
  3. The contractor whose push triggered the workflow
  4. The author who originally committed the workflow file
Show correct answer and explanation

Correct answer: A. The organization that owns the repository

A is correct because Actions usage in a private repository is billed to the repository owner, drawing first on the owner's included compute usage, not to the person who triggered the run. B is incorrect because free use of standard hosted runners applies to public repositories; private repository usage counts against the owner's included compute and is billed beyond it. C is incorrect because the person who triggers a run is not billed; usage is charged to the account that owns the repository. D is incorrect because writing the workflow file does not make someone responsible for its usage; billing goes to the repository owner. Skills measured: Apply modern development practices > Automation and AI tools.

Apply modern development practices

Sample question 9

Put these events in the order they happen when a GitHub Actions workflow runs on a push. 1. A runner executes the job's steps in order. 2. A contributor pushes a commit to the repository. 3. The run's results appear as a check on the commit. 4. GitHub starts the workflow whose trigger matches the push event.

  1. 2, 4, 1, 3
  2. 2, 1, 4, 3
  3. 2, 4, 3, 1
  4. 4, 2, 1, 3
Show correct answer and explanation

Correct answer: A. 2, 4, 1, 3

A is correct because the push is the event, the event triggers any workflow configured for it, a runner then executes each job's steps, and finally the results are reported as checks. B is incorrect because a runner only executes steps after GitHub has started the workflow whose trigger matched the push. C is incorrect because the check result can only be reported after the runner has executed the job's steps. D is incorrect because a workflow starts in response to an event, so the push must come before GitHub starts the workflow. Skills measured: Apply modern development practices > Automation and AI tools.

Apply modern development practices

Sample question 10

A library maintainer wants to test her package on three language versions and two operating systems, six combinations in all, without writing six nearly identical job definitions. What should she use in the workflow?

  1. A matrix that runs one job definition across the combinations
  2. A self-hosted runner installed with every language version
  3. One job containing six steps that each change the OS
  4. Six separate workflow files, one for each combination
Show correct answer and explanation

Correct answer: A. A matrix that runs one job definition across the combinations

A is correct because a matrix strategy runs the same job with different combinations of variables, such as operating system and language version, from a single definition. B is incorrect because one self-hosted machine has one operating system and still needs a job per combination; it does not remove the duplicate definitions. C is incorrect because all steps of a job run on the same runner, so a step cannot switch the job to a different operating system. D is incorrect because separate files repeat the same job definition six times, which is exactly the duplication she wants to avoid. Skills measured: Apply modern development practices > Automation and AI tools.

Keep practicing

GH-900 practice test hub · Mixed quick start · GH-300 GitHub Copilot practice test · AI-901 Azure AI Fundamentals practice test · AZ-900 Azure Fundamentals practice test

FlashGenius is an independent study resource and is not affiliated with or endorsed by GitHub or Microsoft. GitHub is a trademark of GitHub, Inc. 300 original practice questions.