Skip to main content

GH-900 Real Exam Questions

GitHub Foundations

75 questions available · Page 1 of 8

Updated Exam DumpsVerified AnswersPass Guarantee

Get Complete Exam Dumps
Question 1 Single choice

New open source contributors can receive funding from GitHub sponsors:

  1. A

    Using PayPal as a payment processor.

  2. B

    Equal to 95% of the contribution value.

  3. C

    By including GitHub matching funds.

  4. D

    After setting up a sponsored developer profile.

Show answer and explanation

Correct answer: D

Explanation

GitHub Sponsors allows developers and organizations to financially support open-source contributors directly on the GitHub platform.
Setting Up a Sponsored Developer Profile: Option D is correct because before a contributor can receive funding through GitHub Sponsors,they need

Question 2 Multiple choice

What are the key areas of focus for GitHub? (Each answer presents a complete solution. Choose three.)

  1. A

    Nurturing a community that supports open source principles

  2. B

    Providing access and opportunities for developers

  3. C

    Providing a social media platform for project managers

  4. D

    Building a technology platform for secure code sharing and collaboration

  5. E

    Hosting video calls with other developers

Show answer and explanation

Correct answers: A, B, D

Explanation

GitHub focuses on several key areas that align with its mission to support developers and foster collaboration: Nurturing a Community.
That Supports Open Source Principles: Option A is correct. GitHub is a major advocate for open-source software development, providing tools and platforms that enable open collaboration. GitHub hosts millions of open-source projects and supports a community-driven approach to software development.
Providing Access and Opportunities for Developers: Option B is correct. GitHub provides a wide range of resources, such as GitHub Education, GitHub Actions, and GitHub Marketplace, to empower developers. These tools and opportunities help developers of all levels to learn, contribute, and improve their skills.
Building a Technology Platform for Secure Code Sharing and Collaboration: Option D is correct. GitHub's core function is to provide a platform where developers can securely share code and collaborate. Features like private repositories, branch protections, and GitHub Actions for CI/CD (Continuous Integration/Continuous Deployment) workflows highlight this focus.
Incorrect Options:
Option C is incorrect because GitHub is not a social media platform for project managers; it is a code hosting platform with social features primarily aimed at developers.
Option E is incorrect because GitHub does not focus on hosting video calls. While some integrations might allow for video conferencing, it is not a core focus of GitHub.
References:
GitHub Docs: The GitHub Developer Experience GitHub Docs: About GitHub This detailed explanation covers the primary focuses of GitHub, emphasizing its role in the open-source community and its commitment to providing a secure and collaborative platform for developers.

Question 3 Single choice

Which of the following is the best GitHub feature for long-form documentation for a project?

  1. A

    Insights

  2. B

    Pull Requests

  3. C

    Projects

  4. D

    Wikis

Show answer and explanation

Correct answer: D

Explanation

GitHub offers a variety of features for different aspects of project management and documentation. For long-form documentation, the best feature is Wikis. Wikis in GitHub allow you to create detailed, structured documentation that is easy to navigate and edit. Each repository in GitHub can have its own Wiki, which acts as a space for collaborators to maintain project documentation, guides, manuals, or any other long-form content. Wikis are specifically designed to host extensive documentation in a way that is easy to reference and edit over time. They support Markdown, allowing you to format your documentation effectively. Unlike the other options, Wikis are explicitly intended for the purpose of long-form content, making them the best choice for this use case.

Question 4 Single choice

Which of the following describes a branch in Git?

  1. A

    A pointer to an identical snapshot of the project at a specific point in time

  2. B

    A physical copy of the entire project stored on disk

  3. C

    A separate, isolated copy of the project's codebase

  4. D

    A new repository that shares code with the original "upstream" repository

Show answer and explanation

Correct answer: C

Explanation

In Git, a branch is a fundamental concept that represents an independent line of development within a project. Here's a more detailed explanation: Branch in Git: Option C is correct because a branch in Git is essentially a separate, isolated copy of the project's codebase where you can make changes without affecting the main codebase. Branches allow developers to work on features, fixes, or experiments in parallel to the main project.
Other Options:
Option A is incorrect because while a branch does point to a specific commit (which represents a snapshot of the project), the description lacks the emphasis on the isolated and parallel development aspect that is critical to the understanding of branches.
Option B is incorrect because a branch is not a physical copy stored on disk; it is a logical reference within the repository.
Option D is incorrect because that description better fits the concept of a fork, not a branch. A fork is a new repository that is a copy of another repository, usually used to contribute back to the original ("upstream") repository.

References:
Git Documentation: Branches in a Nutshell GitHub Docs: Understanding the GitHub Flow

Question 5 Single choice

What is a benefit of using GitHub Enterprise Cloud with Enterprise Managed Users (EMU)?

  1. A

    It provides centralized control and streamlined management of user accounts through their identity provider (IdP).

  2. B

    It offers additional collaboration and content creation capabilities for managed user accounts.

  3. C

    It automatically validates user interactions using the identity provider (IdP) conditional access policy (CAP).

  4. D

    It enables GitHub user accounts access to protected resources using SAML SSO.

Show answer and explanation

Correct answer: A

Explanation

GitHub Enterprise Cloud with Enterprise Managed Users (EMU) integrates closely with an organization's identity provider (IdP), such as Azure Active Directory, to manage user accounts. The primary benefit of this setup is centralized control and streamlined management. It allows organizations to enforce policies, manage user permissions, and provision or deprovision accounts directly through their IdP, ensuring consistency and security across the organization. This approach is ideal for large enterprises that require tight control over their users and resources.

Question 6 Single choice

Where can you go to discover, browse, and install tools?

  1. A

    GitHub Marketplace

  2. B

    GitHub Apps

  3. C

    Organization settings

  4. D

    Explore

Show answer and explanation

Correct answer: A

Explanation

The GitHub Marketplace is the place where users can discover, browse, and install various tools and integrations that extend the functionality of GitHub. These tools can include CI/CD services, security checks, and other development utilities that enhance workflow automation and project management.

Question 7 Single choice

Which of the following information is available by default in a user's GitHub profile?

  1. A

    Personal biography and profile picture

  2. B

    Public Secure Shell Protocol (SSH) keys

  3. C

    A list of the user's private repositories

  4. D

    Email address and password

Show answer and explanation

Correct answer: A

Explanation

A user's GitHub profile typically includes public information such as a personal biography, profile picture, and a list of public repositories. More sensitive information, like email addresses and passwords, is not publicly displayed.
Personal Biography and Profile Picture: Option A is correct because these are standard elements displayed on a user's public GitHub profile. This information is meant to provide a brief introduction to the user and their interests or skills.
Incorrect Options:
Option B is incorrect because public SSH keys may be associated with a user's account but are not displayed by default on the profile page.
Option C is incorrect because private repositories are not listed on a public profile.
Option D is incorrect because a user's email address and password are private information and not displayed on their public profile.
References:
GitHub Docs: Managing Your Profile

Question 8 Multiple choice

What are some scenarios that can automatically subscribe you to conversations on GitHub? (Each answer presents a complete solution. Choose three.)

  1. A

    Pushing a commit to the default branch

  2. B

    Being added as a repo admin

  3. C

    Opening a pull request or issue

  4. D

    Commenting on a thread

  5. E

    Being assigned to an issue or pull request

Show answer and explanation

Correct answers: C, D, E

Explanation

On GitHub, certain actions automatically subscribe you to conversations so that you receive notifications about further activity in that thread.
Opening a Pull Request or Issue: Option C is correct because when you open a pull request or issue, you are automatically subscribed to the conversation and will receive notifications for any updates.
Commenting on a Thread: Option D is correct because commenting on an issue or pull request automatically subscribes you to that thread, ensuring you are notified of further comments or changes.
Being Assigned to an Issue or Pull Request: Option E is correct because when you are assigned to an issue or pull request, you are automatically subscribed to notifications related to it.
Incorrect Options:
Option A is incorrect because pushing a commit to the default branch does not automatically subscribe you to conversations.
Option B is incorrect because being added as a repo admin does not automatically subscribe you to specific conversations unless you engage with them.
References:
GitHub Docs: Subscribing to Notifications

Question 9 Multiple choice

What should be done to locate an existing action that was provided by a GitHub-approved vendor? (Each correct answer presents part of the solution. Choose two.)

  1. A

    Create a new workflow file.

  2. B

    Search the vendor's website for a github.yaml index.

  3. C

    Confirm that the action has a verification badge.

  4. D

    Install the GitHub App that was provided by the vendor.

  5. E

    Add the vendor as an allowed Actions Source.

  6. F

    Search the GitHub Marketplace for Actions by the vendor.

Show answer and explanation

Correct answers: C, F

Explanation

To locate an existing GitHub Action provided by a GitHub-approved vendor, you can use the following methods: Verification Badge: Option C is correct because actions provided by GitHub-approved vendors will typically have a verification badge. This badge indicates that the action is from a trusted source, giving users confidence in its security and reliability.
Search the GitHub Marketplace: Option F is correct because GitHub Marketplace is the official location to find and install actions, including those provided by third-party vendors. You can search for actions by the vendor's name to find the specific one you need.
Incorrect Options:
Option A is not necessary to locate an existing action; creating a workflow file is for implementing the
action, not locating it.
Option B is incorrect because searching the vendor's website for a github.yaml index is not a standard practice for finding actions.
Option D is incorrect because installing a GitHub App is unrelated to finding an existing action.
Option E is incorrect because adding a vendor as an allowed Actions Source is a configuration step for using the action, not for locating it.
References:
GitHub Marketplace: Verified Actions

Question 10 Single choice

How are commits related to pull requests?

  1. A

    Commits are made on a branch that can have a linked pull request.

  2. B

    Commits can only be made after a pull request is created.

  3. C

    Commits can only be made before a pull request is created.

  4. D

    Commits are made on a pull request that can have a linked branch.

Show answer and explanation

Correct answer: A

Explanation

Commits and pull requests (PRs) are fundamental concepts in Git and GitHub workflows, particularly in collaborative software development.
Commits:
Commits are individual changes or updates made to the codebase. Each commit is identified by a unique SHA-1 hash and typically includes a commit message describing the changes.
Commits are made to a specific branch in the repository. The branch could be the main branch, or more commonly, a feature branch created for specific work or a feature.
Pull Requests (PRs):
A pull request is a mechanism for developers to notify team members that a branch is ready to be merged into another branch, usually the main branch.
PRs are used to review code, discuss changes, and make improvements before the branch is merged into the target branch.
Relationship Between Commits and PRs:

Option A is correct because commits are made on a branch, and this branch can have a pull request associated with it. The pull request tracks the branch's commits and allows for code review before merging into the target branch.
Commits can be added to the branch both before and after the pull request is created. Any new commits pushed to the branch are automatically included in the pull request.
Incorrect Options:
Option B is incorrect because commits can be made both before and after a pull request is created.
Option C is incorrect because it suggests that commits can only be made before a pull request is created, which is not true.
Option D is incorrect because commits are not made on a pull request; they are made on a branch. The pull request links a branch to another branch (e.g., feature branch to the main branch).
References:
GitHub Documentation: About Pull Requests GitHub Docs: Understanding the GitHub Flow Git Documentation: Git Basics - Getting a Git Repository