Spring Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70percent

Microsoft GH-900 GitHub Foundations Exam Practice Test

Demo: 37 questions
Total 124 questions

GitHub Foundations Questions and Answers

Question 1

Why is branching a core concept in Git?

Options:

A.

Branching creates physical copies of the project on disk, ensuring data redundancy and backup.

B.

Branching helps in automatically merging changes from different branches into the main branch.

C.

Branching is necessary for organizing files and folders within a Git repository.

D.

Branching creates an isolated environment to try new ideas and make changes without affecting other branches.

Question 2

Workflows can reference actions in:

(Each correct answer presents a complete solution. Choose three.)

Options:

A.

Any public repository.

B.

The same repository as your workflow file.

C.

GitHub Packages.

D.

An enterprise marketplace.

E.

A published Docker container image on Docker Hub.

Question 3

As a user, which of the following default labels is used to indicate that a maintainer needs assistance on an issue or pull request?

Options:

A.

Enhancement

B.

Question

C.

Help wanted

D.

Documentation

Question 4

Which of the following can be performed within GitHub Mobile?

Options:

A.

Utilizing the mobile device as a self-hosted runner

B.

Managing enterprise and organization settings

C.

Chat with other GitHub Mobile users via voice calling

D.

Forking and cloning repositories

E.

Managing notifications from github.com

Question 5

For which of the following does GitHub provide hosted runners?

Options:

A.

AWS, Azure, and GCP

B.

Linux, Windows, and macOS

C.

Kubernetes

D.

Docker

Question 6

Which of the following are included as pre-defined repository roles?

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

Options:

A.

Security

B.

View

C.

Triage

D.

Maintain

E.

Delete

F.

Write

Question 7

After 30 minutes of inactivity, a GitHub Codespace will:

Options:

A.

Be deleted

B.

Commit changes

C.

Restart

D.

Time out

Question 8

What is the difference between an organization member and an outside collaborator?

Options:

A.

Organization base permissions do not apply to outside collaborators.

B.

Two-factor authentication (2FA) is not required for outside collaborators.

C.

Outside collaborators cannot be given the admin role on a repository.

D.

Outside collaborators do not consume paid licenses.

Question 9

What is the minimum access needed to contribute to a repository?

Options:

A.

Read

B.

Triage

C.

Maintain

D.

Write

Question 10

What best describes Markdown?

Options:

A.

Markup language

B.

Programming language

C.

Scripting language

D.

Version control system

E.

Containerization solution

Question 11

What GitHub feature allows the developer community to financially support the people and organizations who maintain the open source projects they depend on?

Options:

A.

GitHub Support

B.

GitHub Sponsors

C.

GitHub Community Exchange

D.

GitHub Discussions

Question 12

How is github.dev different than Codespaces?

Options:

A.

Extensions in the Visual Studio Code Marketplace are supported by github.dev.

B.

Codespaces is available within the web browser.

C.

A free monthly quota for personal accounts is provided by github.dev.

D.

Codespaces provides terminal access.

Question 13

If there are multiple README files, which of the following locations will be displayed first?

Options:

A.

.github

B.

/src

C.

Root

D.

/docs

Question 14

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

Options:

A.

Personal biography and profile picture

B.

Public Secure Shell Protocol (SSH) keys

C.

A list of the user ' s private repositories

D.

Email address and password

Question 15

The difference between GitHub Enterprise Server (GHES) and GitHub Enterprise Cloud is that GHES:

Options:

A.

cannot enable rate limiting.

B.

includes authentication with SAML single sign-on and access provisioning with SAML or SCIM.

C.

can be deployed on both Windows and Linux.

D.

is a self-hosted solution that allows organizations to have full control over their infrastructure.

Question 16

When using Organizations, GitHub Teams is better than GitHub Free because it offers:

Options:

A.

Advanced tools and insights in private repositories.

B.

Authentication with SAML single sign-on and increased GitHub Actions minutes.

C.

Expanded storage and priority support.

D.

Increased GitHub Actions minutes and additional GitHub Packages storage.

Question 17

GitHub Actions workflows can be directly triggered by which of the following events?

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

Options:

A.

Adding a comment to a discussion post

B.

Creating a new repository

C.

Committing a change to a local git repository

D.

Pushing to a GitHub repository

E.

Disabling a GitHub runner

F.

Creating an Issue

Question 18

What is defined as software that can be freely used, modified, and shared by anyone?

Options:

A.

proprietary

B.

open source

C.

free source

D.

Innersource

Question 19

How can a user resume an existing Codespace that is bound to a repository? (Each correct answer presents a complete solution. Choose two.)

Options:

A.

Use the git CLI with the codespace parameter (e.g., " git codespace code -web " ).

B.

Browse to the repository in GitHub.com, press the comma V key and select Resume this codespace.

C.

Open https://github.com/codespaces in the browser, select the repository, and then select the existing Codespace.

D.

Browse to the repository in GitHub.com and press the period " . " key.

Question 20

Which of the following is the best description of a Git commit?

Options:

A.

a snapshot of the entire repository at a specific point in time, capturing the state of all files in the project

B.

a record of the most recent changes made by a developer in Git

C.

a series of changes made to a file, or set of files, in Git

D.

a log message that describes the purpose of the changes made to the files in a Git repository

Question 21

Which of the following best describes GitHub Pages?

Options:

A.

Webpages hosted and published through GitHub repositories

B.

Handles pagination for API requests

C.

Hosts long-form documentation about your project

D.

Curated guides around how to use GitHub products

Question 22

What are achievements on a GitHub user profile?

Options:

A.

special recognition for significant contributions and milestones

B.

total number of repositories owned

C.

number of stars received on repositories

D.

virtual trophies awarded for completing coding challenges

Question 23

As a GitHub user, where in the UI can you configure two-factor authentication (2FA) to further secure your account?

Options:

A.

Profile - > Account - > 2FA

B.

Repository Settings - > Secrets and Variables - > 2FA

C.

Organization Settings - > Authentication Security - > 2FA

D.

Settings - > Password and Authentication - > 2FA

Question 24

As a user, what feature can you use to add an issue to the top of the Issues page for easier visibility?

Options:

A.

Star the issue.

B.

Label the issue.

C.

Subscribe to the issue.

D.

Pin the issue.

Question 25

What are the two main reasons why one might fork a repository?

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

Options:

A.

To create an issue or open a discussion

B.

To propose changes to the base repository

C.

To create a new repository based on an existing one

D.

To create a new branch to develop a new feature

Question 26

In GitHub, why is it recommended to deploy from your feature branch before merging into the main branch?

Options:

A.

To directly deploy changes from the main branch without any intermediate testing

B.

To speed up the process of merging changes into the main branch

C.

To avoid the need for testing changes in production

D.

To ensure the changes are verified and validated in a production environment

Question 27

Which of the following permissions can be enabled or disabled at the enterprise level? (Each answer presents a complete solution. Choose two.)

Options:

A.

repository visibility change

B.

repository naming convention

C.

repository secrets

D.

repository deletion and transfer

Question 28

Without using advanced search syntax, what are some of the available default filters when searching through issues? (Each correct answer presents a complete solution. Choose two.)

Options:

A.

your project

B.

everything you have commented on

C.

everything assigned to you

D.

everything assigned to your team

E.

your issues

Question 29

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.)

Options:

A.

Create a new workflow file.

B.

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

C.

Confirm that the action has a verification badge.

D.

Install the GitHub App that was provided by the vendor.

E.

Add the vendor as an allowed Actions Source.

F.

Search the GitHub Marketplace for Actions by the vendor.

Question 30

What steps must you follow to use GitHub Copilot?

(Each correct answer presents part of the solution. Choose two.)

Options:

A.

Install the Copilot extension for your supported IDE.

B.

Sign up for a Copilot edition and enable it for your account.

C.

Sign and submit the legal disclaimer.

D.

Install the Copilot App on your GitHub organization, account or server.

E.

Store your coding project(s) in GitHub.

Question 31

Which of the following items can you customize for an individual Codespace?

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

Options:

A.

Shell

B.

Branch protections

C.

Name

D.

Default editor

E.

Operating system

Question 32

A distributed version control system is best described as a system that:

Options:

A.

Relies on a central server to store the entire project history and allows developers to check out files for editing.

B.

Stores project files on a cloud-based server and allows multiple developers to collaborate on the same codebase simultaneously.

C.

Ensures each developer has their own local copy of the entire code repository, including the complete project history and metadata.

D.

Requires developers to manually track and manage different versions of their files using naming conventions and manual backups.

Question 33

What should a user follow to see public activity on their personal dashboard? (Each answer presents a complete solution. Choose two.)

Options:

A.

teams

B.

people

C.

enterprises

D.

stars

E.

organizations

Question 34

Which syntax is used for authoring saved replies?

Options:

A.

Markup

B.

YAML

C.

HTML

D.

Markdown

Question 35

Which GitHub tools or features is best to quickly modify a batch of files in a repository?

Options:

A.

Install and use GitHub Mobile.

B.

Use github.dev from a web browser.

C.

Install and use GitHub Desktop.

D.

Install and use the git CLI.

E.

Create and use a new GitHub Codespace.

Question 36

What are advantages of GitHub Projects over GitHub Projects Classic?

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

Options:

A.

GitHub Projects has multiple layout views.

B.

GitHub Projects has Insights.

C.

GitHub Projects are Copilot enabled.

D.

GitHub Projects can be connected to third-party tools.

Question 37

Which of the following can be performed within GitHub Desktop?

Options:

A.

Creating and managing issues

B.

Reviewing and approving pull requests

C.

Adding and cloning repositories

D.

Commenting on discussions

E.

Integrating with office suite software

Demo: 37 questions
Total 124 questions