GitHub Advanced Security Exam Questions and Answers
Which details do you have to provide to create a custom pattern for secret scanning? (Each answer presents part of the solution. Choose two.)
Which of the following formats are used to describe a Dependabot alert? (Each answer presents a complete solution. Choose two.)
The autobuild step in the CodeQL workflow has failed. What should you do?
As a contributor, you discovered a vulnerability in a repository. Where should you look for the instructions on how to report the vulnerability?
Which of the following Watch settings could you use to get Dependabot alert notifications? (Each answer presents part of the solution. Choose two.)
Where can you find a deleted line of code that contained a secret value?
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?
As a developer with write access, you navigate to a code scanning alert in your repository. When will GitHub close this alert?
What happens when you enable secret scanning on a private repository?
You have enabled security updates for a repository. When does GitHub mark a Dependabot alert as resolved for that repository?
Which key is required in the update settings of the Dependabot configuration file?
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]
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?
Which of the following options are code scanning application programming interface (API) endpoints? (Each answer presents part of the solution. Choose two.)
When secret scanning detects a set of credentials on a public repository, what does GitHub do?
Assuming that no custom Dependabot behavior is configured, who has the ability to merge a pull request created via Dependabot security updates?
Who can fix a code scanning alert on a private repository?
What do you need to do before you can define a custom pattern for a repository?
What does code scanning do?
If notification and alert recipients are not customized, which users receive notifications about new Dependabot alerts in an affected repository?
What is a security policy?
Which of the following benefits do code scanning, secret scanning, and dependency review provide?