GH-100 Exam Dumps & Practice Test
GitHub Administration Questions 31–35 (page: 8)

Updated On: 16-Nov-2026

How does Dependabot determine which security update PRs to open?

  1. It waits for manual triage of all CVEs.
  2. It uses the dependency graph and Dependabot alerts to open PRs for patched versions.
  3. It reads the GitHub Issues and automatically suggests fixes.
  4. It compares your codebase to the GitHub Trending list.

Answer(s): B

Explanation:

Dependabot relies on your repository’s enabled Dependency Graph and Dependabot Alerts to identify vulnerable dependencies; it then automatically opens pull requests to update to the patched versions that resolve those alerts.



You are an administrator and need to write a script that will change the visibility of all repositories in the organization to private.
Which two commands should the script pass to the API endpoint? Each correct answer presents part of the solution.
Note: Each correct answer is worth one point.

  1. enterprise
  2. owner
  3. repo
  4. privacy

Answer(s): B,C

Explanation:

The GitHub REST API uses the endpoint PATCH /repos/{owner}/{repo} to update repository settings, including visibility. The script must specify the organization as owner, each repository as repo, and set visibility to private.



Where must the SECURITY.md file reside to be recognized by GitHub?

  1. In the .vscode folder
  2. Only in the root directory
  3. In a policies/ folder at the repo root
  4. In the root, .github/, or docs/ directory of the repo

Answer(s): D

Explanation:

GitHub recognizes the SECURITY.md file when placed in the repository's root, .github/, or docs/ directory. The file defines the repository's security policy, including supported versions and instructions for reporting vulnerabilities.



An organization wants to share a single API key required for their Actions workflows. They need to restrict its use to only a subset of repositories.
Where should they configure the secrets to minimize maintenance?

  1. Repository secrets
  2. Environment secrets
  3. Organization secrets
  4. Development environment secrets

Answer(s): C

Explanation:

By defining the API key as an organization secret, you centralize management and can grant access only to the subset of repositories you choose - eliminating per-repo duplication while enforcing the desired scope.



What is the key difference between the fork-and-pull model and the branching model in GitHub?

  1. Branching models allow contributions from outside collaborators
  2. Fork-and-pull disables all repository rulesets by default
  3. Fork-and-pull is more secure because it hides code from maintainers
  4. Fork-and-pull is ideal for external contributors; branching is better for internal teams

Answer(s): D

Explanation:

The fork-and-pull model allows external contributors to work on their own copies (forks) of a repository and submit pull requests. The branching model is better suited for internal teams whose members have direct write access to the repository.



Viewing page 8 of 36
Viewing questions 31 - 35 out of 171 questions


Post your Comments and Discuss Microsoft GH-100 exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!