OpenExamsFREE PRACTICE — ANY EXAM

Free GitHub Foundations Exam (GH-900) Practice Questions

200 free questions · Answer explanations · No signup required

View examination details, outline and sources

Loading selected examination banks…

Sample Practice Questions

Try these 10 sample questions from the GitHub Foundations Exam (GH-900) practice bank. Each includes the answer and explanation. Continue with the interactive practice above to review the full question set.

  1. 1What benefit does version control provide when a project needs an earlier version of its files?

    1. A. It can recover an earlier recorded version of the project.
    2. B. It replaces the current files with the latest remote release.
    3. C. It reconstructs unrecorded edits from the project description.
    4. D. It keeps only the newest version to prevent conflicting changes.

    Answer: A

    Explanation: The documentation states, "any earlier version of the project can be recovered at any time." Version control preserves recorded history so a previous version can be recovered.

    Reference: About Git — About version control and Git

  2. 2Which repository file is the usual first place to explain what a project does and how to get started?

    1. A. CODEOWNERS
    2. B. LICENSE
    3. C. SECURITY.md
    4. D. README.md

    Answer: D

    Explanation: GitHub says, "A README is often the first item a visitor will see when visiting your repository." It typically describes the project and getting started; the other files address ownership, licensing, or vulnerability reporting.

    Reference: About the repository README file — About READMEs

  3. 3A team needs a place to record a bug, discuss its details, and track the work to resolve it. Which GitHub feature directly supports that record?

    1. A. A release asset.
    2. B. A repository star.
    3. C. An issue.
    4. D. A Git tag.

    Answer: C

    Explanation: The issue guide says, "You can create issues in your repository to plan, discuss, and track work." An issue records actionable work rather than a packaged version or bookmark.

    Reference: About issues — Introduction following contents

  4. 4Which GitHub capability can automatically build and test each pull request and deploy merged changes?

    1. A. GitHub Pages alone.
    2. B. GitHub Actions.
    3. C. GitHub Sponsors.
    4. D. Repository stars.

    Answer: B

    Explanation: GitHub Actions lets you "automate your build, test, and deployment pipeline." It supplies the event-driven automation described.

    Reference: Understanding GitHub Actions — Overview

  5. 5What is the main role of GitHub Projects?

    1. A. To automate builds, tests, and deployments using event-triggered workflows.
    2. B. To propose and review file changes before merging them into a repository.
    3. C. To plan and track work through adaptable views of issues and pull requests.
    4. D. To publish static websites using content stored in a GitHub repository.

    Answer: C

    Explanation: The guide describes Projects as "an adaptable table, board, and roadmap that integrates with your issues and pull requests on GitHub". It is a flexible work-planning tool.

    Reference: About Projects — About Projects

  6. 6In a password-based sign-in protected by two-factor authentication, what additional protection does 2FA require?

    1. A. A stronger password used as the only credential.
    2. B. Another authentication factor beyond the username and password.
    3. C. The same password entered a second time during sign-in.
    4. D. A matching username and email address without another factor.

    Answer: B

    Explanation: The guide says users must "provide another form of authentication that only you know or have access to." A second factor adds protection beyond the password in this sign-in flow.

    Reference: About two-factor authentication — Page introduction

  7. 7A project is publicly visible on GitHub and wants others to be free to use, modify, and distribute its software as open source. What should it include?

    1. A. A README explaining how the project is used.
    2. B. A CONTRIBUTING guide for proposing project changes.
    3. C. An appropriate open-source software license.
    4. D. A SECURITY policy for reporting project vulnerabilities.

    Answer: C

    Explanation: GitHub states, "For your repository to truly be open source, you’ll need to license it so that others are free to use, change, and distribute the software." Public visibility alone does not supply those permissions.

    Reference: Licensing a repository — Page introduction

  8. 8How does Git's distributed design support work without a constant connection to a central repository?

    1. A. It stores all project history exclusively on the central server.
    2. B. It downloads individual historical commits only when requested.
    3. C. It gives each developer a full copy of the project and its history.
    4. D. It replaces the local history with a list of remote file links.

    Answer: C

    Explanation: GitHub explains, "every developer has a full copy of the project and project history." This local history makes a constant central connection unnecessary.

    Reference: About Git — About version control and Git

  9. 9A repository has README files in .github, the root directory, and docs. Which location takes precedence for the README surfaced to visitors?

    1. A. The .github directory.
    2. B. The root directory.
    3. C. The docs directory.
    4. D. The most recently edited location.

    Answer: A

    Explanation: The documented priority is "the .github directory, then the repository's root directory, and finally the docs directory." Location determines the displayed file.

    Reference: About the repository README file — About READMEs — multiple README files

  10. 10Which issue feature represents a large task as a hierarchy of smaller issues?

    1. A. Sub-issues.
    2. B. Repository topics.
    3. C. Release tags.
    4. D. Issue reactions.

    Answer: A

    Explanation: The guide says, "You can add sub-issues to an issue to quickly break down larger pieces of work into smaller issues." Sub-issues create parent-child work relationships.

    Reference: About issues — About sub-issues

Topics in this practice bank

These topics describe the available practice for GitHub Foundations Exam (GH-900). Review the examination outline and its sources for scope and allocation details.

  • Understand Git and GitHub basics
    • Version control fundamentals
    • Working with GitHub
  • Work with GitHub repositories
    • Repository management
  • Collaborate using GitHub
    • Collaboration tools
  • Apply modern development practices
    • Automation and AI tools
  • Manage projects with GitHub
    • Project Tracking and organization
  • Understand privacy, security, and administration
    • Security and access management
  • Explore the GitHub community
    • Open-source engagement

How to use these free practice questions

Choose an answer, check the explanation, and review your progress by chapter. Practice questions and explanations are free to access without signing up.

These are independent study questions, not actual examination items. For examination requirements and official information, view GitHub Foundations Exam (GH-900) details.