GitHub Advanced Security GH-500 Exam Dumps & Practice Test
GitHub Advanced Security Questions 31–35 (page: 8)

Updated On: 16-Nov-2026

HOTSPOT (Drag and Drop is not supported)
You have a GitHub Enterprise Cloud Organization that uses GitHub Code Security.
You need to create a security campaign to remediate cross-site scripting (XSS) vulnerabilities identified by code scanning. The campaign must meet the following requirements:
-Include only alerts that support automatic remediation.
-Include only alerts associated with cross-site scripting (CWE-79).
-Enable eligible security administrators to manage and track the campaign.
How should you configure the campaign? To answer, select the appropriate options in the answer area.
Note: Each correct selection is worth one point.
Hot Area:

  1. See Explanation section for answer.

Answer(s): A

Explanation:



Box 1: cwe:79 autofix:supported
To target code scanning alerts for your security campaign that specifically associate with cross-site scripting (CWE-79) and support automatic remediation via Copilot Autofix, you should use the following alert selection filter string:
To narrow your security campaign to exactly what you need, use the following syntax in the search/filter bar: cwe:79 autofix:supported
Box 2: Select organization owners or security managers as campaign managers.
To configure campaign managers for a security campaign in a GitHub Enterprise Cloud Organization, you must grant the eligible administrators either the Organization Owner role or the Security Manager role. Only users assigned to these specific roles have the mandatory, organization-wide administrative privileges required to create, manage, and track security campaigns.


Reference:

https://docs.github.com/en/code-security/tutorials/secure-your-organization/best-practice-fix-alerts-at-scale https://docs.github.com/en/enterprise-cloud@latest/code-security/tutorials/secure-your-organization/best-practi ce-fix-alerts-at-scale



Which security feature shows a vulnerable dependency in a pull request?

  1. dependency review
  2. dependency graph
  3. Dependabot alert
  4. the repository’s Security tab

Answer(s): A

Explanation:

Configuring the dependency review action
You can use the dependency review action to catch vulnerabilities before they are added to your project.
About the dependency review action
The "dependency review action" refers to the specific action that can report on differences in a pull request within the GitHub Actions context, and add enforcement mechanisms to the GitHub Actions workflow.
The dependency review action scans your pull requests for dependency changes and raises an error if any new dependencies have known vulnerabilities. The action is supported by an API endpoint that compares the dependencies between two revisions and reports any differences.


Reference:

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



Which of the following dependencies could trigger a Dependabot alert? Each answer presents a complete solution. (Choose two.)

  1. loose dependencies declared in a manifest
  2. direct dependencies explicitly declared in a manifest
  3. direct dependencies at 08:00 UTC
  4. indirect dependencies explicitly declared in a lockfile

Answer(s): B,D

Explanation:

[B]
A Dependabot direct dependency is a package or library that your project explicitly lists and requires in its manifest file (like package.json or Gemfile). Dependabot specifically focuses on these direct dependencies, creating automated pull requests to update them to newer, more secure, or stable versions, helping to keep your project's dependencies up-to-date and prevent security vulnerabilities.
[D]
Direct dependencies may have their own dependencies, which are referred to as transitive dependencies or indirect dependencies.
Locked Files and Dependencies
A locked file in software development is a file that records the exact versions of all dependencies (both direct and transitive) used in a project at a specific point in time. It acts as a snapshot of the dependency graph, ensuring that the project builds consistently with the same versions across different environments.


Reference:

https://docs.github.com/en/code-security/dependabot/dependabot-alerts/about-dependabot-alerts https://www.arnica.io/blog/direct-vs-transitive-dependencies-navigating-package-management-in-software-com position-analysis-sca



As a repository owner, you want to receive specific notifications, including security alerts, for an individual repository.
Which repository notification setting should you use?

  1. Custom
  2. All Activity
  3. Ignore
  4. Participating and @mentions

Answer(s): A

Explanation:

Using the Custom setting allows you to subscribe to specific event types, such as Dependabot alerts or vulnerability notifications, without being overwhelmed by all repository activity. This is essential for repository maintainers who need fine-grained control over what kinds of events trigger notifications.
This setting is configurable per repository and allows users to stay aware of critical issues while minimizing notification noise.
Note: Configuring your watch settings for an individual repository
You can choose whether to watch or unwatch an individual repository. You can also choose to only be notified of certain event types such as issues, pull requests, releases, security alerts, or discussions (if enabled for the repository), or completely ignore an individual repository.
1.On GitHub, navigate to the main page of the repository.
2. In the upper-right corner, select the "Watch" drop-down menu, then click a watch option.
If you want to further customize notifications, click Custom, then select specific events that you want to be notified of, such as Issues or Pull Requests, in addition to participating and @mentions.
For example, if you select "Issues", you will be notified about, and subscribed to, updates on every issue (including those that existed prior to you selecting this option) in the repository. If you're @mentioned in a pull request in this repository, you'll receive notifications for that too, and you'll be subscribed to updates on that specific pull request, in addition to being notified about issues.


Reference:

https://docs.github.com/en/account-and-profile/managing-subscriptions-and-notifications-on-github/setting-up-notifications/configuring-notifications#configuring-your-watch-settings-for-an-individual-repository



Where can you find the vulnerable dependencies that GitHub detected in your repository?

  1. in security advisories
  2. in code scanning alerts
  3. in secret scanning alerts
  4. in Dependabot alerts

Answer(s): D

Explanation:

Identifying vulnerabilities in your project's dependencies with Dependabot alerts
Dependabot generates Dependabot alerts when known vulnerabilities are detected in dependencies that your project uses.
Dependabot alerts tab
If GitHub discovers insecure dependencies in your project, you can view details on the Dependabot alerts tab of your repository. Then, you can update your project to resolve or dismiss the alert.


Reference:

https://docs.github.com/en/code-security/dependabot/dependabot-alerts



Viewing page 8 of 27
Viewing questions 31 - 35 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!