Summer Limited Time 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: wrap60

Microsoft GH-500 Dumps

Page: 1 / 8
Total 75 questions

GitHub Advanced Security Exam Questions and Answers

Question 1

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

Options:

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

Question 2

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

Options:

A.

Common Weakness Enumeration (CWE)

B.

Exploit Prediction Scoring System (EPSS)

C.

Common Vulnerabilities and Exposures (CVE)

D.

Vulnerability Exploitability exchange (VEX)​

Question 3

The autobuild step in the CodeQL workflow has failed. What should you do?

Options:

A.

Remove specific build steps.

B.

Compile the source code.

C.

Remove the autobuild step from your code scanning workflow and add specific build steps.

D.

Use CodeQL, which implicitly detects the supported languages in your code base.

Question 4

As a contributor, you discovered a vulnerability in a repository. Where should you look for the instructions on how to report the vulnerability?

Options:

A.

support.md

B.

readme.md

C.

contributing.md

D.

security.md

Question 5

Which of the following Watch settings could you use to get Dependabot alert notifications? (Each answer presents part of the solution. Choose two.)

Options:

A.

The Custom setting

B.

The Participating and @mentions setting

C.

The All Activity setting

D.

The Ignore setting

Question 6

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

Options:

A.

Insights

B.

Issues

C.

Commits

D.

Dependency graph

Question 7

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

Question 8

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

Options:

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

Question 9

What happens when you enable secret scanning on a private repository?

Options:

A.

Repository administrators can view Dependabot alerts.

B.

Your team is subscribed to security alerts.

C.

GitHub performs a read-only analysis on the repository.

D.

Dependency review, secret scanning, and code scanning are enabled.

Question 10

You have enabled security updates for a repository. When does GitHub mark a Dependabot alert as resolved for that repository?

Options:

A.

When Dependabot creates a pull request to update dependencies

B.

When you dismiss the Dependabot alert

C.

When the pull request checks are successful

D.

When you merge a pull request that contains a security update

Question 11

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

Options:

A.

rebase-strategy

B.

commit-message

C.

assignees

D.

package-ecosystem

Question 12

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'

Question 13

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

Options:

A.

Show paths

B.

Security

C.

Code scanning alerts​

Question 14

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

Question 15

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.

Question 16

Assuming that no custom Dependabot behavior is configured, who has the ability to merge a pull request created via Dependabot security updates?​

Options:

A.

An enterprise administrator

B.

A user who has write access to the repository

C.

A user who has read access to the repository

D.

A repository member of an enterprise organization​

Question 17

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

Options:

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​

Question 18

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

Options:

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

Question 19

What does code scanning do?

Options:

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

Question 20

If notification and alert recipients are not customized, which users receive notifications about new Dependabot alerts in an affected repository?

Options:

A.

Users with Write permissions to the repository

B.

Users with Admin privileges to the repository

C.

Users with Maintain privileges to the repository

D.

Users with Read permissions to the repository

Question 21

What is a security policy?

Options:

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

Question 22

Which of the following benefits do code scanning, secret scanning, and dependency review provide?

Options:

A.

Search for potential security vulnerabilities, detect secrets, and show the full impact of changes to dependencies

B.

Confidentially report security vulnerabilities and privately discuss and fix security vulnerabilities in your repository's code

C.

View alerts about dependencies that are known to contain security vulnerabilities

D.

Automatically raise pull requests, which reduces your exposure to older versions of dependencies

Page: 1 / 8
Total 75 questions