Limited-Time Offer: Enjoy 50% Savings! Ends in 00h 00m 00s Coupon code: 50OFF
Skip to content

Free Microsoft GitHub Advanced Security Exam GH-500 Exam Questions

Page: 1 / 13 Total 125 questions

Want more questions? Get Premium Access.

Question 1

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

As a repository owner, you want to receive specific notifications, including security alerts, for an individual repository. Which repository notification setting should you use?

Correct Answer: D. Custom
Explanation:

Using the Custom setting allows you to subscribe to specific event types, such as Dependabot alerts or vulnerability notifications, without being overwhelmed by all repository activity. This is essential for repository maintainers who need fine-grained control over what kinds of events trigger notifications.

This setting is configurable per repository and allows users to stay aware of critical issues while minimizing notification noise.


Question 2

-- [Configure and Use Secret Scanning]

What is the first step you should take to fix an alert in secret scanning?

Correct Answer: C. Revoke the alert if the secret is still valid.
Explanation:

The first step when you receive a secret scanning alert is to revoke the secret if it is still valid. This ensures the secret can no longer be used maliciously. Only after revoking it should you proceed to remove it from the code history and apply other mitigation steps.

Simply deleting the secret from the code does not remove the risk if it hasn't been revoked --- especially since it may already be exposed in commit history.


Question 3

-- [Configure and Use Secret Scanning]

When secret scanning detects a set of credentials on a public repository, what does GitHub do?

Correct Answer: A. It notifies the service provider who issued the secret.
Explanation:

When a public repository contains credentials that match known secret formats, GitHub will automatically notify the service provider that issued the secret. This process is known as 'secret scanning partner notification'. The provider may then revoke the secret or contact the user directly.

GitHub does not publicly display the alert and does not send internal repository notifications for public detections.


Question 4

-- [Describe GitHub Advanced Security Best Practices]

What kind of repository permissions do you need to request a Common Vulnerabilities and Exposures (CVE) identification number for a security advisory?

Correct Answer: B. Admin
Explanation:

Requesting a CVE ID for a security advisory in a GitHub repository requires Admin permissions. This level of access is necessary because it involves managing sensitive security information and coordinating with external entities to assign a CVE, which is a formal process that can impact the public perception and security posture of the project.


Question 5

-- [Configure and Use Dependency Management]

If default code security settings have not been changed at the repository, organization, or enterprise level, which repositories receive Dependabot alerts?

Correct Answer: C. None
Explanation:

By default, no repositories receive Dependabot alerts unless configuration is explicitly enabled. GitHub does not enable Dependabot alerts automatically for any repositories unless:

The feature is turned on manually

It's configured at the organization or enterprise level via security policies

This includes public, private, and enterprise-owned repositories --- manual activation is required.


Question 6

-- [Use Code Scanning with CodeQL]

What does code scanning do?

Correct Answer: C. It analyzes a GitHub repository to find security vulnerabilities
Explanation:

Code scanning is a static analysis feature that examines your source code to identify security vulnerabilities and coding errors. It runs either on every push, pull request, or a scheduled time depending on the workflow configuration.

It does not automatically contact maintainers, scan full Git history, or block pushes unless explicitly configured to do so.


Question 7

-- [Configure and Use Dependency Management]

What should you do after receiving an alert about a dependency added in a pull request?

Correct Answer: C. Update the vulnerable dependencies before the branch is merged
Explanation:

If an alert is raised on a pull request dependency, best practice is to update the dependency to a secure version before merging the PR. This prevents the vulnerable version from entering the main codebase.

Merging or deploying the PR without fixing the issue exposes your production environment to known risks.


Question 8

-- [Configure and Use Dependency Management]

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

Correct Answer: B. Dependency graph enabled at the organization level for all new private repositories; D. Read-only access to the dependency manifest and lock files for a repository
Explanation:

Comprehensive and Detailed Explanation:

To generate a dependency graph for a private repository, GitHub requires:

Dependency graph enabled: The repository must have the dependency graph feature enabled. This can be configured at the organization level to apply to all new private repositories.

Access to manifest and lock files: GitHub needs read-only access to the repository's dependency manifest and lock files (e.g., package.json, requirements.txt) to identify and map dependencies.


Question 9

-- [Assessing Code Scanning Alerts]

You are managing code scanning alerts for your repository. You receive an alert highlighting a problem with data flow. What do you click for additional context on the alert?

Correct Answer: A. Show paths
Explanation:

When dealing with a data flow issue in a code scanning alert, clicking on 'Show paths' provides a detailed view of the data's journey through the code. This includes the source of the data, the path it takes, and where it ends up (the sink). This information is crucial for understanding how untrusted data might reach sensitive parts of your application and helps in identifying where to implement proper validation or sanitization.


Question 10

-- [Configure and Use Secret Scanning]

What is a prerequisite to define a custom pattern for a repository?

Correct Answer: D. Enable secret scanning
Explanation:

You must enable secret scanning before defining custom patterns. Secret scanning provides the foundational capability for detecting exposed credentials, and custom patterns build upon that by allowing organizations to specify their own regex-based patterns for secrets unique to their environment.

Without enabling secret scanning, GitHub will not process or apply custom patterns.