Microsoft GH-900 Practice Test Questions and Exam Dumps Part11 Q201-220

View Full Microsoft GH-900 Exam Dumps and Practice Test Dumps

 

Question 201

What does git clone create on a developer’s computer?

  1. A local copy of a repository
  2. A new GitHub organization
  3. A repository security policy
  4. A published software release

Correct Answer: 1

Explanation:

The git clone command creates a local working copy of an existing repository. It normally downloads the repository’s files, branches, and relevant history so that development can continue locally. Cloning is commonly the first step when a developer needs to work with an existing project on a new machine. It does not create a GitHub organization, establish repository security policies, or publish a software release. Once a repository has been cloned, developers can modify files, create branches, commit changes, and synchronize their work with the remote repository using other Git commands.

Question 202

Which GitHub capability lets maintainers categorize repository discussions?

  1. Commit references
  2. Discussion categories
  3. Deployment records
  4. Branch aliases

Correct Answer: 2

Explanation:

Discussion categories allow maintainers to organize conversations into meaningful sections within GitHub Discussions. A project might use categories for questions, announcements, ideas, or general community conversations. Categorization helps participants locate relevant discussions and keeps communication more organized as activity grows. Commit references belong to source-control history, deployment records provide information about deployments, and branch aliases are not the mechanism used to organize Discussions. Understanding discussion categories helps GH-900 learners distinguish community communication features from repository development and deployment functions.

Question 203

What does a Git remote represent?

  1. A repository branch stored in memory
  2. A local commit staging location
  3. A reference to another repository
  4. A GitHub issue classification

Correct Answer: 3

Explanation:

A Git remote represents a reference to another repository, commonly a repository hosted on a service such as GitHub. Remote references allow developers to synchronize local work with another repository using commands such as fetch, pull, and push. A remote is not itself a branch, staging location, or issue classification. Common remote names can identify repositories used for collaboration or upstream synchronization. Understanding remotes is essential for distinguishing the local repository from the external repository with which it exchanges commits and other Git objects.

Question 204

Which GitHub feature lets users save frequently visited repositories for quick access?

  1. Repository labels
  2. Repository milestones
  3. Repository stars
  4. Repository environments

Correct Answer: 3

Explanation:

Repository stars provide a convenient way for users to mark repositories they find useful or want to revisit. Starred repositories can be accessed through the user’s GitHub account, making the feature useful for keeping track of projects without becoming a contributor or collaborator. Stars are different from labels, milestones, and environments. Labels help categorize work items, milestones group issues and pull requests toward objectives, and environments support deployment configuration and protection. Repository stars therefore function primarily as a personal discovery and bookmarking mechanism within GitHub.

Question 205

What is the purpose of a pull request draft?

  1. Indicate that changes are not ready for final review
  2. Permanently lock the target branch
  3. Remove the source branch automatically
  4. Publish a repository release

Correct Answer: 1

Explanation:

A draft pull request communicates that proposed changes are still being developed and are not yet ready for final review or merging. It allows contributors to open a discussion around work in progress while signaling to maintainers that the contribution should not yet be treated as complete. Draft status can be changed when the author considers the changes ready for formal review. A draft pull request does not permanently lock a branch, automatically remove a source branch, or publish a release. It is primarily a collaboration signal during the development process.

Question 206

Which GitHub document commonly explains how people should contribute to a project?

  1. SECURITY.md
  2. CONTRIBUTING.md
  3. LICENSE
  4. CODEOWNERS

Correct Answer: 2

Explanation:

A CONTRIBUTING.md file commonly provides guidance for people who want to contribute to a project. It may describe development procedures, coding expectations, testing requirements, pull request practices, or issue-reporting instructions. This helps contributors follow project-specific processes before submitting changes. SECURITY.md generally provides security reporting guidance, a LICENSE defines legal permissions and conditions, and CODEOWNERS identifies responsible reviewers for specified paths. These files serve different purposes, so recognizing their roles is important when navigating GitHub repositories and understanding how projects organize contribution and governance practices.

Question 207

Which GitHub feature can restrict who may approve a pull request?

  1. Repository topics
  2. Branch protection rules
  3. Release assets
  4. Issue labels

Correct Answer: 2

Explanation:

Branch protection rules can establish requirements for pull requests before changes are merged into protected branches. Depending on the configuration, these rules can require reviews and impose restrictions related to who can approve changes. This helps organizations establish controlled review processes for important branches. Repository topics organize repositories by subject, release assets accompany published versions, and issue labels categorize work items. Branch protection is therefore directly connected to repository governance and code-review controls, making it an important GitHub feature for teams that need consistent safeguards around significant branches.

Question 208

What information does git status primarily report?

  1. Current working-tree and staging state
  2. Remote repository billing details
  3. GitHub organization membership
  4. Published release statistics

Correct Answer: 1

Explanation:

The git status command reports the current state of the local working tree and staging area. It can show modified files, staged changes, untracked files, and information about the relationship between the current branch and its upstream branch. This makes it a useful command for checking what will be included in a future commit. GitHub billing, organization membership, and release statistics are unrelated to the primary purpose of git status. Developers commonly use it before staging or committing changes to understand the current state of their local repository.

Question 209

What does a GitHub repository topic primarily provide?

  1. A deployment approval
  2. A code-review assignment
  3. A searchable classification for a repository
  4. A replacement for repository permissions

Correct Answer: 3

Explanation:

Repository topics provide descriptive classifications that help users identify repositories by subject, technology, purpose, or other characteristics. Topics can improve discoverability because users can search GitHub for repositories associated with particular subjects. They do not perform deployment approvals, assign code reviewers, or replace repository permissions. Permissions determine what users can do, while topics provide descriptive metadata. Understanding this distinction helps learners separate repository discovery features from access-control and workflow-management features.

Question 210

Which Git command changes the currently selected branch?

  1. git clean
  2. git switch
  3. git archive
  4. git reflog

Correct Answer: 2

Explanation:

The git switch command is designed primarily for changing branches. Developers can use it to move from one existing branch to another and can also use appropriate options to create and switch to a new branch. This command provides a clearer branch-oriented workflow than older commands that handled several different operations. git clean removes untracked files according to specified options, git archive creates an archive from repository content, and git reflog records reference updates. Understanding git switch helps developers manage branch context without confusing it with cleanup or history-inspection operations.

Question 211

What is the primary purpose of GitHub Actions workflow triggers?

  1. Define when a workflow should run
  2. Store repository licenses
  3. Rename organization members
  4. Create issue labels manually

Correct Answer: 1

Explanation:

Workflow triggers define the events or conditions that cause a GitHub Actions workflow to start. A workflow might run after a push, pull request activity, a scheduled time, or another supported event. Triggers therefore connect repository activity with automation. They do not store licenses, rename organization members, or manually create issue labels. Understanding triggers is fundamental to GitHub Actions because the same workflow can behave differently depending on which events are configured. Proper trigger selection helps teams automate repetitive development, testing, validation, and deployment tasks.

Question 212

Which GitHub feature provides a controlled area for storing workflow secrets?

  1. Repository topics
  2. Git tags
  3. Actions secrets
  4. Project views

Correct Answer: 3

Explanation:

GitHub Actions secrets provide a protected mechanism for storing sensitive values that workflows may need, such as credentials, tokens, or other confidential configuration data. Instead of placing sensitive information directly inside workflow files, teams can reference configured secrets during workflow execution. Repository topics, Git tags, and project views serve unrelated purposes. Topics classify repositories, tags identify points in Git history, and project views organize work. Using secrets appropriately helps prevent sensitive values from being unnecessarily exposed in source files or workflow definitions.

Question 213

What does git fetch retrieve without merging changes into the current branch?

  1. Remote repository updates
  2. Local issue comments
  3. GitHub project fields
  4. Release descriptions

Correct Answer: 1

Explanation:

The git fetch command retrieves updates from a remote repository without automatically integrating those changes into the current local branch. It updates the relevant remote-tracking references so developers can inspect incoming commits before deciding how to incorporate them. This behavior differs from commands that fetch and then integrate changes into the current branch. Issue comments, project fields, and release descriptions are GitHub platform data rather than the primary objects retrieved by Git fetch. Fetching first can give developers greater control when reviewing remote changes before integration.

Question 214

Which GitHub feature allows repository files to be viewed as a website?

  1. GitHub Pages
  2. GitHub Sponsors
  3. Repository Discussions
  4. Issue forms

Correct Answer: 1

Explanation:

GitHub Pages can publish content from a repository as a website. It is commonly used for project documentation, personal sites, technical guides, and other static web content. Depending on the configuration, Pages can publish from a selected branch or other supported source. GitHub Sponsors supports funding, Discussions provide community conversations, and issue forms structure issue submissions. GitHub Pages therefore connects repository content with web publishing rather than financial support, communication management, or issue intake.

Question 215

What does an annotated Git tag provide beyond a lightweight tag?

  1. Repository access permissions
  2. Additional tag metadata
  3. Automatic branch protection
  4. Issue assignment rules

Correct Answer: 2

Explanation:

An annotated Git tag stores additional metadata compared with a lightweight tag. It can include information such as the tagger, creation date, message, and other tag-related data. Annotated tags are therefore useful when a project needs a more descriptive and durable marker for an important point in its history, such as a release. Repository permissions, branch protection, and issue assignment rules are separate GitHub features. Understanding the distinction between lightweight and annotated tags helps developers select an appropriate way to mark significant states within Git history.

Question 216

Which GitHub feature can require successful automated checks before merging?

  1. Repository descriptions
  2. Protected branch requirements
  3. Discussion categories
  4. Contribution calendars

Correct Answer: 2

Explanation:

Protected branch requirements can require specified status checks to pass before a pull request is merged into a protected branch. This allows teams to make automated validation part of their review and integration process. Checks might include builds, tests, security scans, or other automated validations. Repository descriptions provide informational text, discussion categories organize conversations, and contribution calendars visualize activity. Requiring successful checks helps maintainers reduce the chance of integrating changes that have failed established automated validation.

Question 217

What does git log primarily display?

  1. Repository hosting invoices
  2. Commit history
  3. Workflow secret values
  4. Project board permissions

Correct Answer: 2

Explanation:

The git log command displays commit history for a repository. Its output can show information such as commit identifiers, authors, dates, and commit messages. Developers use this history to investigate previous changes, locate commits, and understand how a project evolved. It does not display billing information, secret values, or project permissions. Additional options can change the presentation or filtering of history, allowing developers to inspect specific branches, paths, or time periods. Understanding Git log is essential for navigating repository history and identifying changes relevant to troubleshooting or development.

Question 218

Which GitHub permission is designed mainly for managing issues and pull requests without code write access?

  1. Triage
  2. Read
  3. Admin
  4. Maintain

Correct Answer: 1

Explanation:

The Triage role is intended for users who need to manage issues and pull requests without receiving permission to push code directly to the repository. This can be useful for project coordinators, support contributors, or maintainers who organize incoming work but should not modify repository contents. Read access provides more limited viewing capabilities, while Maintain and Admin provide broader repository-management responsibilities. Understanding role boundaries helps organizations assign appropriate permissions according to responsibilities and supports a least-privilege approach to repository access.

Question 219

What does git reset commonly allow a developer to change?

  1. Repository hosting ownership
  2. The current branch reference or staging state
  3. GitHub notification preferences
  4. Repository discussion categories

Correct Answer: 2

Explanation:

git reset can move the current branch reference and, depending on the selected mode, modify the staging area or working-tree state. It is therefore a powerful local Git command that should be used carefully, particularly when commits have already been shared with others. Different reset modes have different effects, so developers should understand the intended outcome before using the command. Repository ownership, notification preferences, and discussion categories are managed through GitHub rather than through git reset. Proper use of reset requires understanding the relationship between commits, branches, staging, and working files.

Question 220

Which GitHub capability helps users receive updates about activity in a repository?

  1. Repository watching
  2. Git tag annotations
  3. Commit squashing
  4. Repository archiving

Correct Answer: 1

Explanation:

Repository watching allows users to receive notifications about activity in a repository according to their selected notification preferences. It is useful when a user wants to stay informed about changes, issues, pull requests, discussions, or other repository activity. Watching is different from starring because a star is primarily a way to bookmark or express interest in a repository, while watching is associated with receiving updates. Git tag annotations, commit squashing, and repository archiving are unrelated source-control or repository-management operations.