GitHub

GH-900 practice test

GitHub Foundations

120 original questions for the GitHub GH-900 exam, written from the official guide, with an explanation for every answer. Try 10 here and start practicing free.

questions
120
in the mock
40
minutes
60
domains
7

Unofficial practice: Plotto is not affiliated with or endorsed by GitHub. Original questions, written from the official exam guide.

The real exam.

Format
  • ~60-75 questions
  • 100-120 min
  • US$99
  • Pearson VUE
Pass mark on the Plotto mock
70%

Skills measured

7 domains from the official guide.

Based on: GitHub Foundations Certification Study Guide (official, 7 domains)

  1. Introduction to Git and GitHub
  2. Working with GitHub Repositories
  3. Collaboration Features
  4. Modern Development
  5. Project Management
  6. Privacy, Security, and Administration
  7. Benefits of the GitHub Community

Try 10 free questions.

At least one question from each of the exam's 7 domains. Think of your answer, then open it to see the right option and why.

  1. Question 1 of 10Introduction to Git and GitHub

    What makes Git a distributed version control system?

    1. The server holds the full history, and each clone keeps the latest snapshot of the files
    2. Every clone contains the full history of the repository, so work continues offline
    3. A central database assigns every commit its ID, so a clone must be online to commit
    4. Commits are stored on GitHub as soon as you run git commit, so teammates see them
    Show answer

    Correct answer: B. Every clone contains the full history of the repository, so work continues offline

    Why: Each developer has a complete copy; the remote (e.g. GitHub) is a convenient shared copy, not a single point of truth.

    GitHub Docs: "About Git"

  2. Question 2 of 10Working with GitHub Repositories

    A CODEOWNERS file exists in the repository. What happens when a pull request changes a file matching one of its patterns?

    1. The PR is auto-merged as soon as a listed owner comments on it
    2. The listed owners are automatically requested for review
    3. The file is locked for everyone except the listed owners
    4. The PR is converted to a draft until an owner approves it
    Show answer

    Correct answer: B. The listed owners are automatically requested for review

    Why: CODEOWNERS maps paths to owners; combined with branch protection, owner approval can be required.

    GitHub Docs: "About code owners"

  3. Question 3 of 10Collaboration Features

    A pull request description contains "Closes #42". What happens?

    1. Issue 42 is closed as soon as the PR is opened and reopened if the PR is closed unmerged
    2. Issue 42 is linked and automatically closed when the PR is merged into the default branch
    3. Nothing happens to issue 42, because closing keywords work in commit messages and not in PRs
    4. Issue 42 is linked and automatically closed when a reviewer approves the PR on any branch
    Show answer

    Correct answer: B. Issue 42 is linked and automatically closed when the PR is merged into the default branch

    Why: Keywords close, fixes and resolves (and variants) link and auto-close issues on merge.

    GitHub Docs: "Linking a pull request to an issue"

  4. Question 4 of 10Modern Development

    Tests must run automatically whenever a pull request targets main. Which workflow trigger?

    1. on: pull_request
    2. on: schedule
    3. on: workflow_dispatch
    4. on: release
    Show answer

    Correct answer: A. on: pull_request

    Why: Workflows are YAML files in .github/workflows triggered by events such as push, pull_request, schedule (cron) and workflow_dispatch (manual).

    GitHub Docs: "Events that trigger workflows"

  5. Question 5 of 10Project Management

    Which layouts are available in GitHub Projects?

    1. Table, Board and Roadmap
    2. List only
    3. Kanban only
    4. Gantt and Timeline only
    Show answer

    Correct answer: A. Table, Board and Roadmap

    Why: Projects offer multiple views with custom fields, filters, grouping and charts (insights).

    GitHub Docs: "About Projects"

  6. Question 6 of 10Privacy, Security, and Administration

    Which two-factor method does GitHub consider the least secure and recommends avoiding when alternatives exist?

    1. Authenticator app (TOTP)
    2. Security key (FIDO2)
    3. SMS text messages
    4. Passkey
    Show answer

    Correct answer: C. SMS text messages

    Why: SMS is vulnerable to SIM swapping; TOTP apps, security keys and passkeys are preferred. Save recovery codes.

    GitHub Docs: "Configuring two-factor authentication"

  7. Question 7 of 10Benefits of the GitHub Community

    What is InnerSource?

    1. Publishing the company's internal code in public repositories (open license, PRs, issues) so that outsiders can maintain it
    2. Applying open source practices (transparency, PRs, shared ownership) to software developed privately within an organisation
    3. Buying a GitHub Enterprise tier (private forks, SSO, audit log) for teams that develop software privately in one repository
    4. Keeping a private fork (read-only, synced daily) of the open source dependencies that a company uses in its own software
    Show answer

    Correct answer: B. Applying open source practices (transparency, PRs, shared ownership) to software developed privately within an organisation

    Why: InnerSource keeps code private but adopts open collaboration; internal repository visibility supports it.

    GitHub Docs: "An introduction to innersource"

  8. Question 8 of 10Introduction to Git and GitHub

    Which statement is correct?

    1. Git and GitHub are the same product; Git is the command-line name and GitHub is the name of the web interface for it
    2. Git is the version control tool; GitHub is a cloud platform that hosts Git repositories and adds collaboration features
    3. GitHub is required to use Git, because branches and commits are created on the platform and then copied to your computer
    4. Git is the web application where teams review and merge code; GitHub is the tool that records commits on each computer
    Show answer

    Correct answer: B. Git is the version control tool; GitHub is a cloud platform that hosts Git repositories and adds collaboration features

    Why: Git works entirely locally; GitHub adds hosting, pull requests, issues, Actions, Projects and more.

    GitHub Docs: "About GitHub and Git"

  9. Question 9 of 10Working with GitHub Repositories

    Which file tells newcomers how to propose changes, coding standards and the review process?

    1. LICENSE
    2. CONTRIBUTING.md
    3. CODE_OF_CONDUCT.md
    4. CODEOWNERS
    Show answer

    Correct answer: B. CONTRIBUTING.md

    Why: GitHub links CONTRIBUTING.md when people open issues or PRs. LICENSE defines usage rights.

    GitHub Docs: "Setting guidelines for repository contributors"

  10. Question 10 of 10Collaboration Features

    Community members want open-ended Q&A and brainstorming that is not a bug or a task. Which feature fits?

    1. Pull request
    2. Issue
    3. Discussion
    4. Gist
    Show answer

    Correct answer: C. Discussion

    Why: Issues track actionable work; discussions host conversations (Q&A, ideas, polls, announcements); PRs propose code changes.

    GitHub Docs: "About discussions"

Plotto has 110 more GH-900 questions, each with an explanation.

Keep practicing free

Practice on Plotto.

  • Free

    Free practice every day

    10 questions a day with a free account, with the explanation right after each answer.

  • Pro

    Full timed mock exam

    40 questions in 60 minutes, spread across the 7 domains, with your result at the end.

  • Free

    Your score by domain

    See your accuracy in each domain against the 70% pass mark, and retry the questions you missed.

Courses that prepare you.

Learn the ground the GH-900 exam covers. The first unit of every course is free.

Frequently asked questions.

How many questions are in the GH-900 exam?

The real exam has ~60-75 questions and lasts 100-120 min. Check the format, price and date on the official page before booking. On Plotto, the full mock exam has 40 questions in 60 minutes.

What is the passing score for GH-900?

On Plotto, the mock exam and your score by domain use a 70% pass mark. Check the real exam's passing score on the official page.

Is this GH-900 practice test free?

Yes. The 10 questions on this page are open to everyone, and a free Plotto account lets you practice 10 questions a day from the 120-question bank, with the explanation after each answer. The full timed mock exam (40 questions in 60 minutes) is on Pro.

How many practice questions does Plotto have for GH-900?

120 original questions, written from the official exam guide and spread across the exam's 7 domains.

What does the GH-900 exam cover?

7 domains: Introduction to Git and GitHub; Working with GitHub Repositories; Collaboration Features; Modern Development; Project Management; Privacy, Security, and Administration; and Benefits of the GitHub Community.