AZ-400 ยท Security and compliance scanning
Dependabot alerts and updates
Dependency graph, Dependabot alerts, security updates vs version updates, dependabot.yml, grouping and schedules, dependency review action.
Key points
- Dependency graph: packages a repository uses.
- Dependabot alerts: a package has a known advisory.
- Security updates: PRs bumping to a patched version.
- Version updates: dependabot.yml (version: 2, package-ecosystem, directory, schedule.interval) keep dependencies current.
- Groups: fewer pull requests.
- Dependency review action: checks PRs for newly introduced vulnerable dependencies.
Practice questions
What value does the top-level version key in dependabot.yml take?
- 1
- 2
- 3
- latest
Show answer
Answer: B. 2
The configuration syntax is always version 2.
Which values are valid for schedule.interval in dependabot.yml?
- daily
- weekly
- monthly
- hourly
- biweekly
Show answer
Answer: A. daily, B. weekly, C. monthly
Valid intervals include daily, weekly and monthly (plus quarterly, semiannually, yearly and cron). Hourly and biweekly do not exist.
True or false: open-pull-requests-limit in dependabot.yml also changes how many security update pull requests can be open at once.
Show answer
Answer: False
False. The setting applies to version updates (default 5). Security update pull requests have a separate fixed limit of 10 that cannot be changed.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
