Microsoft certification · Exam GH-900

GH-900 Mock Exam Page 4

GitHub Foundations

Free GH-900 mock exam questions 31–36, each with the answer and an explanation.

20 questions · 30 minutes · free, no sign-up

Free GH-900 questions

31–36 of 36 free
Question 31 Choose 1
As a user, what feature can you use to merge proposed changes in a repository on GitHub?
Show answerHide answer

Correct answer: B Pull requests

Explanation

Explanation:
This question tests the fundamental purpose of pull requests (PRs) on GitHub. A pull request is the primary collaboration feature that facilitates the review, discussion, and final integration of proposed changes from one branch into another. It is the mechanism that culminates in the "merge" action.

Correct Option:

B. Pull requests
Pull requests are specifically designed to propose and merge changes. They provide an interface to compare differences (the "diff"), host conversations, run checks, and, once approved, execute the merge of the feature branch into the target branch (e.g., main).

Incorrect Option(s):

A. Issues
Issues are for tracking tasks, enhancements, and bugs. They are for discussion and planning, not for merging code. While linked to PRs, you cannot perform a merge from within an issue.

C. Projects
Projects is a project management tool for organizing work (issues, PRs) on boards or tables. It helps track the status of items but does not have functionality to execute a code merge.

D. Discussions
Discussions are for community conversations, Q&A, and brainstorming outside the context of specific code changes. They are for open-ended talk, not for performing version control operations like merging.

Reference:
GitHub Docs, "About pull requests," which states: "Pull requests let you tell others about changes you've pushed to a branch in a repository on GitHub. Once a pull request is opened, you can discuss and review the potential changes with collaborators and add follow-up commits before your changes are merged into the base branch." This defines merging as the outcome of a PR.
Question 32 Choose 2
What are primary benefits of using GitHub issues templates?

(Each answer presents a complete solution. Choose two.)
Show answerHide answer

Correct answer: A, B To automatically label or assign newly created issuesTo provide an easy-to-fill-out form for creating new issues

Explanation

Explanation:
This question tests the practical advantages of configuring issue templates in a repository. Templates standardize how users report bugs, request features, etc., by providing structured forms. They improve issue quality and automate initial triage tasks, which are their main benefits.

Correct Option:

A. To automatically label or assign newly created issues
Issue templates (specifically YAML-based forms) can include labels and assignees fields in their configuration. When a user creates an issue using that template, these labels and assignees are applied automatically, streamlining the triage process.

B. To provide an easy-to-fill-out form for creating new issues
This is the core benefit. Templates provide structured prompts (title, description, checklists, dropdowns) for users to fill out, ensuring that reporters include all necessary information (like steps to reproduce, environment details) in a consistent format.

Incorrect Option(s):

C. To easily coerce existing issues into a standard format
Issue templates only apply to new issues at the moment of creation. There is no native GitHub feature to automatically reformat or "coerce" already existing, open issues into a template's structure. This would require manual editing.

D. To automatically create new branches when issues are created
This is not a feature of issue templates. While there is a separate feature called "Issue to branch" (or you can use the GitHub CLI), it is a manual action or a separate automation (via GitHub Actions), not an automatic outcome of using an issue template.

Reference:
GitHub Docs, "Configuring issue templates for your repository," which explains that using issue templates "encourages contributors to provide specific, useful information" and that for issue forms (YAML), you can "preconfigure labels, assignees, and a default title." This confirms both benefits A and B.
Question 33 Choose 1
Which of the following is an Innersource development practice?
Show answerHide answer

Correct answer: B Sharing code between teams within the organization

Explanation

Explanation:
This question tests the definition of "Innersource," which applies open-source principles and practices within an organization. The core idea is to break down silos by encouraging internal collaboration, transparency, and reuse of code across different teams, using tools like internal repositories and pull requests.

Correct Option:

B. Sharing code between teams within the organization
This is the essence of Innersource. It involves teams making their code internally accessible (e.g., via internal or private GitHub repositories), documenting it, and accepting contributions from other internal teams through a collaborative process modeled on open source.

Incorrect Option(s):

A. Adopting open source code into the organization
This describes using external open-source software (consuming dependencies), which is a common practice but not specifically "Innersource." Innersource focuses on internal development practices, not adopting external code.

C. Removing open source code from the organization
This is the opposite of Innersource and open collaboration. It suggests a restrictive, siloed approach, which Innersource aims to eliminate.

D. Making all repositories publicly accessible
This describes making code fully open source (public). Innersource is about applying open-source practices internally, often within private or internal repositories, not necessarily making code publicly accessible.

Reference:
GitHub's resources on Innersource, which define it as "the practice of applying open source principles and methodologies—like transparency, collaboration, and community-oriented development—to proprietary software developed within an organization." The key is internal sharing and collaboration.
Question 34 Choose 3
What features are offered by Copilot for Business that are not offered by Copilot for individuals?

(Each answer presents a complete solution. Choose three.)
Show answerHide answer

Correct answer: B, C, E Organization-wide policy managementBlocks suggestions matching public codeVPN proxy support via self-signed certificates

Explanation

Explanation:
This question tests the differentiating features between the business/enterprise tier of GitHub Copilot and the individual tier. Copilot for Business (part of GitHub Copilot Enterprise) adds administrative controls, enhanced security/compliance features, and scaled licensing tailored for organizations.

Correct Option:

B. Organization-wide policy management:
This is a key administrative feature. It allows enterprise admins to centrally manage which users or groups have access to Copilot, enforce privacy settings, and control usage policies across the entire organization.

C. Blocks suggestions matching public code:
This refers to the code referencing detection feature. Copilot for Business can filter out suggestions that closely match public code found in its training set, helping organizations avoid unintended code similarity and potential licensing issues.

E. Support for organization or enterprise GitHub accounts:
Copilot for Business is licensed and billed at the organization or enterprise level, integrating with GitHub's SAML SSO and team management. The individual plan is tied to a personal GitHub account and billed individually.

Incorrect Option(s):

A. Offers multi-line function suggestions:
This is a core functionality of Copilot available to both individual and business users. It is not a differentiating feature of the business tier.

D. VPN proxy support via self-signed certificates:
This is not a documented, specific feature of Copilot for Business. Network configuration (like proxy support) is generally handled at the system or IDE level, not a Copilot-tier feature.

F. Plugs directly into the editor:
This is the basic method of operation for all Copilot versions (via IDE extensions). It is a universal feature, not exclusive to the business plan.

Reference:
GitHub's Copilot for Business documentation and feature comparison, which highlights "Organization-wide policy management," "Code referencing filter," and "Organization billing and provisioning" as key advantages over the Individual plan.
Question 35 Choose 1
How can a user choose to receive ongoing updates about a specific activity on GitHub.com?
Show answerHide answer

Correct answer: C By upgrading from a free to a paid account

Explanation

Explanation:
This question tests knowledge of how to manage subscriptions to specific conversations (issues, pull requests) on GitHub. "Receiving ongoing updates about a specific activity" means getting notified about all future comments and changes on that individual thread, which is controlled by a subscription setting on that item.

Correct Option:

C. By subscribing to notifications for all activity in a repository
This accurately describes the action. On any issue or pull request page, a user can click the "Subscribe" button (or select "Customize" > "All Activity") to ensure they receive notifications for all future updates on that specific item, regardless of whether they are mentioned.

Incorrect Option(s):

A. By automatically watching all repositories you have push access to
"Watching" a repository is a broader setting that subscribes you to many types of events in the entire repo (configurable as "All Activity" or "Ignoring"). It is not specific to a single activity (one issue/PR) and is not automatic for all repos you can push to.

B. By upgrading from a free to a paid account
Notification management is a core feature available to all account types (Free and paid). Upgrading to a paid plan does not unlock the ability to subscribe to specific activities; it is available to everyone.

D. By customizing the types of notifications you will receive in the future
While you can customize global notification settings (e.g., email vs. web), this option is too vague. The direct, specific action for a single activity is to "subscribe" to it (option C). Customization is a broader account setting.

Reference:
GitHub Docs, "About notifications," which states: "You can choose to subscribe to an issue or pull request if you want to receive notifications for new comments but are not participating directly or @mentioned." This describes subscribing to a specific activity.
Question 36 Choose 1
New open source contributors can receive funding from GitHub sponsors:
Show answerHide answer

Correct answer: D After setting up a sponsored developer profile.

Explanation

Explanation:
This question tests the prerequisite for receiving funding through GitHub Sponsors. The program allows the community to financially support open source contributors. To receive funds, a contributor must first complete the setup process to create a public sponsor profile, which involves agreeing to terms, setting up payout details, and verifying identity.

Correct Option:

D. After setting up a sponsored developer profile.
This is the mandatory first step. An open source contributor must apply and be accepted into the GitHub Sponsors program, which involves creating a public profile, configuring payout information (like bank account), and meeting eligibility requirements. Only after this setup is complete can they receive sponsorships.

Incorrect Option(s):

A. Using PayPal as a payment processor.
Incorrect. GitHub Sponsors uses its own payment processing system. Payouts to sponsored developers are made via bank transfer or, in some regions, PayPal, but this is a payout method after being set up, not a general condition for receiving funding. The platform itself does not use PayPal as its primary payment processor.

B. Equal to 95% of the contribution value.
Incorrect. GitHub does not take a 5% fee. For sponsored developers, GitHub covers payment processing fees so that 100% of the sponsorship amount goes to the developer. This is a key benefit of the program.

C. By including GitHub matching funds.
This describes a specific, limited-time incentive program (like "GitHub Sponsors Matching Fund") that was available to encourage early adoption. It is not a permanent or standard condition for receiving funding. Most sponsorships do not include matching funds.

Reference:
GitHub Docs, "Setting up GitHub Sponsors for your personal account," which states the process begins with "Applying to be a sponsored developer" and setting up your profile. The funding flow starts after this setup is complete.

That's the last free question

You've seen the free 30% (36 of 123 questions). Full access unlocks every question and full-length GH-900 mock exams, a different mock on every attempt.

Unlock full mock exam
Full mock exam

Sit the GH-900 exam before exam day

Full-length mocks with the same number of questions and the same time limit as the real GH-900 exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.

Get full GH-900 mock exam
  • —questions per mock
  • —time limit
  • 123questions in the bank
  • Newmock on every attempt