Microsoft GH-500 Practice Exam Questions & Answers

8 Free Questions Last reviewed November 28, 2026 Prepared & Reviewed by the ValidExamDumps Editorial Team

125 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

Answer each question, then see the correct answer and 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]

Which action should you perform first when resolving a secret scanning alert?

Correct Answer C
Explanation

Upon receiving a secret scanning alert, the initial action is to revoke the secret if it is still valid. This prevents anyone from misusing it. Removing it from the code history and applying other mitigation steps should only happen after the revocation is complete.

Simply deleting the secret from the code does not eliminate the risk if it has not been revoked, particularly since it may already be visible in commit history.

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

-- [Describe the GHAS Security Features and Functionality]

Which of the listed items can be viewed in the Security tab of a repository?

Correct Answer A
Explanation

The Security tab of a GitHub repository acts as a central hub for security details, particularly once GitHub Advanced Security is turned on. Users can view:

Alert totals for:

Code scanning

Secret scanning

Dependency (Dependabot) alerts

An overview of open, closed, and dismissed security findings.

It does not display 2FA choices, access control options, or configuration screens for GHAS itself. Those are found in account or organization-level settings.

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

-- [Configure and Use Secret Scanning]

Validity checks can be run against which category of secret scanning patterns?

Correct Answer C
Explanation

GitHub determines whether a detected secret is still active only for partner patterns, a process known as a validity check. These secrets are issued by GitHub's trusted partners (such as AWS, Slack, and others), and those partners provide APIs that allow GitHub to confirm the current status of a token.

Neither custom patterns nor high entropy patterns support automated validity checks.

Get the complete GH-500 question set

Get Full Access

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

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

Which action must be taken to execute a SARIF-compatible (Static Analysis Results Interchange Format) tool within GitHub Actions?

Correct Answer A
Explanation

To run a SARIF-compatible tool inside GitHub Actions, you must deliberately include a step in the workflow that sends the analysis output to GitHub. This is commonly accomplished with the upload-sarif action, which takes the SARIF file produced by the tool and submits it to GitHub so it can be processed and shown in the Security tab. If this step is left out, the findings will not appear in GitHub's code scanning interface.

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

-- [Configure and Use Dependency Management]

Assuming that notification settings and Dependabot alert recipients have not been customized, which user account setting should you use to receive an alert when a vulnerability is found in one of your repositories?

Correct Answer C
Explanation

To make sure you are told whenever Dependabot detects a vulnerability, you need to turn on Dependabot alerts in your personal notification preferences. This covers both newly created and already existing repositories. Doing so ensures you receive prompt warnings about security weaknesses.

The dependency graph has to be switched on so scanning can take place, yet it does not send out alerts on its own.

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

-- [Configure GitHub Actions Workflows]

As a repository owner, you want to prevent a GitHub Actions workflow from running whenever any .txt or markdown file changes. Which adjustments to the event trigger for a pull request targeting the main branch would achieve this? (Each answer forms part of the solution. Select three.)

on:

pull_request:

branches: [main]

Correct Answer A, B, D
Explanation

To keep .txt and .md files from triggering workflows on pull requests to the main branch:

on: specifies the event, such as pull_request

pull_request: serves as the trigger

paths-ignore: is the key that excludes matching file patterns

Example YAML:

yaml

CopyEdit

on:

pull_request:

branches:

- main

paths-ignore:

- '*.md'

- '*.txt'

Choosing paths: would only limit runs to specific files rather than excluding them. paths-ignore: is the right choice in this case.

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

-- [Configure and Use Secret Scanning]

Which YAML keyword should be used to omit specific files from secret scanning?

Correct Answer B
Explanation

Within your YAML workflow file, the paths-ignore: key lets you leave out particular files or directories from secret scanning in GitHub Actions.

GitHub then skips the listed paths when looking for secrets, which is helpful when test data or harmless mock content should not be checked.

The remaining choices are incorrect:

branches-ignore: filters branches rather than files.

decrypt_secret.sh is not a YAML key.

secret scanning.yml is not a recognized configuration filename.

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

-- [Configure and Use Dependency Management]

Assuming no custom Dependabot behavior has been set up, where feasible, what action does Dependabot take after it issues an alert about a vulnerable dependency in a repository?

Correct Answer A
Explanation

Once Dependabot raises an alert for a vulnerable dependency, it automatically tries to open a pull request that upgrades the dependency to the minimum required secure version, provided a fix is available and compatible with your project.

This automated pull request allows teams to remediate vulnerabilities rapidly with little manual effort. Update behavior can also be customized through dependabot.yml, but under default settings, pull request creation happens automatically.

Study Guide

What the Microsoft GH-500 Exam Covers

Exam domains verified against the Official Microsoft GH-500 exam guide, last checked November 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

Above Practice Questions from this Domain: Q1Q2Q3Q5Q6Q8

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

Above Practice Questions from this Domain: Q4Q7

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