Microsoft

GH-900 — GitHub Foundations practice exam

The basics of Git and GitHub for developers and non-developers: version control, repositories and their key files, issues, pull requests and the GitHub Flow, Actions, Copilot and Codespaces, GitHub Projects, account and repository security, and open source. Written to the skills measured as of January 2026. The real exam needs 700/1000 to pass. Our mock uses 50 questions in 60 minutes.

Questions
50
Time limit
60 min
Pass target
70%

Exam topics

  • 1.0 Understand Git and GitHub basics28%
  • 2.0 Work with GitHub repositories14%
  • 3.0 Collaborate using GitHub14%
  • 4.0 Apply modern development practices14%
  • 5.0 Manage projects with GitHub8%
  • 6.0 Understand privacy, security, and administration14%
  • 7.0 Explore the GitHub community8%

Free GH-900 sample questions

Try these 5 questions from the practice bank, then show the answer to see the explanation.

  1. 1. What is the MAIN benefit of using a version control system for a project's files?

    • A.It keeps a history of every change, so you can see who changed what and go back
    • B.It automatically fixes bugs in the code each time the files are saved
    • C.It makes the files smaller so they take up less space on your hard drive
    • D.It stops more than one person from ever working on the project at a time
    Show answer

    Correct answer: A. It keeps a history of every change, so you can see who changed what and go back

    Version control records changes to files over time. Benefits include:

    • A full history: who changed what, when and why
    • Reverting to an earlier version if something breaks
    • Branching, so people can work in parallel without overwriting each other
    • Easier collaboration and code review

    It doesn't fix bugs or compress files, and it's designed to let many people work at once.

  2. 2. A maintainer wants changes to files in the /payments folder to automatically request a review from the payments team. Which file should they add?

    • A.README.md
    • B.CODEOWNERS
    • C.LICENSE
    • D.CONTRIBUTING.md
    Show answer

    Correct answer: B. CODEOWNERS

    Key repository files:

    FilePurpose
    READMEWhat the project is and how to use it
    LICENSEHow others may use the code
    CONTRIBUTINGHow to contribute
    CODEOWNERSWho owns which files. Owners are automatically requested as reviewers
    SECURITYHow to report vulnerabilities

    A CODEOWNERS line such as /payments/ @org/payments-team does it. Branch protection can also require code owner approval.

  3. 3. A pull request description includes "Fixes #42". What happens when the pull request is merged into the default branch?

    • A.A new issue numbered 42 is created for the next task
    • B.Issue 42 is deleted permanently from the repository
    • C.Nothing happens, because keywords are only used in commits
    • D.Issue 42 is closed automatically and linked to the pull request
    Show answer

    Correct answer: D. Issue 42 is closed automatically and linked to the pull request

    Keywords such as closes, fixes or resolves followed by an issue number link the pull request to the issue. When the pull request merges into the default branch, GitHub closes the issue automatically.

    You can also link issues manually from the pull request's sidebar (Development section). Linked issues make it easy to trace why a change was made.

  4. 4. A team wants tests to run automatically every time someone opens a pull request. Which GitHub feature should they use?

    • A.GitHub Actions
    • B.GitHub Desktop
    • C.GitHub Gists
    • D.GitHub Pages
    Show answer

    Correct answer: A. GitHub Actions

    GitHub Actions automates workflows. A workflow is a YAML file in .github/workflows/ that runs jobs of steps when events happen, such as a push, a pull request, a schedule or a manual trigger.

    Common uses are CI (build and test every change), CD (deploy), and automating chores such as labelling issues. The Marketplace has thousands of reusable actions.

  5. 5. A team wants to plan its work across several repositories, viewing the same issues as a table, a Kanban-style board and a timeline. Which feature fits BEST?

    • A.A CODEOWNERS file
    • B.GitHub Gists
    • C.GitHub Projects
    • D.GitHub Pages
    Show answer

    Correct answer: C. GitHub Projects

    GitHub Projects is a flexible planning tool that pulls in issues and pull requests from many repositories. It offers three layouts:

    • Table: like a spreadsheet
    • Board: Kanban columns, such as To do, In progress and Done
    • Roadmap: a timeline

    You can add custom fields, such as priority, estimate or iteration, and filter, sort and group the views.

Want the other 45 questions? Try GH-900 free for 7 days

Full-length timed mock exams in exam or practice mode, with a hint tab, an explanation for every answer and progress tracking. No credit card needed.