Microsoft GH-500 Practice Exam Questions & Answers

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

76 Practice Questions (Our Bank)
100 minutes Exam Duration
USD 165 Official Exam Fee
Exam Facts

Microsoft GH-500 Exam Details

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

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

Question 1 Domain 2 Configure and use Secret Protection (formerly secret scanning)

-- [Configure and Use Secret Scanning]

Where can you find a deleted line of code that contained a secret value?

Correct Answer C
Explanation

Secrets committed and then deleted are still accessible in the repository's Git history. To locate them, navigate to the Commits tab. GitHub's secret scanning can detect secrets in both current and historical commits, which is why remediation should also include revoking the secret, not just removing it from the latest code.

Question 2 Domain 2 Configure and use Secret Protection (formerly secret scanning)

-- [Configure and Use Secret Scanning]

Which patterns are secret scanning validity checks available to?

Correct Answer C
Explanation

Validity checks --- where GitHub verifies if a secret is still active --- are available for partner patterns only. These are secrets issued by GitHub's trusted partners (like AWS, Slack, etc.) and have APIs for GitHub to validate token activity status.

Custom patterns and high entropy patterns do not support automated validity checks.

Question 3 Domain 4 Configure and use Code Security (formerly Code Scanning with CodeQL)

-- [Configure GitHub Advanced Security Tools in GitHub Enterprise]

What step is required to run a SARIF-compatible (Static Analysis Results Interchange Format) tool on GitHub Actions?

Correct Answer A
Explanation

When using a SARIF-compatible tool within GitHub Actions, it's necessary to explicitly add a step in your workflow to upload the analysis results. This is typically done using the upload-sarif action, which takes the SARIF file generated by your tool and uploads it to GitHub for processing and display in the Security tab. Without this step, the results won't be available in GitHub's code scanning interface.

Get the complete GH-500 question set $20$40

Get Full Access

Question 4 Domain 2 Configure and use Secret Protection (formerly secret scanning)

-- [Configure and Use Secret Scanning]

Which details do you have to provide to create a custom pattern for secret scanning? (Each answer presents part of the solution. Choose two.)

Correct Answer A, B
Explanation

When defining a custom pattern for secret scanning, two key fields are required:

Name of the pattern: A unique label to identify the pattern

Secret format: A regular expression that defines what the secret looks like (e.g., token format)

You can optionally specify additional match requirements (like required context keywords), but they're not mandatory. Listing repositories is also not part of the required fields during pattern creation.

Question 5 Domain 2 Configure and use Secret Protection (formerly secret scanning)

-- [Configure and Use Secret Scanning]

What is the first step you should take to fix an alert in secret scanning?

Correct Answer C
Explanation

The first step when you receive a secret scanning alert is to revoke the secret if it is still valid. This ensures the secret can no longer be used maliciously. Only after revoking it should you proceed to remove it from the code history and apply other mitigation steps.

Simply deleting the secret from the code does not remove the risk if it hasn't been revoked --- especially since it may already be exposed in commit history.

Question 6 Domain 4 Configure and use Code Security (formerly Code Scanning with CodeQL)

-- [Use Code Scanning with CodeQL]

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

Correct Answer C
Explanation

For compiled languages, CodeQL performs extraction by monitoring 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.

Question 7 Domain 2 Configure and use Secret Protection (formerly secret scanning)

-- [Configure and Use Dependency Management]

Which key is required in the update settings of the Dependabot configuration file?

Correct Answer D
Explanation

In a dependabot.yml configuration file, package-ecosystem is a required key. It defines the package manager being used in that update configuration (e.g., npm, pip, maven, etc.).

Without this key, Dependabot cannot determine how to analyze or update dependencies. Other keys like rebase-strategy or commit-message are optional and used for customizing behavior.

Study Guide

What the Microsoft GH-500 Exam Covers

Exam domains verified against the 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.

Other Microsoft Exams

Free practice questions for more Microsoft certification exams

All Microsoft exams