Pre-Winter Sale - Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 65percent

Welcome To DumpsPedia

GH-500 Sample Questions Answers

Questions 4

Which of the following options are code scanning application programming interface (API) endpoints? (Each answer presents part of the solution. Choose two.)

Options:

A.

List all open code scanning alerts for the default branch

B.

Modify the severity of an open code scanning alert

C.

Get a single code scanning alert

D.

Delete all open code scanning alerts

Buy Now
Questions 5

A dependency has a known vulnerability. What does the warning message include?

Options:

A.

The security impact of these changes

B.

An easily understandable visualization of dependency change

C.

How many projects use these components

D.

A brief description of the vulnerability

Buy Now
Questions 6

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

Options:

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​

Buy Now
Questions 7

How would you build your code within the CodeQL analysis workflow? (Each answer presents a complete solution. Choose two.)​

Options:

A.

Upload compiled binaries.

B.

Use CodeQL's init action.

C.

Ignore paths.

D.

Implement custom build steps.

E.

Use jobs.analyze.runs-on.

F.

Use CodeQL's autobuild action.

Buy Now
Questions 8

What is a benefit of using a custom CodeQL configuration file?

Options:

A.

It specifies a token that has access to the private repository.

B.

It automatically selects the package to use.

C.

It allows configuration options for multiple repositories in a single place.

D.

It disables packs from running the default query suite.

Buy Now
Questions 9

A colleague ignores a code scanning alert. What are the implications of the colleague's action? (Each answer presents part of the solution. Choose three.)

Options:

A.

A dangerous argument could be passed to functions.

B.

Data could be used insecurely.

C.

GitHub removes the alert after sixty days.

D.

Webhooks and the code scanning API remove the alert.

E.

Sensitive information could be leaked.

Buy Now
Questions 10

You want to specify a CodeQL configuration file for a GitHub Actions workflow. Which input to the init step in the CodeQL action do you use to pass the path of the configuration file?

Options:

A.

config-file

B.

source-root

C.

db-location

D.

queries

Buy Now
Questions 11

After investigating a code scanning alert related to injection, you determine that the input is properly sanitized using custom logic. What should be your next step?

Options:

A.

Draft a pull request to update the open-source query.

B.

Ignore the alert.

C.

Open an issue in the CodeQL repository.

D.

Dismiss the alert with the reason "false positive."

Buy Now
Questions 12

Dependabot has created a pull request. Which of the following commands should you use in a comment to prevent Dependabot from re-creating the same pull request?

Options:

A.

@dependabot recreate

B.

@dependabot ignore this dependency

C.

@dependabot close

D.

@dependabot rebase

Buy Now
Questions 13

Where can you find the vulnerable dependencies that GitHub detected in your repository?

Options:

A.

In Dependabot alerts

B.

In secret scanning alerts

C.

In security advisories

D.

In code scanning alerts

Buy Now
Questions 14

Which of the following tasks can be performed by a security team as a proactive measure to help address secret scanning alerts? (Each answer presents a complete solution. Choose two.)

Options:

A.

Dismiss alerts that are older than 90 days.

B.

Configure a webhook to monitor for secret scanning alert events.

C.

Enable system for cross-domain identity management (SCIM) provisioning for the enterprise.

D.

Document alternatives to storing secrets in the source code.

Buy Now
Questions 15

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?

Options:

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

Buy Now
Questions 16

Which of the following features can be used to enforce passing status checks for code scanning and dependency review workflows?

Options:

A.

Security GuardRails

B.

Status enforcement

C.

Repository rulesets

D.

Insights

Buy Now
Questions 17

What are Dependabot security updates?

Options:

A.

Automated pull requests that help you update dependencies that have known vulnerabilities

B.

Automated pull requests that keep your dependencies updated, even when they don’t have any vulnerabilities

C.

Automated pull requests to update the manifest to the latest version of the dependency

D.

Compatibility scores to let you know whether updating a dependency could cause breaking changes to your project

Buy Now
Questions 18

Assuming that notification and alert recipients are not customized, what does GitHub do when it identifies a vulnerable dependency in a repository where Dependabot alerts are enabled? (Each answer presents part of the solution. Choose two.)​

Options:

A.

It generates a Dependabot alert and displays it on the Security tab for the repository.

B.

It notifies the repository administrators about the new alert.

C.

It generates Dependabot alerts by default for all private repositories.

D.

It consults with a security service and conducts a thorough vulnerability review.​

Buy Now
Questions 19

To be compatible with code scanning, what data format must third-party code scanning tools use for output?

Options:

A.

Static Analysis Results Interchange Format (SARIF)

B.

YAML

C.

ESLint

D.

ECMAScript

Buy Now
Questions 20

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

Options:

A.

Ignore

B.

Participating and @mentions

C.

All Activity

D.

Custom

Buy Now
Questions 21

Where can you find a deleted line of code that contained a secret value?

Options:

A.

Insights

B.

Issues

C.

Commits

D.

Dependency graph

Buy Now
Questions 22

An organization owner can give view access to Dependabot alerts to which type of user?

Options:

A.

Members of a team with Read access to a different repository within the same organization

B.

Outside collaborators with Read access

C.

Members of a team with Write access to the repository

D.

Members of an enterprise unassigned to the repository

Buy Now
Questions 23

When does Dependabot alert you of a vulnerability in your software development process?

Options:

A.

When a pull request adding a vulnerable dependency is opened

B.

As soon as a vulnerable dependency is detected

C.

As soon as a pull request is opened by a contributor

D.

When Dependabot opens a pull request to update a vulnerable dependency

Buy Now
Questions 24

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

Options:

A.

It notifies the service provider who issued the secret.

B.

It displays a public alert in the Security tab of the repository.

C.

It scans the contents of the commits for additional secrets.

D.

It sends a notification to repository members.

Buy Now
Questions 25

What permission level is required to manage code scanning alerts in a repository?

Options:

A.

Read

B.

Maintain

C.

View

D.

Triage

Buy Now
Questions 26

What role is required to change a repository's code scanning severity threshold that fails a pull request status check?

Options:

A.

Maintain

B.

Write

C.

Triage

D.

Admin

Buy Now
Questions 27

Which features are part of GitHub Advanced Security in the context of GitHub Enterprise? (Each correct answer presents part of the solution. Choose two.)

Options:

A.

Dependency review

B.

Dependency graph

C.

Security policy

D.

Secret scanning

Buy Now
Questions 28

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

Options:

A.

Security tab

B.

Pull Requests tab

C.

Actions tab

D.

Settings tab

Buy Now
Questions 29

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

Options:

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

Buy Now
Questions 30

How many alerts are created when two instances of the same secret value are in the same repository?

Options:

A.

1

B.

2

C.

3

D.

4

Buy Now
Questions 31

What is required to trigger code scanning on a specified branch?

Options:

A.

The repository must be private.

B.

Secret scanning must be enabled on the repository.

C.

Developers must actively maintain the repository.

D.

The workflow file must exist in that branch.

Buy Now
Questions 32

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

Options:

A.

Repositories owned by an enterprise account

B.

Private repositories

C.

None

D.

Repositories owned by an organization

Buy Now
Questions 33

Assuming dependabot.yml does not exist in the repository, how many reviewers would Dependabot automatically assign to an open pull request?

Options:

A.

0

B.

1

C.

2

D.

3

Buy Now
Questions 34

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]

Options:

A.

- '/*.md'

B.

- '/*.txt'

C.

paths:

D.

paths-ignore:

E.

- 'docs/*.md'

Buy Now
Questions 35

Which of the following would raise secret scanning alerts?

Options:

A.

GitHub personal access token

B.

Structured Query Language (SQL) injection

C.

Cross-site scripting (XSS)

D.

Server-side request forgery

Buy Now
Questions 36

Where can you remove access to GitHub Advanced Security features for an individual repository in an organization? (Each answer presents part of the solution. Choose two.)

Options:

A.

The enterprise's Settings tab

B.

The organization's Settings tab

C.

The repository's Settings tab

D.

The organization's Repository permissions

Buy Now
Questions 37

What is the scope of the Enable all setting for Dependabot alerts at the organization level?

Options:

A.

Private repositories where GitHub Advanced Security is also enabled

B.

Related features for public repositories

C.

All repositories

D.

Only private repositories

Buy Now
Exam Code: GH-500
Exam Name: GitHub Advanced Security Exam
Last Update: Oct 14, 2026
Questions: 125

PDF + Testing Engine

$59.99 $171.4

Testing Engine

$44.99 $128.55

PDF (Q&A)

$49.99 $142.82