CertsPoint
See all results for ""
Exams About Us
Sign In Get Started
Exam Overview
Exam Code GH-500
Exam Name GitHub Advanced Security
Vendor Microsoft
Total Questions 75
Last Updated 26-Oct, 2026
Why CertsPoint?
  • Latest & Verified Questions
  • Detailed Explanations
  • Regular Updates
  • Full-Length Practice Tests
  • Boost Your Exam Confidence

PDF Study Materials

Downloadable guides and resources

Practice Tests

Full-length tests with real exam experience

Progress Tracking

Monitor your performance and improvement

Study Anywhere

Access on desktop, tablet, and mobile

Excellent
4.6 (398 Up Votes)
Secure Payment Privacy Protected Money Back Guarantee

Free GH-500 Practice Questions

Explore 5 free practice questions for the Microsoft GH-500 exam and review the answers and explanations to support your preparation.

  1. Question 1

    Single answer

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

    • Option A:
      Ignore
      Correct
    • Option B:
      Participating and @mentions
      Correct
    • Option C:
      All Activity
      Correct
    • Option D:
      Custom

      Correct
    Show Answer & Explanation Hide Answer & Explanation

    Correct Answer: D

    Explanation

    This setting is configurable per repository and allows users to stay aware of critical issues while
    minimizing notification noise.
    Page 6
    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
    noti ficati ons.
  2. Question 2

    Single answer

    What is a security policy?

    • Option A:
      An automatic detection of security vulnerabilities and coding errors in new or modified code
      Correct
    • Option B:
      B. A security alert issued to a community in response to a vulnerability
      Correct
    • Option C:
      A file in a GitHub repository that provides instructions to users about how to report a security
      vulnerability
      Correct
    • Option D:
      An alert about dependencies that are known to contain security vulnerabilities
      Adding this file also enables a “Report a vulnerability” button in the repository’s Security tab.
      Correct
    Show Answer & Explanation Hide Answer & Explanation

    Correct Answer: C

    Explanation

    A security policy is defined by a SECURITY.md file in the root of your repository or .github/ directory.
    This file informs contributors and security researchers about how to responsibly report
    vulnerabilities. It improves your project’s transparency and ensures timely communication and
    mitigation of any reported issues.A security policy is defined by a SECURITY.md file in the root of your repository or .github/ directory.
    This file informs contributors and security researchers about how to responsibly report
    vulnerabilities. It improves your project’s transparency and ensures timely communication and
    mitigation of any reported issues.A security policy is defined by a SECURITY.md file in the root of your repository or .github/ directory.
    This file informs contributors and security researchers about how to responsibly report
    vulnerabilities. It improves your project’s transparency and ensures timely communication and
    mitigation of any reported issues.
  3. Question 3

    Single answer

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

    • Option A:
      An automatic detection of security vulnerabilities and coding errors in new or modified code
      Correct
    • Option B:
      CodeQL analyzes the code and raises vulnerabilities in third-party dependencies
      Correct
    • Option C:
      A dependency graph is created, and Dependabot compares the graph to the GitHub Advisory
      database
      Correct
    • Option D:
      The build tool finds the vulnerable dependencies and calls the Dependabot API
      Correct
    Show Answer & Explanation Hide Answer & Explanation

    Correct Answer: C

    Explanation

    Dependabot builds a dependency graph by analyzing package manifests and lockfiles in your
    repository. This graph includes both direct and transitive dependencies. It then compares this graph
    against the GitHub Advisory Database, which includes curated, security-reviewed advisories.
    This method provides a comprehensive and automated way to discover all known vulnerabilities
    across your dependency tree.
  4. Question 4

    Single answer

    When does Dependabot alert you of a vulnerability in your software development process?

    • Option A:
      When a pull request adding a vulnerable dependency is opened
      Correct
    • Option B:
      As soon as a vulnerable dependency is detected
      Correct
    • Option C:
      As soon as a pull request is opened by a contributor
      Correct
    • Option D:
      When Dependabot opens a pull request to update a vulnerable dependency
      Correct
    Show Answer & Explanation Hide Answer & Explanation

    Correct Answer: B

    Explanation

    Dependabot alerts are generated as soon as GitHub detects a known vulnerability in one of your
    dependencies. GitHub does this by analyzing your repository’s dependency graph and matching it
    against vulnerabilities listed in the GitHub Advisory Database. Once a match is found, the system
    raises an alert automatically without waiting for a PR or manual action.
    This allows organizations to proactively mitigate vulnerabilities as early as possible, based on realtime
    detection.
  5. Question 5

    Single answer

    After investigating a code scanning alert related to injection, you determine that the input is properly
    sanitized using custom logic. What should be your next step?

    • Option A:
      Draft a pull request to update the open-source query.
      Correct
    • Option B:
      Ignore the alert.
      Correct
    • Option C:
      Open an issue in the CodeQL repository
      Correct
    • Option D:
      Dismiss the alert with the reason "false positive."
      Correct
    Show Answer & Explanation Hide Answer & Explanation

    Correct Answer: D

    Explanation

    When you identify that a code scanning alert is a false positive—such as when your code uses a
    custom sanitization method not recognized by the analysis—you should dismiss the alert with the
    reason "false positive." This action helps improve the accuracy of future analyses and maintains the
    relevance of your security alerts. As per GitHub's documentation:
    – [Configure and Use Code Scanning]
    C. Open an issue in the CodeQL repository.
    D. Dismiss the alert with the reason "false positive."
    A. Draft a pull request to update the open-source query.
    "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."