GitHub Advanced Security GH-500 Exam Dumps & Practice Test
GitHub Advanced Security Questions 21–25 (page: 6)

Updated On: 16-Nov-2026

Which features require GitHub Advanced Security to be enabled for internal and private repositories in an organization? Each correct answer presents part of the solution. (Choose two.)

  1. security policy
  2. secret scanning
  3. packages
  4. dependency review

Answer(s): B,D

Explanation:

About GitHub Advanced Security products
GitHub has many features that help you improve and maintain the quality of your code. Some of these are included in all plans, such as dependency graph and Dependabot alerts.
Other security features require you to purchase one of GitHub's Advanced Security products:
GitHub Secret Protection, which includes features that help you detect and prevent secret leaks, such as secret scanning [B] and push protection.
GitHub Code Security, which includes features that help you find and fix vulnerabilities, like code scanning, premium Dependabot features, and dependency review [D].


Reference:

https://docs.github.com/en/get-started/learning-about-github/about-github-advanced-security



Which key is required in the update settings of the Dependabot configuration file?

  1. commit-message
  2. package-ecosystem
  3. assignees
  4. rebase-strategy

Answer(s): B

Explanation:

Enabling Dependabot version updates
You enable Dependabot version updates by committing a dependabot.yml configuration file to your repository. If you enable the feature in your settings page, GitHub creates a basic file which you can edit, otherwise you can create the file using any file editor.
1. On GitHub, navigate to the main page of the repository.
[Steps omitted. See step 8 below]
...
7. Add an updates section, with an entry for each package manager you want Dependabot to monitor. This key is mandatory. You use it to configure how Dependabot updates the versions or your project's dependencies. Each entry configures the update settings for a particular package manager.
8. For each package manager, use:
*-> package-ecosystem to specify the package manager.
directories or directory to specify the location of multiple manifest or other definition files.
chedule.interval to specify how often to check for new versions.
9. Check the dependabot.yml configuration file in to the .github directory of the repository.


Reference:

https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuring-dependabot-ver sion-updates



A colleague ignores a code scanning alert.
What are the implications of the colleague’s action? Each answer presents part of the solution. (Choose three.)

  1. Webhooks and the code scanning API remove the alert.
  2. Sensitive information could be leaked.
  3. Data could be used insecurely.
  4. A dangerous argument could be passed to functions.
  5. GitHub removes the alert after sixty days.

Answer(s): B,C,D

Explanation:

If you configure code scanning using CodeQL, you can also find data-flow problems in your code. Data-flow analysis finds potential security issues in code, such as: using data insecurely[C], passing dangerous arguments to functions [D], and leaking sensitive information[B].
When code scanning reports data-flow alerts, GitHub shows you how data moves through the code. Code scanning allows you to identify the areas of your code that leak sensitive information, and that could be the entry point for attacks by malicious users.


Reference:

https://docs.github.com/en/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts



Assuming there is no custom Dependabot behavior configured, where possible, what does Dependabot do after sending an alert about a vulnerable dependency in a repository?

  1. scans repositories for vulnerable dependencies on a schedule and adds those files to a manifest
  2. scans any push to all branches and generates an alert for each vulnerable repository
  3. creates a pull request to upgrade the vulnerable dependency to the minimum possible secure version
  4. constructs a graph of all the repository’s dependencies and public dependents for the default branch

Answer(s): C

Explanation:

In repositories where Dependabot security updates are enabled, when GitHub detects a vulnerable dependency in the default branch, Dependabot creates a pull request to fix it. The pull request will upgrade the dependency to the minimum possible secure version needed to avoid the vulnerability.


Reference:

https://teamdynamix.umich.edu/TDClient/47/LSAPortal/KB/PrintArticle?ID=13191



In a private repository, what minimum requirements does GitHub need to generate a dependency graph? (Each answer presents part of the solution. Choose two.)

  1. read-only access to all the repository’s files
  2. dependency graph enabled at the organization level for all new private repositories
  3. write access to the dependency manifest and lock files for an enterprise
  4. read-only access to the dependency manifest and lock files for a repository

Answer(s): B,D

Explanation:

Configuring the dependency graph
[D] To generate a dependency graph, GitHub needs read-only access to the dependency manifest and lock files for a repository.
[B] Enabling and disabling the dependency graph
Repository administrators can enable or disable the dependency graph for all repositories owned by your user account, regardless of their visibility.
When the dependency graph is first enabled, any manifest and lock files for supported ecosystems are parsed immediately. The graph is usually populated within minutes but this may take longer for repositories with many dependencies. Once enabled, the graph is automatically updated with every push to the repository and every push to other repositories in the graph.


Reference:

https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/confi guring-the-dependency-graph



Viewing page 6 of 27
Viewing questions 21 - 25 out of 127 questions


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

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