Home/microsoft/Free Microsoft GH-500 Actual Exam Questions

Free Microsoft GH-500 Actual Exam Questions

The questions for this exam were last updated on January 9, 2026

Dumps Box (DumpsBox) offers up-to-date practice exam questions for GH-500 certification exam which are developed and validated by Microsoft subject domain experts certified in Microsoft GH-500 . These practice questions are update regularly as we keep an eye on any recent changes in GH-500 syllabus, and when there is update our team quickly adjusts the questions. This commitment to providing the best quality exam prep material to certification aspirants is what makes DumpsBox.com the best certification exam prep website. On top of that, our strong, yet strictly moderated, community based feedback keeps the content clean and current. Each question has helpful community discussion that provides it extra perspective and introduces helpful resources for better exam preparation. This also saves students from other outdated practice questions or illicit exam dumps that can have adverse affects on career. Browse through our Microsoft GH-500 exam questions and pass your exam on first try.

Question No. 1
– [Configure and Use Secret Scanning]
Secret scanning will scan:
Select one option, then reveal solution.
Top comments
OC
Osama C.
2026-02-17

C. Secret scanning is specifically designed for GitHub repositories, not external services or CI systems. It scans commits and pushes to those repos to catch secrets before they get exposed. Public repos have it enabled by default, but private repos might need you to turn it on manually. So it doesn’t cover just any Git repo anywhere, only the ones hosted on GitHub. That rules out B and D pretty clearly.

0
RK
Ryan K.
2026-01-25

Makes sense to exclude A since CI systems aren’t the main target here. Secret scanning is more about the repo content itself, so C fits best.

0
Question No. 2
– [Use Code Scanning with CodeQL]
Why should you dismiss a code scanning alert?
Select one option, then reveal solution.
Top comments
LP
Liam P.
2026-02-18

It’s A, since you shouldn’t dismiss alerts unless the issue’s actually fixed.

0
LP
Liam P.
2026-02-17

What about A? Fixing the issue seems like the main reason to dismiss alerts.

0
Question No. 3
– [Configure and Use Secret Scanning]
A secret scanning alert should be closed as "used in tests" when a secret is:
Select one option, then reveal solution.
Top comments
RI
Ryan I.
2026-02-12

Guessing C since “solely used for tests” feels more precise than just “in a test file.”

0
FL
Fahad L.
2026-01-24

Maybe B makes sense since test files are where test secrets typically live, so closing alerts for secrets found there could be standard practice without needing to verify exclusivity.

0
Question No. 4
– [Configure and Use Dependency Management]
Which of the following formats are used to describe a Dependabot alert? (Each answer presents a
complete solution. Choose two.)
Select all that apply, then reveal solution.
Top comments
JJ
John J.
2026-02-21

A/C? CWE is pretty common for categorizing types of weaknesses, which makes sense for describing alerts. CVE is definitely used to ID specific vulnerabilities, so that’s a solid pick too. VEX feels more like detailed exploit info rather than the alert format itself, and EPSS seems more predictive than descriptive. So I’d go with A and C here.

0
AR
Arjun R.
2026-02-09

C imo, CVE is definitely used to identify vulnerabilities clearly. D also fits because VEX deals with sharing exploitability info, which is relevant to alerts.

0
Question No. 5
– [Configure GitHub Actions Workflows]
As a repository owner, you do not want to run a GitHub Actions workflow when changes are made to
any .txt or markdown files. How would you adjust the event trigger for a pull request that targets the
main branch? (Each answer presents part of the solution. Choose three.)
on:
pull_request:
branches: [main]
Select all that apply, then reveal solution.
Top comments
AS
Arjun S.
2026-02-19

D with A and B feels right since paths-ignore is for skipping files, and A and B cover all .md and .txt files broadly. E is too narrow, focusing only on docs/*.md.

0
AS
Arjun S.
2026-02-17

Probably D, A, and B since paths-ignore with those patterns excludes all .md and .txt files globally.

0
Question No. 6
– [Describe GitHub Advanced Security Best Practices]
Which of the following benefits do code scanning, secret scanning, and dependency review provide?
Select one option, then reveal solution.
Top comments
CC
Chris C.
2026-02-21

Maybe A, it’s the only option that covers all three tools properly instead of just one or two parts. C just talks about dependencies, so doesn’t fully fit the question.

0
CC
Chris C.
2026-02-18

Option C fits since it focuses on alerts for vulnerable dependencies, which is a key benefit of dependency review. The others mention broader or slightly different features that don’t cover all three tools equally.

0
Question No. 7
– [Configure and Use Dependency Management]
Which security feature shows a vulnerable dependency in a pull request?
Select one option, then reveal solution.
Top comments
ZD
Zain D.
2026-02-11

Maybe B, since dependency review highlights issues right in the pull request itself.

0
OE
Osama E.
2026-02-09

C/D? Dependabot alerts (C) notify about vulnerabilities but usually after the PR is created, while the Security tab (D) is more of a dashboard, not PR-specific. So C fits better for showing issues tied to a PR.

0
Question No. 8
– [Use Code Scanning with CodeQL]
What does code scanning do?
Select one option, then reveal solution.
Top comments
SA
Sohail A.
2026-01-25

C/D? C fits because CodeQL finds vulnerabilities, but D also mentions scanning history for secrets, which sounds familiar. Not sure if CodeQL covers secrets or just code issues.

0
JJ
John J.
2026-01-21

It mainly scans repos for vulnerabilities, so C.

0
Question No. 9
– [Configure and Use Dependency Management]
Which of the following options would close a Dependabot alert?
Select one option, then reveal solution.
Top comments
FD
Farhan D.
2026-02-13

Option A makes sense since the alert only closes when the fix gets merged, not just created or approved. The other options don’t change the alert status.

0
FD
Farhan D.
2026-02-12

It’s A because the alert only closes once the fix is merged, not just created or approved. Just viewing or ignoring the alert doesn’t close it.

0
Question No. 10

– [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.)

Select all that apply, then reveal solution.
Top comments
MO
Mason O.
2026-02-16

B D, you need to name it and refine the matching criteria clearly.

0
MO
Mason O.
2026-02-15

Maybe B and D. You need to name the pattern and specify how exactly it should match, which feels like the core of creating a custom pattern. The secret format might be covered by those match requirements.

0
Question No. 11
– [Configure and Use Secret Scanning]
What is the first step you should take to fix an alert in secret scanning?
Select one option, then reveal solution.
Top comments
AA
Adeel A.
2026-02-21

Adeel A. imo, archiving the repo (A) is way too drastic as a first step. You want to fix the secret issue, not just lock everything down immediately. Better to focus on removing or revoking the secret first.

0
AA
Adeel A.
2026-02-20

B tbh, updating dependencies is a quick way to fix if the secret comes from outdated or vulnerable libraries. Removing secrets is key, but sometimes the root cause is an old dependency.

0
Question No. 12
– [Configure and Use Secret Scanning]
Which of the following is the best way to prevent developers from adding secrets to the repository?
Select one option, then reveal solution.
Top comments
CK
Chris K.
2026-02-20

A imo isn’t really about stopping secrets, it’s just about ownership and reviews. B makes no sense since public repos would expose secrets more, not prevent adding them. C sounds vague and more about oversight than prevention. D actually blocks pushes containing secrets, so it’s the most direct way to stop secrets from ever entering the repo. Even if the platform isn’t specified, D fits best for the question’s goal of prevention rather than detection.

0
AI
Arjun I.
2026-02-13

Makes sense, but enabling push protection (D) directly stops secrets at commit time, so D.

0
Question No. 13
– [Configure and Use Dependency Management]
You are a maintainer of a repository and Dependabot notifies you of a vulnerability. Where could the
vulnerability have been disclosed? (Each answer presents part of the solution. Choose two.)
Select all that apply, then reveal solution.
Top comments
PT
Paul T.
2026-02-19

I see where A and C come from, but I think B is worth considering too. The dependency graph isn’t just for mapping dependencies; it can highlight vulnerabilities once they’re known. If a vulnerability is discovered, it gets flagged there as part of the dependency info. So maybe the vulnerability could be disclosed or at least shown in the dependency graph itself alongside the affected packages. D seems off since manifest and lock files just list dependencies, not vulnerabilities. So my picks would be A and B.

0
MI
Mark I.
2026-02-12

A/C? The National Vulnerability Database is a known public source for disclosed vulnerabilities, and GitHub security advisories are another official channel where these get reported. B and D seem more like tools for managing or detecting the issue rather than sources of disclosure. So, the actual vulnerability details would originate from A and C, not from dependency graphs or manifest files.

0
Question No. 14
– [Configure and Use Secret Scanning]
Assuming security and analysis features are not configured at the repository, organization, or
enterprise level, secret scanning is enabled on:
Select one option, then reveal solution.
Top comments
MR
Mason R.
2026-02-18

Maybe A makes the most sense since public repos are open and more vulnerable, so secret scanning would be default there to protect sensitive info without extra setup.

0
MR
Mason R.
2026-02-17

Looks like secret scanning turns on automatically for public repos, which matches option A. Private repos need manual setup, so that rules out the others. A it is.

0
Question No. 15
– [Configure and Use Dependency Management]
In the pull request, how can developers avoid adding new dependencies with known vulnerabilities?
Select one option, then reveal solution.
Top comments
AN
Ali N.
2026-02-17

It’s C because it actively scans the PR before merging, unlike alerts or updates.

0
AN
Ali N.
2026-02-13

Option C makes the most sense to me because adding a workflow with the dependency review action actively checks each PR for issues, stopping vulnerable dependencies before they get merged. That’s more direct than just alerts or updates.

0