GITHUB-ADVANCED-SECURITY practice question 12 of 15
– [Configure and Use Dependency Management] Which Dependabot configuration fields are required? (Each answer presents part of the solution. Choose three.)
Full set: 75 questionsThe dependabot.yml configuration file requires a minimum set of fields for each package manager entry defined under the updates key. According to the official GitHub documentation, three fields are mandatory to define a basic update check:
1. package-ecosystem: Specifies the package manager to use (e.g., npm, maven, pip).
2. directory: Defines the location of the package manifest files (e.g., / for the root directory).
3. schedule.interval: Sets the frequency for checking for new versions (e.g., daily, weekly). Without these three fields, Dependabot cannot identify which dependencies to monitor, where to find them, or how often to check for updates.
C. milestone: This is an optional field used to automatically assign a specific milestone to all pull requests created by Dependabot for that configuration.
E. allow: This is an optional field used to explicitly specify which dependencies Dependabot should update, which is useful for limiting updates to a specific subset.
1. GitHub Docs, "Configuration options for the dependabot.yml file." This official documentation provides a comprehensive list of all available configuration options and explicitly labels which are required and which are optional.
Section: "Required properties for each package manager": This section explicitly lists package-ecosystem, directory, and schedule (which contains the required interval field) as mandatory for each entry in the updates array.
Section: "Optional properties for all updates": This section lists milestone and allow as optional configurations that provide more granular control over Dependabot's behavior.
Keep practicing
Take the free GITHUB-ADVANCED-SECURITY practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other GITHUB-ADVANCED-SECURITY practice questions
- Question 1– [Use Code Scanning with CodeQL] When using CodeQL, what extension stores query suite de…
- Question 2– [Configure and Use Secret Scanning] What happens when you enable secret scanning on a p…
- Question 3– [Configure and Use Dependency Management] A dependency has a known vulnerability. What …
- Question 4– [Configure and Use Secret Scanning] What is a prerequisite to define a custom pattern f…
- Question 5– [Describe the GHAS Security Features and Functionality] What is a security policy?
- Question 6– [Configure GitHub Advanced Security Tools in GitHub Enterprise] What role is required t…
