Halloween Sale Special - 75% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: stp75

Easiest Solution 2 Pass Your Certification Exams

GH-500 Microsoft GitHub Advanced Security Exam Free Practice Exam Questions (2026 Updated)

Prepare effectively for your Microsoft GH-500 GitHub Advanced Security Exam certification with our extensive collection of free, high-quality practice questions. Each question is designed to mirror the actual exam format and objectives, complete with comprehensive answers and detailed explanations. Our materials are regularly updated for 2026, ensuring you have the most current resources to build confidence and succeed on your first attempt.

Page: 1 / 2
Total 125 questions

By default, who will receive an email when a secret has been detected in a repository? (Each answer presents a complete solution. Choose two.)

A.

Security analyst

B.

User who committed the secret

C.

Users with the Admin repository role

D.

Users with the Write repository role

E.

Users with the Maintain repository role

Which of the following statements best describes secret scanning push protection?​

A.

Commits that contain secrets are blocked before code is added to the repository.

B.

Secret scanning alerts must be closed before a branch can be merged into the repository.

C.

Buttons for sensitive actions in the GitHub UI are disabled.

D.

Users need to reply to a 2FA challenge before any push events.​

What do you need to do before you can define a custom pattern for a repository?​

A.

Provide a regular expression for the format of your secret pattern.

B.

Add a secret scanning custom pattern.

C.

Enable secret scanning on the repository.

D.

Provide match requirements for the secret format.​

Stack Overflow

Which of the following options would close a Dependabot alert?

A.

Creating a pull request to resolve the vulnerability that will be approved and merged

B.

Viewing the Dependabot alert on the Dependabot alerts tab of your repository

C.

Viewing the dependency graph

D.

Leaving the repository in its current state

Where is secret scanning enabled on a private repository?

A.

In the code security settings

B.

Within a repository ruleset

C.

Within a secret.yml file in the repository

D.

In the code scanning default setup settings

When using the advanced CodeQL code scanning setup, what is the name of the workflow file?​

A.

codeql-config.yml

B.

codeql-scan.yml

C.

codeql-workflow.yml

D.

codeql-analysis.yml

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

A.

Enable all in existing repositories

B.

Enable by default for new public repositories

C.

Enable all for Dependabot alerts

D.

Enable all for Dependency graph

You are configuring code scanning with CodeQL. What is one impact of using a language matrix in your workflow?

A.

CodeQL excludes alerts for those dependencies specified in the language matrix.

B.

CodeQL is configured to run analysis sequentially.

C.

You can use the languages parameter under the init action.

D.

CodeQL will only analyze the languages in the matrix.

Who can fix a code scanning alert on a private repository?​

A.

Users who have the Triage role within the repository

B.

Users who have Read permissions within the repository

C.

Users who have Write access to the repository

D.

Users who have the security manager role within the repository​

What classifications are used to categorize Dependabot alerts? (Each correct answer presents part of the solution. Choose three.)

A.

Static Application Security Testing (SAST)

B.

Exploit Prediction Scoring System (EPSS)

C.

Common Vulnerabilities and Exposures (CVE)

D.

GitHub Security Advisory ID (GHSA)

E.

Common Weakness Enumeration (CWE)

In a private repository, what minimum requirements does GitHub need to generate a dependency graph? (Each answer presents part of the solution. Choose two.)​

A.

Read-only access to all the repository's files

B.

Dependency graph enabled at the organization level for all new private repositories

C.

Write access to the dependency manifest and lock files for an enterprise

D.

Read-only access to the dependency manifest and lock files for a repository​

A secret scanning alert should be closed as "used in tests" when a secret is:

A.

In the readme.md file.

B.

In a test file.

C.

Solely used for tests.

D.

Not a secret in the production environment.

Your security team requested that you enable the dependency graph. What happens when you enable this feature for your repository?

A.

Admins of the repository will see dependency information in the dependency graph.

B.

Dependabot security updates create pull requests to upgrade those dependencies.

C.

New repositories will need to have dependency information enabled.

D.

GitHub generates Dependabot alerts for vulnerable dependencies.

Which alerts do you see in the repository's Security tab? (Each answer presents part of the solution. Choose three.)

A.

Repository permissions

B.

Secret scanning alerts

C.

Dependabot alerts

D.

Security status alerts

E.

Code scanning alerts

Where can a user change a repository's code scanning severity threshold that fails a pull request status check?

A.

Security tab

B.

Pull Requests tab

C.

Actions tab

D.

Settings tab

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

A.

Update the workflow to include a final step that uploads the results.

B.

By default, the CodeQL runner automatically uploads results to GitHub on completion.

C.

The CodeQL action uploads the SARIF file automatically when it completes analysis.

D.

Use the CLI to upload results to GitHub.​

Which of the following workflow events would trigger a dependency review? (Each answer presents a complete solution. Choose two.)​

A.

pull_request

B.

workflow_dispatch

C.

trigger

D.

commit

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

A.

rebase-strategy

B.

commit-message

C.

assignees

D.

package-ecosystem

Which of the following formats are used to describe a Dependabot alert? (Each answer presents a complete solution. Choose two.)​

A.

Common Weakness Enumeration (CWE)

B.

Exploit Prediction Scoring System (EPSS)

C.

Common Vulnerabilities and Exposures (CVE)

D.

Vulnerability Exploitability exchange (VEX)​

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

A.

By generating one language at a time

B.

By resolving dependencies to give an accurate representation of the codebase

C.

By monitoring the normal build process

D.

By running directly on the source code

Page: 1 / 2
Total 125 questions
Copyright © 2014-2026 Solution2Pass. All Rights Reserved