GitHub Advanced Security GH-500 Exam Dumps & Practice Test
GitHub Advanced Security Questions 46–50 (page: 11)

Updated On: 16-Nov-2026

Assuming that notification and alert recipients are not customized, what does GitHub do when it identifies a vulnerable dependency in a repository where Dependabot alerts are enabled? (Each answer presents part of the solution. Choose two.)

  1. It generates a Dependabot alert and displays it on the Security tab for the repository.
  2. It consults with a security service and conducts a thorough vulnerability review.
  3. It generates Dependabot alerts by default for all private repositories.
  4. It notifies the repository administrators about the new alert.

Answer(s): A,D

Explanation:

When GitHub identifies a vulnerable dependency in a repository with Dependabot alerts enabled, it performs the following actions:​
[A] Geneates a Dependabot alert: The alert is displayed on the repository's Security tab, providing details about the vulnerability and affected dependency.​
[D] Notifies repository maintainers: By default, GitHub notifies users with write, maintain, or admin permissions about new Dependabot alerts.​
These actions ensure that responsible parties are informed promptly to address the vulnerability.​


Reference:

https://docs.github.com/en/code-security/dependabot/dependabot-alerts/configuring-notifications-for-dependab ot-alerts



When using CodeQL, how does extraction for compiled languages work?

  1. by resolving dependencies to give an accurate representation of the codebase
  2. by monitoring the normal build process
  3. by running directly on the source code
  4. by generating one language at a time

Answer(s): B

Explanation:

For compiled languages, CodeQL performs extraction bymonitoring the normal build process. This means it watches your usual build commands (like make, javac, or dotnet build) and extracts the relevant data from the actual build steps being executed. CodeQL uses this information to construct a semantic database of the application.
This approach ensures that CodeQL captures a precise, real-world representation of the code and its behavior as it is compiled, including platform-specific configurations or conditional logic used during build.


Reference:

https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql -code-scanning-for-compiled-languages



Where can you use CodeQL analysis for code scanning? Each answer presents part of the solution. (Choose two.)

  1. in a third-party Git repository
  2. in an external continuous integration (CI) system
  3. in a workflow
  4. in the Files changed tab of the pull request

Answer(s): B,C

Explanation:

In a workflow: GitHub Actions workflows are the most common place for CodeQL code scanning. The codeql-analysis.yml defines how the analysis runs and when it triggers.
In an external CI system: GitHub allows you to run CodeQL analysis outside of GitHub Actions. Once complete, the results can be uploaded using the upload-sarif action to make alerts visible in the repository.
You cannot run or trigger analysis from third-party repositories directly, and the Files changed tabin pull requests only shows diff — not analysis results.


Reference:

https://docs.github.com/en/code-security/code-scanning/integrating-with-code-scanning/using-code-scanning-with-your-existing-ci-system



What is the purpose of push protection?

  1. to scan and block the code that contains vulnerabilities before it reaches the repository
  2. to validate the push by the code owner
  3. to define license requirements for the repository
  4. to scan and block the code that contains secrets before it reaches the repository

Answer(s): D

Explanation:

When you upload, create, or edit files from the GitHub UI, push protection prevents you from accidentally committing secrets to a repository by blocking commits containing supported secrets. GitHub will also block the commit if you attempt to upload files containing supported secrets.


Reference:

https://docs.github.com/en/code-security/secret-scanning/working-with-secret-scanning-and-push-protection/w orking-with-push-protection-in-the-github-ui



Which of the following Watch settings could you use to get Dependabot alert notifications? Each answer presents part of the solution. (Choose two.)

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

Answer(s): B,D

Explanation:

To receive Dependabot alert notifications for a repository, you can utilize the following Watch settings:
Custom setting: Allows you to tailor your notifications, enabling you to subscribe specifically to security alerts, including those from Dependabot.
All Activity setting: Subscribes you to all notifications for the repository, encompassing issues, pull requests, and security alerts like those from Dependabot.
The Participating and @mentions setting limits notifications to conversations you're directly involved in or mentioned, which may not include security alerts. The Ignore setting unsubscribes you from all notifications, including critical security alerts.


Reference:

https://docs.github.com/en/account-and-profile/managing-subscriptions-and-notifications-on-github/setting-up-notifications/configuring-notifications



Viewing page 11 of 27
Viewing questions 46 - 50 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!