Microsoft GH-500 Practice Exam Questions & Answers
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
- Full Question Set
- 125 questions Get All Questions
Free GH-500 Practice Questions
Answer each question, then see the correct answer and why it is right
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?
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?
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?
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 AccessQuestion 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?
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?
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]
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?
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?
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.
Practice every GH-500 question in the full set, each one with its verified answer and a detailed explanation
Get Full AccessWhat 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
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
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.
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?
What is the main difference between GH-500 and the other GitHub exams like GH-900 and GH-100?
How long should I spend preparing for the GH-500 exam?
Which exam objectives do candidates find most challenging?
What does the GH-500 exam day involve?
Can I retake the GH-500 exam and what is the rescheduling policy?
How long does the GH-500 certification stay valid once I pass?
What job role does GH-500 certification prepare me for?
What is the passing score for the GH-500 exam?
What languages is the GH-500 exam available in?
Other Microsoft Exams
Free practice questions for more Microsoft certification exams
