Microsoft GH-500 Practice Exam Questions & Answers

7 Free Questions · Last reviewed: October 14, 2026 · Prepared & Reviewed by the ValidExamDumps Editorial Team

Exam Facts

Microsoft GH-500 Exam Details

Key details for this exam, checked against the published exam outline

76 Practice Questions (Our Bank)
100 minutes Exam Duration
USD 165 Official Exam Fee
Exam Code
GH-500
Full Name
GitHub Advanced Security Exam
Issuing Body
Microsoft
Question Format (Our Bank)
Multiple Choice
Delivery
Online proctored or at a Pearson VUE test centre
Practice Questions

Free GH-500 Practice Questions

Each question shows the correct answer and an explanation of why it is right

VA
ValidExamDumps Editorial Team Every question and its answer is checked by our GH-500 exam preparation team, who also write the explanation shown with each one. How we research and review these pages

-- [Configure and Use Secret Scanning]

What is a prerequisite to define a custom pattern for a repository?

Correct Answer: D
Explanation

You must enable secret scanning before defining custom patterns. Secret scanning provides the foundational capability for detecting exposed credentials, and custom patterns build upon that by allowing organizations to specify their own regex-based patterns for secrets unique to their environment.

Without enabling secret scanning, GitHub will not process or apply custom patterns.

-- [Configure and Use Secret Scanning]

What do you need to do before you can define a custom pattern for a repository?

Correct Answer: C
Explanation

Comprehensive and Detailed Explanation:

Before defining a custom pattern for secret scanning in a repository, you must enable secret scanning for that repository. Secret scanning must be active to utilize custom patterns, which allow you to define specific formats (using regular expressions) for secrets unique to your organization.

Once secret scanning is enabled, you can add custom patterns to detect and prevent the exposure of sensitive information tailored to your needs.

-- [Configure and Use Dependency Management]

In the pull request, how can developers avoid adding new dependencies with known vulnerabilities?

Correct Answer: C
Explanation

To detect and block vulnerable dependencies before merge, developers should use the Dependency Review GitHub Action in their pull request workflows. It scans all proposed dependency changes and flags any packages with known vulnerabilities.

This is a preventative measure during development, unlike Dependabot, which reacts after the fact.

-- [Configure and Use Dependency Management]

What are Dependabot security updates?

Correct Answer: A
Explanation

Dependabot security updates are automated pull requests triggered when GitHub detects a vulnerability in a dependency listed in your manifest or lockfile. These PRs upgrade the dependency to the minimum safe version that fixes the vulnerability.

This is separate from regular updates (which keep versions current even if not vulnerable).

-- [Configure and Use Secret Scanning]

A secret scanning alert should be closed as "used in tests" when a secret is:

Correct Answer: C
Explanation

If a secret is intentionally used in a test environment and poses no real-world security risk, you may close the alert with the reason 'used in tests'. This helps reduce noise and clarify that the alert was reviewed and accepted as non-critical.

Just being in a test file isn't enough unless its purpose is purely for testing.

-- [Configure and Use Dependency Management]

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

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 real-time detection.

-- [Describe GitHub Advanced Security Best Practices]

Which of the following tasks can be performed by a security team as a proactive measure to help address secret scanning alerts? (Each answer presents a complete solution. Choose two.)

Correct Answer: B, D
Explanation

To proactively address secret scanning:

Webhooks can be configured to listen for secret scanning events. This allows automation, logging, or alerting in real-time when secrets are detected.

Documenting secure development practices (like using environment variables or secret managers) helps reduce the likelihood of developers committing secrets in the first place.

Dismissal based on age is not a best practice without triage. SCIM deals with user provisioning, not scanning alerts.

Full Access

Get the complete GH-500 question set

  • 76 questions covering all exam domains
  • Correct answers with explanations, like the free questions above
  • PDF and online practice test
  • 90 days of free updates
Starting from 50% OFF
$20 $40
Get Full Access

One-time payment · Instant download

Study Guide

What the Microsoft GH-500 Exam Covers

Exam domains verified against: Official Microsoft GH-500 exam guide, last checked October 2026.

Domain 1: Describe GitHub Security suites, features, and ecosystem 15% - 20%

Understand GitHub Security suites and architecture, including how Code Security, Secret Protection, and Supply Chain Security fit together. Learn to navigate the Security Overview and recognize how feature availability differs between public and enterprise repositories.

Domain 2: Configure and use Secret Protection (formerly secret scanning) 15% - 20%

Enable and configure Secret Protection; Enable GitHub Secret Protection at the repository and organization levels; Configure Secret Protection settings and feature availability; Contrast Secret Protection behavior for public vs. private/enterprise repositories; Prevent secret exposure; Explain Push Protection and how it prevents secrets at the source; Describe validity checks and prioritized alerting for high-confidence secrets; Manage and respond to Secret Protection alerts; Describe the Secret Protection alert lifecycle (creation, status, dismissal); Respond to secret alerts and apply appropriate remediation actions; Explain implications and best practices for dismissing or ignoring alerts; Control access, policies, and customization; Explain role-based and delegated bypass policies in Secret Protection; Configure alert recipients and exclusions; Create and manage custom secret patterns

Sample questions from this domain above: Q1Q2Q4Q5Q7

Domain 3: Configure and use supply chain security (formerly Dependabot/Dependency Review) 15% - 20%

Understand and manage dependency and supply chain risks; Comprehensive dependency security (tools, vulnerability databases, SBOMs); Generate and interpret the dependency graph; SBOM usage: export options, formats, and supply chain context; Detect, prioritize, and respond to supply chain alerts; Supply chain alerts and security updates (prioritization, EPSS scoring); Remediating supply chain alerts through campaigns and pull requests; Auto-dismiss behavior and security campaign configuration; Secure dependencies during development; Dependency Review (pre-merge checks, license and compliance validation, configuration); Advanced dependency update rules (grouping, auto-dismiss, update strategies); Configure policies, permissions, and integrations; Permissions and role-based alert assignment; Workflow management for dependency and supply chain security; External notifications, webhooks, and security integrations

Domain 4: Configure and use Code Security (formerly Code Scanning with CodeQL) 10% - 15%

Understand code scanning approaches and tooling; Native and third-party code scanning options; Choosing between CodeQL and third-party analysis tools; SARIF file ingestion, management, and interoperability; Set up and configure Code Security; Enable code security using GitHub Actions or external CI systems; Configure code scanning workflows and workflow templates; Use matrix builds and define appropriate scan frequency; Analyze, triage, and remediate code scanning results; Review scan results, including dataflow analysis insights; Alert lifecycles, autofix capabilities, and remediation workflows; Dismissing alerts and managing severity and category classifications; Optimize and automate Code Security operations; Advanced configuration and customization; Troubleshooting scan failures and performance issues

Sample questions from this domain above: Q3Q6

Domain 5: Security operations: best practices, prioritization, and remediation 15% - 20%

Prioritize and manage security work at scale using severity rulesets and campaign-based remediation. Apply CVE and CWE knowledge to guide remediation and collaborate across teams with appropriate role assignments.

Domain 6: GitHub Security suites administration 10% - 15%

Enable and configure security features at enterprise, organization, and repository levels. Define policies, roles, and enforcement boundaries, and use APIs for large-scale governance and automation.

FAQ

GH-500 Exam FAQ

Common questions about the exam itself

How hard is the GH-500 exam and what experience level should I have before taking it?
GH-500 is designed for experienced professionals with intermediate to advanced GitHub expertise and hands-on experience securing software development workflows. You need practical knowledge of Code Security, Secret Protection, and supply chain security tools, plus experience with GitHub Enterprise administration.
What is the main difference between GH-500 and the other GitHub exams like GH-900 and GH-100?
GH-900 covers GitHub Foundations for all users, GH-100 focuses on GitHub Administration, and GH-500 is specifically for advanced security configuration and operations. GH-500 goes deep into CodeQL, secret scanning, Dependabot, and large-scale policy enforcement.
How long should I spend preparing for the GH-500 exam?
Most candidates need three to six months of study and hands-on practice, especially if learning GitHub Advanced Security features for the first time. Realistic preparation includes the official training course, hands-on labs in actual GitHub Enterprise environments, and multiple practice exams.
Which exam objectives do candidates find most challenging?
Code Security with CodeQL and supply chain security with Dependabot configuration typically challenge candidates most because they require both conceptual knowledge and practical configuration skills. Spending extra time on CodeQL query customization and SBOM workflows helps significantly.
What does the GH-500 exam day involve?
The exam is delivered online proctored or at a Pearson VUE test centre and lasts 100 minutes. You answer a mix of multiple-choice and scenario-based questions that test both security concepts and real-world decision making in GitHub environments.
Can I retake the GH-500 exam and what is the rescheduling policy?
Microsoft allows up to three exam attempts within a 12-month rolling period. After three failures, you must wait 14 days before scheduling another attempt. Each retake costs the full exam fee of USD 165.
How long does the GH-500 certification stay valid once I pass?
Microsoft GitHub certifications do not have a published expiration date. however, Microsoft periodically retires or updates exams. You should stay current with GitHub Advanced Security releases to maintain practical relevance.
What job role does GH-500 certification prepare me for?
GH-500 prepares you for roles including Security Engineer, DevSecOps Engineer, GitHub Enterprise Security Administrator, and Security Architect. It validates your ability to design and operate secure development workflows at enterprise scale.
What is the passing score for the GH-500 exam?
Microsoft does not publish the exact passing score for GH-500. the score is determined using a scaled scoring method based on exam difficulty. Most candidates should aim for strong performance across all objective areas to pass.
What languages is the GH-500 exam available in?
The GH-500 study guide is available in English on Microsoft Learn. Some exams are localized into other languages and are updated approximately eight weeks after English release, but the complete language list for this exam is not yet published.