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

GH-900 Practice Test: Free GitHub Foundations Certification Questions

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

GH-900 is the GitHub Foundations exam: 60 scored multiple-choice questions in 100 minutes, $99, with a passing score of 700. It covers Git basics, repositories, collaboration, GitHub Actions, Copilot and Codespaces, Projects, security and the open-source community, for developers and non-developers alike. Practice with 300 original questions written to GitHub's seven domains as rewritten in January 2026, each with the correct answer and an explanation.

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 is on the GH-900 exam?

Seven domains from the January 2026 outline: Git and GitHub basics (25-30%, the largest), repositories, collaboration, modern development practices and security and administration (10-15% each), and project management and the GitHub community (5-10% each). Expect questions on commits and branches, GitHub Flow, README and CODEOWNERS files, issues and pull requests, Actions, Copilot plans, Codespaces, Projects, 2FA, roles, branch protection, forks and InnerSource.

GH-900 exam at a glance

Exam
GH-900: GitHub Foundations
Questions
60 scored multiple-choice questions plus about 10-15 unscored pretest items
Time
100 minutes
Passing score
700 or higher on a scale of 1-1000
Price
$99 USD; regional pricing may apply
Delivery
Pearson VUE test center or online proctored, registered with a Microsoft Learn account; closed book
Languages
English, Spanish, Portuguese (Brazil), Korean and Japanese
Validity
Does not expire; no renewal needed
Retakes
24 hours before the first retake, then 14 days; up to 5 attempts a year
Prerequisites
None; GitHub recommends working knowledge of GitHub
Student voucher
One free voucher for verified GitHub Student Developer Pack students (GH-900 or GH-300), while supplies last

Sources: Microsoft Learn: GH-900 study guide; GitHub Learn: certifications and FAQ.

GH-900 exam domains and weights

A 60-question FlashGenius mock exam samples each domain at its official weight.

DomainWeightQuestions in a 60-question mock
Understand Git and GitHub basics25-30%15
Work with GitHub repositories10-15%6
Collaborate using GitHub10-15%9
Apply modern development practices10-15%9
Manage projects with GitHub5-10%6
Understand privacy, security, and administration10-15%9
Explore the GitHub community5-10%6

2. Work with GitHub repositories (10-15%)

Covers repository files (README, LICENSE, CONTRIBUTING, CODEOWNERS, SECURITY), templates and branches, managing files, insights and repository maintenance.

Practice Work with GitHub repositories questions

3. Collaborate using GitHub (10-15%)

Covers issues, pull requests and discussions, linking pull requests to issues, templates and assignments, notifications, and Gists, wikis and GitHub Pages.

Practice Collaborate using GitHub questions

7. Explore the GitHub community (5-10%)

Covers open source and GitHub Sponsors, following users and organizations, GitHub Marketplace, InnerSource, and forks, templates and discoverable repositories.

Practice Explore the GitHub community questions

Who the GH-900 exam is for

GitHub designed GitHub Foundations for non-developers, developers and anyone who uses GitHub. It tests how GitHub works and how teams use it, not programming.

WhoWhat the exam asks you to know
Students and new developerscommits, branches and GitHub Flow, and the files every repository should have
Project and product managersissues, Projects layouts, labels, milestones and how to track progress
Technical writers and designersMarkdown, wikis, GitHub Pages, discussions and reviewing pull requests
IT and admin stafforganizations, teams and roles, 2FA and passkeys, Enterprise Managed Users and Copilot policies
Open-source contributorsforks, licenses, CONTRIBUTING files, Sponsors and InnerSource
People heading to GH-300 or other GitHub examsthe platform base the Copilot, Actions, Administration and Advanced Security exams assume

How GH-900 questions are written

GH-900 sample questions with answers

Understand Git and GitHub basics

Sample question 1

A small marketing team emails copies of a shared web page file back and forth. Nobody can tell which copy is current or who changed a headline last week. Which benefit of version control most directly solves this?

  1. A shared folder that always holds the latest copy of each file
  2. A recorded history of every change, showing who made it and when
  3. File locking so that one person at a time can open each file
  4. Nightly backups that can restore the files from the previous day
Show correct answer and explanation

Correct answer: B. A recorded history of every change, showing who made it and when

B is correct because version control keeps one history of the project in which each change is recorded with its author and time, so the team can see the current version and who changed the headline. A is incorrect because a shared folder shows the newest file but keeps no record of who changed what or when. C is incorrect because locking only stops people editing at the same time; it does not show which version is current or who made a change. D is incorrect because backups capture the files at set times and do not record each individual change or its author. Skills measured: Understand Git and GitHub basics > Version control fundamentals.

Understand Git and GitHub basics

Sample question 2

A developer deletes a function, commits the change and a week later learns the function was still needed. The project uses Git. What is the simplest way to get the function back?

  1. Use the code editor's undo history from the previous week
  2. Recover the earlier version of the file from the project history
  3. Rewrite the function from memory, since commits replace old versions
  4. Ask GitHub support to restore the file from their server backups
Show correct answer and explanation

Correct answer: B. Recover the earlier version of the file from the project history

B is correct because version control lets any earlier version of the project be recovered, so the function can be restored from a commit made before it was deleted. A is incorrect because an editor's undo history is not a reliable record across days and sessions, while the commit history is kept permanently. C is incorrect because a commit adds a new snapshot to the history and does not overwrite the earlier ones. D is incorrect because the team's own commit history already holds the earlier version, so no support request is needed. Skills measured: Understand Git and GitHub basics > Version control fundamentals.

Work with GitHub repositories

Sample question 3

A volunteer group publishes a small budgeting tool on GitHub. Visitors keep asking what the tool does and how to install it. Which file should the group add so this information appears on the repository's main page?

  1. A README file
  2. A CODEOWNERS file
  3. A CONTRIBUTING file
  4. A LICENSE file
Show correct answer and explanation

Correct answer: A. A README file

A is correct because GitHub automatically displays a README on the repository's main page, so it is the place to explain what the project does and how to get started. B is incorrect because CODEOWNERS names who is responsible for reviewing parts of the code and is not shown to visitors as an introduction. C is incorrect because a CONTRIBUTING file explains how people can contribute to the project, not what the tool does for visitors. D is incorrect because a LICENSE file states the terms under which others may use and share the code, not how to install it. Skills measured: Work with GitHub repositories > Repository management.

Work with GitHub repositories

Sample question 4

A student shares a public repository of class projects but never adds a license. Which statement about this repository is true?

  1. Because the repository is public, anyone may freely copy, change and redistribute the code for any purpose.
  2. Default copyright law applies, so the student keeps all rights and others may not reuse or redistribute the code.
  3. Other GitHub users are not allowed to view or fork the repository until a LICENSE file is added.
  4. GitHub automatically applies the MIT License to public repositories that do not include a LICENSE file.
Show correct answer and explanation

Correct answer: B. Default copyright law applies, so the student keeps all rights and others may not reuse or redistribute the code.

B is correct because with no license, default copyright law applies and the author retains all rights, so others may not reproduce, distribute or create derivative works. A is incorrect because being public lets GitHub users view and fork the repository under the Terms of Service, but it does not grant rights to reuse or redistribute the code. C is incorrect because GitHub's Terms of Service let other users view and fork any public repository, license or not. D is incorrect because GitHub does not apply any license automatically; without a license file, default copyright law applies. Skills measured: Work with GitHub repositories > Repository management.

Collaborate using GitHub

Sample question 5

A tester finds that the export button in a team's web app produces an empty file. She wants the problem recorded so it can be assigned, tracked and closed when fixed. What should she create in the repository?

  1. A discussion in the general category
  2. An issue describing the bug
  3. A wiki page listing known bugs
  4. A pull request describing the bug
Show correct answer and explanation

Correct answer: B. An issue describing the bug

B is correct because issues track ideas, feedback, tasks and bugs, and they can be assigned, labeled and closed when the work is done. A is incorrect because discussions are for open-ended conversation, not for tracking a specific bug through to a fix. C is incorrect because a wiki holds long-form documentation and cannot be assigned or closed like a tracked work item. D is incorrect because a pull request proposes code changes for review; the tester has no fix to propose yet. Skills measured: Collaborate using GitHub > Collaboration tools.

Collaborate using GitHub

Sample question 6

The maintainers of a note-taking app want a place where users can ask open-ended questions, share ideas and talk with each other, separate from the bug tracker. Which GitHub feature fits best?

  1. Pull request review comments
  2. A secret gist shared with users
  3. Issues with a question label
  4. GitHub Discussions for the repository
Show correct answer and explanation

Correct answer: D. GitHub Discussions for the repository

D is correct because Discussions are for open-ended conversations, questions, ideas and announcements, which keeps them apart from actionable issues. A is incorrect because review comments are tied to proposed code changes, not general community conversation. B is incorrect because a gist shares snippets or files and gives the community no organized place for threads and replies. C is incorrect because issues are meant for actionable work; using them for open conversation mixes chat into the bug tracker. Skills measured: Collaborate using GitHub > Collaboration tools.

Apply modern development practices

Sample question 7

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 8

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.

Manage projects with GitHub

Sample question 9

A program manager at a school district wants to see the team's project items laid out on a timeline by their start and target dates so she can spot overlapping work. Which project layout should she use?

  1. Insights chart
  2. Roadmap
  3. Table
  4. Board
Show correct answer and explanation

Correct answer: B. Roadmap

B is correct because the roadmap layout shows project items on a timeline using date or iteration fields, which makes overlaps between scheduled items easy to see. A is incorrect because insights charts summarize counts and trends of items; they are not a project layout that places items on a timeline. C is incorrect because the table layout is a high-density spreadsheet-style grid of items and fields, not a timeline view. D is incorrect because the board layout shows items as cards in columns, such as by Status, not along a timeline of dates. Skills measured: Manage projects with GitHub > Project tracking and organization.

Manage projects with GitHub

Sample question 10

In GitHub Projects, the ___ layout shows items as cards in columns based on a field such as Status, in a kanban style.

  1. board
  2. milestone
  3. roadmap
  4. table
Show correct answer and explanation

Correct answer: A. board

A is correct because the board layout spreads items across columns by a field such as Status, the familiar kanban view. B is incorrect because a milestone is a way to group issues and pull requests in a repository, not a project layout. C is incorrect because the roadmap layout places items on a timeline by date or iteration. D is incorrect because the table layout shows items as rows in a spreadsheet-like grid with fields as columns. Skills measured: Manage projects with GitHub > Project tracking and organization.

Understand privacy, security, and administration

Sample question 11

A volunteer who has started publishing releases of a small library is told by GitHub that she must enable two-factor authentication. She asks which method GitHub recommends as her primary 2FA method. What should she choose?

  1. A time-based one-time password (TOTP) authenticator app
  2. A passkey saved in her password manager
  3. A hardware security key plugged into her laptop
  4. Text message (SMS) codes sent to her mobile number
Show correct answer and explanation

Correct answer: A. A time-based one-time password (TOTP) authenticator app

A is correct because GitHub recommends a TOTP app as the primary 2FA method, with passkeys, security keys or GitHub Mobile added as backups. B is incorrect because GitHub does not support passkeys as the primary 2FA method; a passkey can be added only as a backup. C is incorrect because GitHub does not support security keys as the primary 2FA method; they are recommended as a backup. D is incorrect because SMS is supported but GitHub notes it carries risks, so it is not the recommended primary method. Skills measured: Understand privacy, security, and administration > Security and access management.

Understand privacy, security, and administration

Sample question 12

A designer has 2FA set up with an authenticator app and adds a passkey to his GitHub account. The next time he signs in on GitHub.com, he chooses the passkey. What does the passkey sign-in cover?

  1. Both the password and the 2FA requirement, in one step
  2. Only sudo mode, since passkeys cannot be used to sign in
  3. Only the password, so he must still type an app code
  4. Only the 2FA step, after he types his password first
Show correct answer and explanation

Correct answer: A. Both the password and the 2FA requirement, in one step

A is correct because a passkey satisfies both the password and the two-factor requirement at sign-in, so no separate authenticator code is needed. B is incorrect because passkeys can be used to sign in, and they can also be used for sudo mode and password reset. C is incorrect because a passkey sign-in satisfies the 2FA requirement as well as the password, so no extra code is requested. D is incorrect because a passkey replaces the password too; it is not just a second factor entered after the password. Skills measured: Understand privacy, security, and administration > Security and access management.

Explore the GitHub community

Sample question 13

A volunteer maintains a popular open-source command-line tool in her spare time. Users want a simple way to give her recurring financial support through GitHub. What should she set up?

  1. A GitHub Pages site that lists her repositories
  2. A paid listing for the tool in GitHub Marketplace
  3. A GitHub Sponsors profile with sponsorship tiers
  4. A Discussions category where users can pledge support
Show correct answer and explanation

Correct answer: C. A GitHub Sponsors profile with sponsorship tiers

C is correct because GitHub Sponsors lets the community fund open-source contributors directly, with monthly or one-time sponsorship tiers. A is incorrect because Pages publishes a website from a repository; it does not handle any payments or sponsorships. B is incorrect because Marketplace paid plans are only for apps owned by organizations, and it sells tools rather than funding a maintainer. D is incorrect because Discussions hosts conversations; it has no way to collect or pay out money to a maintainer. Skills measured: Explore the GitHub community > Open-source engagement.

Explore the GitHub community

Sample question 14

A developer sponsors an open-source maintainer through GitHub Sponsors from his personal account. How much of his sponsorship reaches the maintainer?

  1. None of it directly, because GitHub pays maintainers once a year
  2. All of it minus a card processing fee that GitHub passes on
  3. All of it minus a GitHub service fee taken from each payment
  4. All of it, because GitHub takes no fee on personal sponsorships
Show correct answer and explanation

Correct answer: D. All of it, because GitHub takes no fee on personal sponsorships

D is correct because sponsorships from personal accounts carry no fees, so 100 percent of the money goes to the sponsored developer. A is incorrect because sponsorships go to the maintainer as they are made; GitHub does not hold them back for an annual payout. B is incorrect because the card processing fee applies to sponsorships from organizations, not from personal accounts. C is incorrect because the GitHub service fee applies only to sponsorships made by organizations. Skills measured: Explore the GitHub community > Open-source engagement.

A practical GH-900 study plan

1. Read the January 2026 outline

The exam was rewritten in January 2026. Study from the current outline and GitHub's Foundations learning path, not older guides.

2. Start mixed

Take the 10-question quick start to see where you stand across all seven domains.

3. Drill the big domain

Git and GitHub basics is 25-30% of the exam. Then work through repositories, collaboration, modern development and security, which are 10-15% each.

4. Finish with mocks

Take timed 60-question mocks in 100 minutes and review every explanation, including for questions you got right.

GH-900 vs GH-300

GitHub Foundations is the starting exam. The GitHub Copilot exam goes deep on one product.

GH-900 GitHub FoundationsGH-300 GitHub Copilot
LevelBeginnerIntermediate
Who it is forDevelopers, non-developers and anyone who uses GitHubDevelopers, admins and managers who use or roll out Copilot
FocusGit, repositories, collaboration, Actions, Copilot basics, Projects, security and communityCopilot features, responsible AI, data handling, prompting, productivity and privacy settings
Format60 scored questions, 100 minutes, $9960 scored questions, 100 minutes, $99
ValidityDoes not expireExpires and must be renewed

Git and GitHub terms you need for GH-900

These terms come up across the seven domains. Each is defined from GitHub Docs.

TermWhat it means
RepositoryA project's files and their full history, plus GitHub features such as issues and pull requests.
CommitA saved snapshot of changes in Git, with a message and an author.
BranchA separate line of work. You change files on a branch, then merge it back.
Pull requestA GitHub proposal to merge one branch into another, with review, comments and checks.
GitHub FlowCreate a branch, make commits, open a pull request, review, then merge and delete the branch.
ForkYour own copy of someone else's repository, used to propose changes back to it.
CODEOWNERSA file that names the people or teams who are automatically asked to review changes to certain paths.
GitHub ActionsGitHub's automation: workflows that run on events such as a push or a pull request.
CodespacesA cloud development environment in a container; github.dev is a lighter editor in the browser with no terminal.

How we built these GH-900 questions

Last reviewed December 5, 2026 against: Microsoft Learn: GH-900 study guide; GitHub Learn: certifications and FAQ.

Related practice tests and guides

GH-900 practice test FAQ

What is the GitHub Foundations (GH-900) exam?

GH-900 is GitHub's entry-level certification exam. It tests foundational knowledge of Git and GitHub: repositories, collaboration, modern development practices, project management, security and administration, and the open-source community.

How many questions are on GH-900, and how long is it?

GitHub says its certification exams have 60 scored multiple-choice questions plus about 10-15 unscored pretest items, and you get 100 minutes.

What is the passing score for GH-900?

700 or higher on a scale of 1-1000. That is a scaled score, not 70% correct. FlashGenius mocks use 70% as a practice target.

How much does the GH-900 exam cost?

$99 USD. GitHub notes that regional pricing may apply depending on your country.

Is the GitHub Foundations certification free?

The exam costs $99 USD, with regional pricing in some countries. Verified GitHub Student Developer Pack students can earn one free voucher through the DataCamp GitHub Foundations path, while supplies last, and the voucher works for GH-900 or GH-300.

Can I take GH-900 online?

Yes. Pearson VUE proctors it online or at a test center, in English, Spanish, Portuguese (Brazil), Korean or Japanese. It is closed book.

Does the GitHub Foundations certification expire?

No. GitHub Foundations follows Microsoft's policy for fundamentals-level exams, so it does not expire and has no renewal.

Is GH-900 hard?

It is a beginner exam, but it covers a lot of ground, including Actions, Copilot, Codespaces, Projects and organization security, not only Git. People who use GitHub daily often miss questions on features they never touch, such as Enterprise Managed Users or project insights.

Do I need to know how to code for GH-900?

No. GitHub designed the exam for non-developers as well as developers. You need to know how Git and GitHub work, not a programming language.

What changed on GH-900 in January 2026?

Microsoft says the exam changed significantly in January 2026: objectives were added, removed, moved between domains and reworded. The current outline includes topics such as Copilot agents and agent mode, passkeys, Enterprise Managed Users and Copilot policy management, so study from it rather than older guides.

What is the retake policy for GH-900?

Wait 24 hours before your first retake and 14 days before each retake after that, with up to 5 attempts in a year.

Are these official GitHub exam questions?

No. These are original practice questions written for FlashGenius against the published GH-900 skills outline. They are not copied from the exam, and FlashGenius is not affiliated with GitHub.

Is the GH-900 practice test free?

Yes. You can review the sample questions on this page, take the 10-question quick start and practice each domain without paying. The full 300-question bank and timed mock exams are part of FlashGenius Premium.

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.