Winter Sale - Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70dumps

GH-500 Questions and Answers

Question # 6

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?

A.

config-file

B.

source-root

C.

db-location

D.

queries

Full Access
Question # 7

When using CodeQL, what extension stores query suite definitions?

A.

.yml

B.

.ql

C.

.qll

D.

.qls

Full Access
Question # 8

Which top-level keys are mandatory for the dependabot.yml file? (Each answer presents part of the solution. Choose two.)

A.

updates

B.

version

C.

registries

D.

assignees

Full Access
Question # 9

Where can you use CodeQL analysis for code scanning? (Each answer presents part of the solution. Choose two.)

A.

In a third-party Git repository

B.

In a workflow

C.

In an external continuous integration (CI) system

D.

In the Files changed tab of the pull request

Full Access
Question # 10

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

A.

Read

B.

Maintain

C.

View

D.

Triage

Full Access
Question # 11

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

A.

Maintain

B.

Admin

C.

Triage

D.

Write​

Full Access
Question # 12

You want to enforce an enterprise policy that allows repository administrators within all organizations to enable GitHub Advanced Security for their repositories. Which option should you choose for this policy?

A.

No policy

B.

Allow for all organizations

C.

Never allow

D.

Allow for selected organizations

Full Access
Question # 13

Which security feature shows a vulnerable dependency in a pull request?

A.

Dependency graph

B.

Dependency review

C.

Dependabot alert

D.

The repository's Security tab

Full Access
Question # 14

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

A.

0

B.

1

C.

2

D.

3

Full Access
Question # 15

What CodeQL query information must you specify to identify the results as a simple alert?

A.

@kind problem

B.

@kind diagnostic

C.

@kind path-problem

D.

@kind metric

Full Access
Question # 16

As a developer with write access, you navigate to a code scanning alert in your repository. When will GitHub close this alert?

A.

After you triage the pull request containing the alert

B.

When you use data-flow analysis to find potential security issues in code

C.

After you find the code and click the alert within the pull request

D.

After you fix the code by committing within the pull request

Full Access
Question # 17

What does code scanning do?

A.

It contacts maintainers to ask them to create security advisories if a vulnerability is found

B.

It prevents code pushes with vulnerabilities as a pre-receive hook

C.

It analyzes a GitHub repository to find security vulnerabilities

D.

It scans your entire Git history on branches present in your GitHub repository for any secrets

Full Access
Question # 18

Which patterns are secret scanning validity checks available to?

A.

High entropy strings

B.

Custom patterns

C.

Partner patterns

D.

Push protection patterns

Full Access
Question # 19

Which of the following secret scanning features can verify whether a secret is still active?

A.

Push protection

B.

Validity checks

C.

Branch protection

D.

Custom patterns

Full Access
Question # 20

Which of the following formats are used to describe a code scanning alert from CodeQL?

A.

Common Weakness Enumeration (CWE)

B.

Vulnerability Exploitability eXchange (VEX)

C.

Common Vulnerabilities and Exposures (CVE)

D.

GitHub Security Advisory (GHSA)

Full Access
Question # 21

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)

Full Access
Question # 22

What filter or sort settings can be used to prioritize the secret scanning alerts that present the most risk?

A.

Sort to display the oldest first

B.

Sort to display the newest first

C.

Filter to display active secrets

D.

Select only the custom patterns

Full Access
Question # 23

Which of the following steps should you follow to integrate CodeQL into a third-party continuous integration system? (Each answer presents part of the solution. Choose three.)

A.

Process alerts

B.

Analyze code

C.

Upload scan results

D.

Install the CLI

E.

Write queries

Full Access
Question # 24

Which details do you have to provide to create a custom pattern for secret scanning? (Each answer presents part of the solution. Choose two.)

A.

The secret format

B.

The name of the pattern

C.

A list of repositories to scan

D.

Additional match requirements for the secret format

Full Access
Question # 25

What is the first step in CodeQL analysis?

A.

Converting results produced during query execution

B.

Running CodeQL queries against the database

C.

Preparing the code by creating a CodeQL database

D.

Interpreting the query results

Full Access
Question # 26

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

A.

Change the repository visibility to Internal

B.

Close other secret scanning alerts

C.

Specify additional match criteria

D.

Enable secret scanning

Full Access
Question # 27

Which syntax in a query suite tells CodeQL to look for one or more specified .ql files?

A.

query

B.

qlpack

C.

qls

Full Access
Question # 28

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?​

A.

Show paths

B.

Security

C.

Code scanning alerts​

Full Access
Question # 29

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

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

Full Access
Question # 30

What is a security policy?

A.

An automatic detection of security vulnerabilities and coding errors in new or modified code

B.

A security alert issued to a community in response to a vulnerability

C.

A file in a GitHub repository that provides instructions to users about how to report a security vulnerability

D.

An alert about dependencies that are known to contain security vulnerabilities

Full Access
Question # 31

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

A.

Archive the repository.

B.

Update your dependencies.

C.

Revoke the alert if the secret is still valid.

D.

Remove the secret in a commit to the main branch.

Full Access
Question # 32

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

A.

Private repositories where GitHub Advanced Security is also enabled

B.

Related features for public repositories

C.

All repositories

D.

Only private repositories

Full Access
Question # 33

Which of the following information can be found in a repository's Security tab?

A.

Number of alerts per GHAS feature

B.

Two-factor authentication (2FA) options

C.

Access management

D.

GHAS settings

Full Access
Question # 34

A repository's dependency graph includes:

A.

Dependencies parsed from a repository's manifest and lock files.

B.

Annotated code scanning alerts from your repository's dependencies.

C.

A summary of the dependencies used in your organization's repositories.

D.

Dependencies from all your repositories.

Full Access
Question # 35

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

Full Access
Question # 36

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.

Full Access
Question # 37

You are viewing a code scanning alert. What detail is included in the alert?

A.

The secret checked into the repository

B.

The Common Weakness Enumeration (CWE) submission date

C.

The GitHub username of anyone who has Read access to the repository

D.

The line of code that triggered the alert

Full Access