GitHub Advanced Security GH-500 Exam Dumps & Practice Test
GitHub Advanced Security Questions 41–45 (page: 10)

Updated On: 16-Nov-2026

Which of the following is the most complete method for Dependabot to find vulnerabilities in third-party dependencies?

  1. CodeQL analyzes the code and raises vulnerabilities in third-party dependencies.
  2. Dependabot reviews manifest files in the repository.
  3. The build tool finds the vulnerable dependencies and calls the Dependabot API.
  4. A dependency graph is created, and Dependabot compares the graph to the GitHub Advisory database.

Answer(s): D

Explanation:

Security Alerts
Dependabot security alerts is a native GitHub service designed for the efficient management of vulnerable dependencies. It continuously scans the project’s dependency graph, comparing it to the GitHub security advisory database. Upon detecting a vulnerable dependency version, it prompts developers with a security alert. Dependabot leverages the dependency graph to execute vulnerability scans. To generate this graph, it parses both manifest and lock files residing in the repository’s default branch and constructs a comprehensive representation of the complete dependency tree.
Note: GitHub Advisory Database is one of the data sources that GitHub uses to identify vulnerable dependencies and malware. It's a free, curated database of security advisories for common package ecosystems on GitHub. It includes both data reported directly to GitHub from GitHub Security Advisories, as well as official feeds and community sources. This data is reviewed and curated by GitHub to ensure that false or unactionable information is not shared with the development community.


Reference:

https://docs.github.com/en/code-security/dependabot/troubleshooting-dependabot/troubleshooting-the-detectio n-of-vulnerable-dependencies



After looking into an injection code scanning alert, you notice that the input is properly sanitized with custom logic.
Which of the following is the next step?

  1. Dismiss the alert with the reason “false positive.”
  2. Ignore the alert.
  3. Open an issue in the CodeQL repository.
  4. Draft a pull request to update the open source query.

Answer(s): A

Explanation:

Dismissing alerts
There are two ways of closing an alert. You can fix the problem in the code, or you can dismiss the alert.
Dismissing an alert is a way of closing an alert that you don't think needs to be fixed. For example, an error in code that's used only for testing, or when the effort of fixing the error is greater than the potential benefit of improving the code. You can dismiss alerts from code scanning annotations in code, or from the summary list within the Security tab.
If you dismiss a CodeQL alert as a false positive result, for example because the code uses a sanitization library that isn't supported, consider contributing to the CodeQL repository and improving the analysis.


Reference:

https://docs.github.com/en/code-security/code-scanning/managing-code-scanning-alerts/resolving-code-scanni ng-alerts



HOTSPOT (Drag and Drop is not supported)
You have a GitHub Enterprise Cloud Organization that uses GitHub Advanced Security and runs CodeQL code scanning on pull requests (PRs).
You discover that a specific CodeQL alert is a false positive and must be closed without changing the code.
You need to dismiss the alert as a false positive result and add a dismissal comment.
How should you complete the GitHub CLI command? 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: Gh gh is the core executable command for the GitHub CLI tool. All GitHub CLI commands start with gh followed by the specific extension or API flag.
Box 2: ${owner}/${repo}
{owner}/{repo} represents the repository path required by the GitHub REST API endpoint. For an enterprise cloud organization, {owner} is your GitHub Organization name and {repo} is the specific repository name where the alert resides (e.g., my-org/my-application).


Reference:

https://cve.akaoma.com/cve-2023-3883



Assuming that no custom patterns are configured, what type of secret is detected by secret scanning?

  1. usernames
  2. sealed boxes
  3. Personal Identifiable Information (PII)
  4. private keys

Answer(s): D

Explanation:

GitHub secret scanning detects and alerts on sensitive data exposure, such as API keys and credentials, in your code repositories.


Reference:

https://www.sentinelone.com/cybersecurity-101/cloud-security/github-secret-scanning 1



Which syntax in a query suite tells CodeQL to look for one or more specified .ql files?

  1. qlpack
  2. query
  3. qls

Answer(s): B

Explanation:

Locating queries to add to a query suite
When creating a query suite, you first need to specify the locations of the queries that you want to select. You can define the location of one or more queries using:
A query instruction: Tells CodeQL to look for one or more specified .ql files:
- query: <path-to-query>
The argument must be one or more file paths, relative to the CodeQL pack containing the suite definition.


Reference:

https://docs.github.com/en/code-security/codeql-cli/using-the-advanced-functionality-of-the-codeql-cli/creating-codeql-query-suites



Viewing page 10 of 27
Viewing questions 41 - 45 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!