GitHub Foundations (GH-900) Exam-style mock test
GitHub Foundations (GH-900) Practice Exams|Practice test
Full explanations
Exam format
Pass line 70%
33 USD One-time · lifetime access
Enroll →
Sample questions
Example1 · Git & GitHub Fundamentals
A new engineer at a B2B SaaS company asks their lead to explain how Git relates to GitHub during onboarding. Which statement most accurately describes the relationship between the two?
・Git is the hosting service that stores repositories online, while GitHub is the command-line client developers install to commit code to those hosted repositories each day
Incorrect. The roles are reversed: Git is the local version control tool, and GitHub is the hosting and collaboration platform, not the reverse.
✓Git is a distributed version control system that tracks changes locally, while GitHub is a cloud platform that hosts Git repositories and adds collaboration features
Correct. Git is the underlying distributed version control system run locally, and GitHub is a hosted platform that stores Git repositories and layers collaboration tools on top.
・Git and GitHub are two competing version control systems, so a team must choose one of them and cannot use both products together on the same project
Incorrect. They are not competitors; GitHub is built on Git and the two are used together rather than chosen between.
・Git is a GitHub-only feature that activates after you create an account, so version control is unavailable until a repository is pushed to the GitHub platform
Incorrect. Git works entirely locally and independently of any account; it does not require GitHub to function.
Explanation
Git is the distributed version control technology that runs locally, and GitHub is a cloud platform that hosts Git repositories while adding features like pull requests, issues, and access control.
Example2 · Repositories, Branches & Collaboration
A B2B SaaS company is onboarding a new backend service and wants a single place to store the service's source code, track its issues, and host its documentation together. Which GitHub feature best fits this need?
✓A repository, which holds the project's code, files, and complete revision history
Correct. A repository is the container for a project's code, files, documentation, and full version history, making it the right home for the new service.
・An organization, which groups many people and billing settings under one shared account
Incorrect. An organization groups accounts and billing across many repositories but is not itself where a single service's code and issues live.
・A gist, which is designed for sharing short standalone code snippets or single notes
Incorrect. A gist is for small standalone snippets or notes, not for hosting a full service with issues and docs.
・A personal access token used to authenticate automated scripts against the GitHub API
Incorrect. A personal access token authenticates API or script access and does not store project code at all.
Explanation
A repository is GitHub's core unit for storing a project's code, files, history, issues, and documentation together.
Example3 · Issues, Projects & Discussions
A product manager at a B2B SaaS company wants a lightweight way for engineers to report bugs, propose features, and track individual pieces of work within a single repository. Which GitHub feature is designed specifically for this granular, trackable work?
✓Issues, which let team members create trackable items to report bugs, request features, and plan tasks tied to a repository
Correct. Issues are the core GitHub feature for tracking bugs, feature requests, and tasks within a repository.
・Releases, which bundle compiled binaries and changelogs together for a published software version download
Incorrect. Releases package versioned software artifacts for distribution, not individual work items to track.
・Gists, which store standalone snippets of shareable code outside of any particular repository context
Incorrect. Gists share isolated code snippets and are not tied to tracking repository work.
・Milestones, which group related items together and assign them a shared target completion date
Incorrect. Milestones group issues under a deadline but are not themselves the granular work-tracking item.
Explanation
Issues are the primary mechanism for tracking bugs, feature requests, and tasks associated with a repository.
Example4 · GitHub Actions & Automation Basics
A healthcare services firm wants to automatically run its test suite every time a developer pushes code to the patient-portal repository. Which GitHub feature is purpose-built to automate this kind of workflow directly in the repository?
・GitHub Projects, which organizes and tracks the firm's development tasks across multiple patient-portal boards and milestones
Incorrect. GitHub Projects organizes and tracks work on boards and milestones, but it does not run automated test workflows when code is pushed.
✓GitHub Actions, which runs automated workflows triggered by repository events such as a push to the codebase
Correct. GitHub Actions is designed to automate workflows that are triggered by repository events, including running tests on every push.
・GitHub Pages, which publishes the firm's documentation site from a branch in the patient-portal repository
Incorrect. GitHub Pages publishes static websites from a repository, so it hosts documentation rather than automating test runs on push.
・GitHub Discussions, which hosts the firm's community conversations alongside the patient-portal source code
Incorrect. GitHub Discussions provides threaded community conversations, so it does not execute automated test workflows triggered by a push.
Explanation
GitHub Actions is GitHub's native automation platform, running workflows triggered by events such as pushes to automate tasks like testing and deployment.
Example5 · GitHub Ecosystem, Copilot & Administration
A healthcare services firm wants to add automated dependency scanning to its patient-portal repository without building the tooling in-house. A developer suggests browsing a central catalog where third-party apps and actions can be discovered and installed into their GitHub organization. Which GitHub offering provides this catalog?
✓GitHub Marketplace, where published apps and actions can be found and connected to repositories
Correct. GitHub Marketplace is the central catalog of third-party apps and GitHub Actions that teams can discover and install into their repositories and organizations.
・GitHub Packages, which hosts the firm's compiled container images and language packages privately
Incorrect. GitHub Packages stores and distributes software packages and container images; it is not a catalog for discovering third-party integrations.
・GitHub Codespaces, which spins up cloud development environments configured for each repository
Incorrect. Codespaces provides cloud-hosted development environments, not a marketplace for installing scanning apps.
・GitHub Pages, which publishes static documentation sites directly from a branch in the repository
Incorrect. GitHub Pages publishes static websites from a repository and has nothing to do with discovering or installing apps.
Explanation
GitHub Marketplace is the dedicated place to find, compare, and install third-party apps and actions that extend GitHub.
Example6 · Git & GitHub Fundamentals
A new developer at a healthcare services firm asks why the clinical-records team uses both Git and GitHub rather than just one. How should you best describe the relationship between the two?
✓Git is a distributed version control system that tracks code history locally, while GitHub is a cloud platform that hosts Git repositories and adds collaboration features
Correct. Git is the underlying distributed version control system, and GitHub is a hosting platform built on top of Git that layers on collaboration, access control, and automation.
・Git and GitHub are two competing version control systems, and a team must standardize on exactly one of them for a project
Incorrect. They are not competitors; GitHub is built on Git and the two are used together, not as mutually exclusive alternatives.
・Git is the paid enterprise edition of GitHub, offering the same hosting and collaboration tools with added compliance support
Incorrect. Git is free and open-source software, not a paid edition of GitHub; GitHub offers paid tiers but is a separate hosting service.
・GitHub is the command-line tool that records commits, and Git is the website where those commits are reviewed and merged
Incorrect. This reverses the roles: Git is the command-line version control tool, and GitHub is the web platform where collaboration happens.
Explanation
Git performs local, distributed version control; GitHub is a cloud service that hosts Git repositories and adds pull requests, access control, issues, and automation on top.
Example7 · Git & GitHub Fundamentals
The engineering team at Northwind Outfitters, an outdoor retail chain, is onboarding a new developer who asks how Git and GitHub relate to each other. Which explanation accurately distinguishes the two?
✓Git is a distributed version control system that tracks changes in source code locally, while GitHub is a cloud platform that hosts Git repositories and adds collaboration features
Correct. Git is the local distributed version control system that records changes, and GitHub is a hosting platform layering collaboration on top of Git.
・Git is a web service for storing code online, while GitHub is the command-line program installed on each developer's computer to commit changes
Incorrect. This reverses the roles; Git is the local tool and GitHub is the hosting web service, not the other way around.
・Git and GitHub are two interchangeable names for the same hosted service that stores every version of a project's files in the cloud
Incorrect. They are distinct: Git is a version control tool and GitHub is a hosting platform, so they are not interchangeable names for one service.
・Git is a GitHub-only feature that enables pull requests, while GitHub is the underlying engine used to merge code between branches
Incorrect. Pull requests are a GitHub feature, not a Git feature, and Git is not merely a sub-feature of GitHub.
Explanation
Git is the underlying distributed version control system run locally, whereas GitHub is a cloud platform that hosts Git repositories and provides collaboration tools such as pull requests and issues.
Example8 · Git & GitHub Fundamentals
A developer at Northwind Outfitters finishes editing the product catalog page and runs git commit with a descriptive message. What does this commit accomplish in the project's history?
・It uploads the edited catalog files directly to the shared remote repository on GitHub so teammates can immediately see them
Incorrect. Uploading to the remote requires a separate push; a commit only saves the snapshot locally.
✓It records a snapshot of the staged changes in the local repository along with author and message metadata
Correct. A commit saves a snapshot of staged changes to the local repository with metadata like author, timestamp, and message.
・It permanently deletes the previous version of the catalog page so that only the newest file content remains stored
Incorrect. Commits preserve prior versions in history rather than deleting them, which is the point of version control.
・It creates a brand-new branch automatically so the catalog edits stay isolated from the main line of development
Incorrect. Committing does not create a branch; branch creation is a separate action using git branch or git checkout -b.
Explanation
A commit captures the currently staged changes as a point-in-time snapshot in the local repository, together with metadata such as the author and the commit message, without pushing to a remote.
Example9 · Git & GitHub Fundamentals
A Northwind Outfitters developer modified three files but wants only the updated pricing script included in the next commit, leaving the other two changes out for now. Which action accomplishes this?
・Run git stash on the two files so they are hidden, then commit everything else that remains in the working directory
Incorrect. Stashing hides changes but is not the standard way to select a single file for a commit; staging is.
✓Run git add on only the pricing script to stage it, then run git commit so just that file is recorded
Correct. Staging only the pricing script with git add and then committing records exactly that file in the commit.
・Run git commit on all three files first, then immediately remove the two unwanted files from the resulting commit history
Incorrect. Committing all three and then surgically rewriting history is error-prone and not the intended workflow.
・Run git reset on the pricing script so it is isolated, and the commit will automatically include only the reset file
Incorrect. git reset unstages changes rather than selecting a file for inclusion, so this would not stage the pricing script.
Explanation
The staging area lets you select exactly which changes are included in the next commit. Using git add on only the pricing script stages that file, and a subsequent git commit records just that staged change.
Example10 · Git & GitHub Fundamentals
A new engineer at a financial services firm asks how Git relates to GitHub while onboarding onto the core-banking codebase. Which statement most accurately describes the relationship between the two?
✓Git is a distributed version control system that tracks changes locally, while GitHub is a cloud platform that hosts Git repositories and adds collaboration features
Correct. Git is the distributed VCS that tracks changes on your machine, and GitHub is a hosting platform that stores Git repositories remotely and layers on collaboration tooling.
・Git is a proprietary GitHub product that only works when you are connected to the GitHub cloud servers and authenticated
Incorrect. Git is free and open source, works fully offline, and does not require GitHub or any network connection to operate.
・Git and GitHub are interchangeable names for the same cloud-based collaboration and version control service offered by one vendor
Incorrect. They are distinct: Git is the underlying version control technology, and GitHub is one of several services that can host Git repositories.
・Git is a web-based hosting service for code, while GitHub is the command-line tool installed locally to commit changes
Incorrect. This reverses the roles; Git is the local tool and GitHub is the web hosting platform, not the other way around.
Explanation
Git is the local, distributed version control engine; GitHub is a hosting and collaboration platform built around Git repositories.
Example11 · Git & GitHub Fundamentals
A payments team wants to start tracking the version history of a new fraud-detection microservice that currently exists only as plain files on a developer's laptop. What does initializing a Git repository in that project folder accomplish?
✓It creates a hidden directory that lets Git record snapshots of the project files so their history can be tracked over time
Correct. Initializing a repository creates a hidden .git directory where Git stores commit snapshots, enabling the project's history to be tracked locally.
・It automatically uploads the entire project folder to GitHub's cloud and begins continuous background synchronization of all files
Incorrect. Initialization is purely local; nothing is uploaded until you add a remote and explicitly push to it.
・It permanently compresses and encrypts the source files so they can only be opened through authenticated Git clients
Incorrect. Git neither encrypts nor locks ordinary files; the working files remain plain and editable.
・It locks the folder for a single developer, preventing other team members from ever editing the same files concurrently
Incorrect. Git supports concurrent work through branches and merging rather than locking files for one person.
Explanation
A Git repository stores a project's tracked history in a local .git directory and does not by itself involve any remote upload.
Example12 · Git & GitHub Fundamentals
At Ironwell Distribution, a parts-catalog developer works offline on a factory floor laptop with no network access, committing changes throughout her shift. Which characteristic of Git as a distributed version control system makes this possible?
・A locking server must approve each file before any developer is permitted to edit or commit it locally
Incorrect. Git does not use a central locking server that must approve edits; developers work independently on their local clones.
✓Each cloned repository contains the full project history, so commits are recorded locally without a server
Correct. In a distributed VCS, each clone holds the complete history, so a developer can commit fully offline without contacting a server.
・Commits are queued in a local buffer and only become real commits after the central server validates them
Incorrect. Local commits are real, complete commits immediately; they are not provisional entries awaiting central validation.
・Every commit is streamed directly to a shared mainframe that assigns the official version numbers
Incorrect. Commits are not streamed to a central mainframe for numbering; they are created and stored locally first.
Explanation
Git is distributed: every clone is a full repository with complete history, enabling committing while completely offline.
Example13 · Git & GitHub Fundamentals
During onboarding at Ironwell Distribution, a new warehouse-systems hire asks how Git and GitHub relate. Which explanation correctly distinguishes the two?
・Git is a cloud subscription service, while GitHub is the command-line program installed on each developer's workstation
Incorrect. The roles are reversed: Git is the local tool and GitHub is the cloud hosting platform.
・Git and GitHub are two interchangeable names for the exact same command-line version control program
Incorrect. They are not the same thing; Git is the tool and GitHub is a hosting and collaboration service built around Git.
✓Git is the version control tool that tracks changes, while GitHub is a hosting platform for Git repositories and collaboration
Correct. Git is the underlying version control tool, and GitHub is a web platform that hosts Git repositories and adds collaboration features.
・Git tracks only text files locally, while GitHub is a separate tool required to track binary files locally
Incorrect. Git tracks both text and binary files locally; GitHub is not required for local tracking of any file type.
Explanation
Git is the distributed version control tool; GitHub is a hosting platform that stores Git repositories and layers on collaboration features.
Example14 · Git & GitHub Fundamentals
A network provisioning team at a telecom operator wants to clarify tooling in their onboarding guide. They need one sentence that correctly distinguishes Git from GitHub. Which statement accurately describes the relationship between the two?
✓Git is a distributed version control system that tracks changes locally, while GitHub is a cloud platform that hosts Git repositories and adds collaboration features
Correct. Git is the distributed version control system that runs locally and tracks changes, and GitHub is a hosting platform built on top of Git that adds collaboration and project management features.
・Git is a proprietary web service for storing code, while GitHub is the open-source command-line engine installed on each engineer's workstation
Incorrect. The roles are reversed; Git is the open-source version control tool and GitHub is the hosted web service, not the other way around.
・Git and GitHub are interchangeable names for the same cloud-hosted service that stores repositories and runs collaboration workflows
Incorrect. They are not the same thing; Git is the version control software and GitHub is a platform that hosts Git repositories.
・Git is a GitHub-only feature that enables pull requests, while GitHub is the underlying protocol used to transfer commits
Incorrect. Pull requests are a GitHub feature, and Git is not a protocol; Git is the version control system itself.
Explanation
Git is the underlying distributed version control system that operates locally, while GitHub is a cloud-based hosting platform that stores Git repositories and layers collaboration tools on top.
Example15 · Git & GitHub Fundamentals
A telecom operator is starting a new project to manage its cell-tower configuration scripts. An engineer asks what a GitHub repository fundamentally provides for this effort. Which description best captures the purpose of a repository?
・A reserved pool of compute runners that automatically executes configuration scripts whenever a tower comes online
Incorrect. Compute runners are part of GitHub Actions, not the definition of a repository.
✓A container that stores the project's files along with the complete history of every change made to them over time
Correct. A repository stores all of a project's files together with the full version history of changes to those files.
・A messaging channel where engineers discuss tower outages and coordinate maintenance windows across regions
Incorrect. Discussion channels are a collaboration feature, but a repository is fundamentally a store of files and their change history.
・A subscription tier that unlocks advanced security scanning for the operator's network automation code
Incorrect. Security scanning is a GitHub feature available to repositories, not the definition of what a repository is.
Explanation
A repository is the core container that holds a project's files and the entire history of changes to them, enabling version tracking and collaboration.
▶ Try 10 free questions (graded)