Month End Sale - Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: mxmas70

Home > GitHub > GitHub Certification > GitHub-Advanced-Security

GitHub-Advanced-Security GitHub Advanced Security GHAS Exam Question and Answers

Question # 4

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

Full Access
Question # 5

Where can you view code scanning results from CodeQL analysis?

A.

The repository's code scanning alerts

B.

A CodeQL database

C.

A CodeQL query pack

D.

At Security advisories

Full Access
Question # 6

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

A.

Disable Dependabot alerts for all repositories owned by your organization

B.

Fork the branch and deploy the new fork

C.

Update the vulnerable dependencies before the branch is merged

D.

Deploy the code to your default branch

Full Access
Question # 7

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 # 8

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​

Full Access
Question # 9

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

Full Access
Question # 10

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 # 11

What YAML syntax do you use to exclude certain files from secret scanning?

A.

decrypt_secret.sh

B.

paths-ignore:

C.

branches-ignore:

D.

secret scanning.yml

Full Access
Question # 12

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

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.

Full Access
Question # 13

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 # 14

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?

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."

Full Access
Question # 15

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 # 16

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 # 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 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 # 19

When using CodeQL, what extension stores query suite definitions?

A.

.yml

B.

.ql

C.

.qll

D.

.qls

Full Access
Question # 20

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.)

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.

Full Access
Question # 21

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

A.

rebase-strategy

B.

commit-message

C.

assignees

D.

package-ecosystem

Full Access
Question # 22

Which of the following features helps to prioritize secret scanning alerts that present an immediate risk?

A.

Non-provider patterns

B.

Push protection

C.

Custom pattern dry runs

D.

Secret validation

Full Access