Exam Information
Free practice questions with explanations
Microsoft GH-500 Practice Questions
Answer a question to see the correct answer and the explanation, or click Show answer. Newest questions first.
- Questions
- 14
- Answered
- 0
- Correct
- 0
- Score
- -
-
1 Question 1 Single choice Configure and use Code Security (formerly Code Scanning with CodeQL)
A platform team at a logistics company uses GitHub Actions to run CodeQL analysis on a monorepo that contains Java, JavaScript, and Go services. Their current workflow scans only Java because the default setup was replaced by a hand-written workflow that lists languages statically. Scans for JavaScript and Go now never run, and the team has a compliance requirement that all three languages be analysed on every pull request targeting main. Build minutes are constrained, so the team does not want to run three separate workflows. Which change is the BEST way to meet the requirement?
Correct Answer: BExplanationA matrix build over the language list lets each language run as its own job within one workflow file, which satisfies the per-language coverage requirement and keeps the workflow count low. Setting languages to auto does not solve the constraint of analysing every language in the monorepo on pull requests with a predictable, reviewable configuration, and it hides which languages were scanned. Three separate workflows would meet coverage but violates the stated preference against multiple workflows and adds maintenance. Changing to push triggers on all branches widens scanning scope and cost without ensuring pull request gating, which the compliance rule requires.
-
2 Question 2 Single choice Configure and use Secret Protection (formerly secret scanning)
An enterprise has enabled Secret Protection on all private repositories in a GitHub Enterprise Cloud organization. Developers frequently push credentials, and the security team wants to stop secrets before they reach the remote repository, including from developers' local Git clients who have not installed any extra tooling. The team also wants to avoid blocking legitimate test fixtures that contain placeholder tokens, and they want a documented path for the rare case where a developer must push a flagged value. Which configuration best meets these requirements?
Correct Answer: BExplanationPush protection operates server-side at push time, so it works regardless of whether a local client has extra tooling, and it can be enabled across the organization. A bypass with a recorded reason gives the documented exception path the team wants. Restricting protection to the default branch misses feature branches where secrets are also exposed, and post-push triage does not prevent exposure. A local pre-commit hook depends on every workstation being configured and is easily skipped. Blocking every string that matches a fixture format would also block legitimate placeholders and is not a supported way to define exceptions for push protection.
-
3 Question 3 Single choice Configure and use supply chain security (formerly Dependabot/Dependency Review)
A fintech company runs a dependency review action on pull requests to flag newly introduced vulnerable packages. Developers complain that the check fails on pull requests where a transitive dependency with a moderate advisory was added by an unrelated library upgrade and the change cannot be fixed in that pull request. The security lead wants to keep blocking high and critical vulnerabilities and still see moderate ones reported, without changing the requirement that licence violations for GPL-3.0 packages must always block a merge. Which change should the engineer make first?
Correct Answer: BExplanationThe dependency review action accepts a fail-on-severity threshold, so setting it to high keeps blocking high and critical findings while moderate ones are still reported. Keeping deny-licenses with GPL-3.0 preserves the licence gate the company requires. Setting the threshold to critical would let high vulnerabilities merge, violating the blocking requirement. Disabling the action removes pre-merge checks entirely, and dependency graph is required for the review to work rather than a way to reduce its scope.
-
4 Question 4 Single choice Describe GitHub Security suites, features, and ecosystem
A university has a public GitHub organization hosting open-source research code and a separate private GitHub Enterprise Cloud organization for internal administrative tools. The security team wants to know which capabilities they can rely on in each location before drafting a standard. The public repositories are published under open-source licences, and the team is considering whether advanced security features are available there without a paid licence. Which statement correctly describes the feature availability the team should document?
Correct Answer: CExplanationSecret scanning and code scanning are available at no cost on public repositories, whereas push protection and code scanning on private repositories depend on the paid GitHub Advanced Security or Secret Protection entitlement. Option C states this distinction correctly. Option A misstates campaign licensing and confuses which entitlement applies. Option B wrongly claims an enterprise account is required for public repositories. Option D incorrectly treats the security manager role as a licence substitute.
-
5 Question 5 Single choice GitHub Security suites administration
A global retailer uses GitHub Enterprise Cloud with about 1,200 repositories across 14 organizations. The central security team must enable Code Security and Secret Protection on every repository, and they require that repositories created in the future automatically receive the same settings without manual steps by organization owners. They also must prevent individual organization owners from disabling push protection. Which approach best meets these governance requirements?
Correct Answer: BExplanationEnterprise-level security configurations can be applied to all organizations and set to attach automatically to new repositories, and they allow the central team to lock settings so organization owners cannot disable them. Nightly scripts leave a gap for repositories created during the day and depend on voluntary compliance. Granting the security manager role does not stop owners from changing settings. Rulesets enforce merge checks but do not enable Code Security or Secret Protection on repositories, so they cannot satisfy the enablement requirement.
-
6 Question 6 Single choice Security operations: best practices, prioritization, and remediation
A security analyst manages 4,000 open Dependabot alerts across a platform of microservices. The engineering director wants the backlog reduced within one quarter, with work prioritized so that alerts that are both severe and likely to be exploited are handled first. Several teams argue that CVSS score alone is enough to rank work. The analyst wants a method that tracks the remediation work in a structured way and reports progress to leadership. Which approach should the analyst take FIRST?
Correct Answer: AExplanationEPSS estimates the probability that a vulnerability will be exploited, and combining it with severity gives a more realistic ordering than CVSS alone. A security campaign lets the analyst scope a set of alerts, set a due date, and report progress centrally. Sorting by CVSS ignores exploitation likelihood, and a spreadsheet does not give managed tracking. Dismissing development dependencies may be defensible in some cases but is not a prioritization step and risks hiding real exposure. Auto-dismissing moderate alerts removes findings without a documented assessment of risk.
-
7 Question 7 Single choice Configure and use Code Security (formerly Code Scanning with CodeQL)
A team runs CodeQL on a large Python repository through a GitHub Actions workflow. The job now times out after 45 minutes, and scan results for pull requests appear hours late. The repository has generated files in a vendor directory that account for most of the source volume, and the team only needs findings for code they own. They also want to keep the default query suite. Which change is the MOST appropriate first step?
Correct Answer: BExplanationExcluding generated vendor code with paths-ignore in the CodeQL configuration reduces the analysed volume while keeping the default query suite and the findings the team cares about. Replacing the suite with a single query changes coverage, which the team has ruled out. Raising the timeout and scheduling nightly scans means pull requests still receive late results and the root cause is unaddressed. Moving to a larger runner is a valid tuning option but does not address the unnecessary analysis of generated code and adds cost before the simpler fix.
-
8 Question 8 Multiple choice Configure and use Secret Protection (formerly secret scanning)
A healthcare provider has enabled Secret Protection across its private repositories. The security manager wants to reduce noise from a custom pattern that matches internal service account identifiers, which are not secrets but are flagged in test directories. The manager also needs alerts about valid credentials to go to the right people without relying on individual memory. Which TWO actions together meet these requirements? (Choose two.)
Correct Answer: B, DExplanationPath exclusions on a custom pattern reduce false positives in test directories without disabling protection elsewhere, and configuring alert recipients routes notifications to the designated contacts rather than depending on memory. Disabling protection for a whole directory or removing the pattern is too blunt and loses coverage. Turning off validity checks reduces prioritization and adds noise instead of helping. A bypass policy that lets developers dismiss alerts without review weakens control and conflicts with the requirement for managed response.
-
9 Question 9 Multiple choice Describe GitHub Security suites, features, and ecosystem
A software company is evaluating a prevention-first security strategy for its GitHub Enterprise Cloud organization. Leadership is concerned that gate-based checks only find problems after code is written and reviewed, and they want to reduce the number of secrets and vulnerable dependencies that ever reach shared branches. Which TWO of the following practices best reflect a prevention-first approach? (Choose two.)
Correct Answer: A, EExplanationPush protection stops secrets at the point of push, and dependency review checks new dependencies before merge, both of which keep risk out of shared branches. Scanning only at release time is a late gate, and reviewing dashboards monthly is reporting rather than prevention. Dismissing alerts after rotation closes the record without preventing future exposure and misrepresents remediation status.
-
10 Question 10 Single choice Configure and use Code Security (formerly Code Scanning with CodeQL)
A developer on a team using CodeQL notices that a dataflow alert highlights a path from a user-supplied query parameter to a SQL execution call. The fix involves replacing string concatenation with a parameterized query and adding input validation. The team wants the remediation tracked as the alert moving to fixed once the code change merges, without anyone manually closing it. Which action is required for the alert lifecycle to work this way?
Correct Answer: DExplanationCode scanning alerts are closed automatically when a subsequent analysis of the branch no longer produces the finding, so the workflow must run after the merge on the default branch. Adding a comment does not change alert state, and dismissing with won't fix is a separate decision that records a risk acceptance rather than a fix. Uploading a SARIF file marking a result as resolved is not how the platform resolves alerts from an analysis.
-
11 Question 11 Single choice GitHub Security suites administration
An insurance company has 30 repositories managed by a platform team and 200 repositories owned by product teams, all in one organization. Only the platform team should be able to change Secret Protection settings and bypass policies, while product team maintainers must be able to view and dismiss secret alerts on their own repositories. Developers should not be able to see alerts from repositories they do not contribute to. Which role configuration is the BEST way to meet this?
Correct Answer: CExplanationThe security manager role can manage security settings and view alerts across the organization, which fits the platform team, and repository admin rights let product maintainers manage alerts on their own repositories. Owner is broader than needed and gives the platform team unnecessary control over the organization. Write permission in a repository does not grant alert dismissal in the way required and gives too much access in some cases. Giving all developers the security manager role breaks the requirement that alerts be limited to contributors. Read and triage roles do not allow the platform team to change Secret Protection settings.
-
12 Question 12 Single choice Security operations: best practices, prioritization, and remediation
A mobile company receives a GitHub Security Advisory that affects a widely used library version pinned in four applications. The advisory describes a CVE with CWE classification and a fixed version. The security lead has to decide what to do first to ensure the fix reaches all four apps and that the status is traceable for audit. Which action should be taken FIRST?
Correct Answer: DExplanationThe correct first step is to identify exposure with the dependency graph and assign remediation for each affected application, keeping the advisory identifier attached for traceability. Waiting for an additional patch is unnecessary when a fixed version is already named, and it delays remediation. Disabling Dependabot removes the automated path to the fix. Dismissing as not applicable without assessment of exposure is inaccurate when the applications pin the affected version.
-
13 Question 13 Single choice Describe GitHub Security suites, features, and ecosystem
A consulting firm wants a single view across its GitHub Enterprise Cloud organizations of code scanning, Secret Protection, and dependency alerts for compliance reporting. Team leads want to see which repositories have unresolved high-severity alerts and which have push protection disabled. The security lead asks which feature should be used for this organization-wide reporting, rather than exporting data from each repository manually. Which feature is the MOST appropriate?
Correct Answer: DExplanationSecurity Overview provides organization-level dashboards that show alert status and security feature coverage across repositories, which matches the reporting need. The dependency graph lists dependencies without alert status or feature coverage. Dependabot security updates automate pull requests and do not report feature enablement. Rulesets enforce rules at merge time and are not a reporting tool.
-
14 Question 14 Single choice Configure and use Secret Protection (formerly secret scanning)
A fintech team has push protection enabled and a developer's push is blocked because it contains a token that matches a supported provider pattern. The developer confirms that the token is a test value issued by a sandbox account and is not a live credential. The organization policy requires that any bypass be justified and recorded, and the security team wants to know whether the exception affects the repository's alert history. What is the MOST accurate description of what happens when the developer uses the bypass with a reason?
Correct Answer: DExplanationWhen push protection is bypassed with a reason, the push proceeds, the reason is captured, and the detection remains visible in the secret alert history so authorized reviewers can assess it. The detection is not deleted, and the bypass is limited to that push rather than granting ongoing exemption. Holding the push pending approval describes a different control and does not match the bypass flow where the developer provides a reason.
These are 14 of the 125 questions in the full GH-500 pack.
Get All 125 QuestionsGet all 125 questions & answers
Full access options for Microsoft GH-500
Self-study
PDF Version
- 125 actual exam questions
- Compatible with all devices
- Printable PDF format
- No download limits
- 90 days free updates
- 24/7 customer support
Best value
Bundle Pack
- Discounted PDF + online access
- 125 actual exam questions
- Both PDF and online practice test
- Free 90 days updates
- No download or practice limits
- 24/7 customer support
Exam simulation
Online Practice Test
- 125 actual exam questions
- Actual exam environment
- 90 days free updates
- Browser-based software
- 24/7 customer support
100% Money Back Guarantee
Your success comes first
At DumpsProvider, we give you a 100% money back guarantee on all of our exam dumps. For us, your success is the #1 priority and we are more than confident that our exam material will help you pass the GH-500 Exam (GitHub Advanced Security Exam) on your very first attempt.
In a rare case, if you fail your exam, we will refund your amount without asking a single question.