GH-500 practice question 9 of 15
– [Configure and Use Dependency Management] Which of the following options would close a Dependabot alert?
Full set: 75 questionsA Dependabot alert is automatically closed when the vulnerability that triggered it is resolved. The standard resolution process involves updating the insecure dependency to a secure version. This is typically accomplished by creating a pull request with the necessary changes to the manifest or lock file. Once this pull request is reviewed, approved, and merged into the default branch, GitHub automatically rescans the repository's dependencies. Upon confirming that the vulnerable dependency has been updated, GitHub closes the alert.
B. Viewing an alert is a passive, informational action. It does not change the repository's code or dependencies, and therefore does not resolve the vulnerability.
C. The dependency graph is a tool for visualizing dependencies. Simply viewing it does not alter the repository's state or fix any security issues.
D. Leaving the repository in its current state means the vulnerability persists. The Dependabot alert will remain open until the issue is addressed or manually dismissed.
1. GitHub Docs, "Viewing and updating Dependabot alerts." Under the section "Fixing a Dependabot alert," the documentation states: "When you merge a pull request that updates the manifest or lock file to a secure version of the dependency, the alert is resolved for your repository. Dependabot automatically closes the alert when it detects that the vulnerable dependency has been removed or updated." This directly supports that merging a pull request to fix the vulnerability closes the alert.
Keep practicing
Take the free GH-500 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other GH-500 practice questions
- Question 1– [Configure and Use Secret Scanning] Secret scanning will scan:
- Question 2– [Use Code Scanning with CodeQL] Why should you dismiss a code scanning alert?
- Question 3– [Configure and Use Secret Scanning] A secret scanning alert should be closed as "used i…
- Question 4– [Configure and Use Dependency Management] Which of the following formats are used to de…
- Question 5– [Configure GitHub Actions Workflows] As a repository owner, you do not want to run a Gi…
- Question 6– [Describe GitHub Advanced Security Best Practices] Which of the following benefits do c…
