exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 5 question 42 discussion

Actual exam question from Microsoft's AZ-400
Question #: 42
Topic #: 5
[All AZ-400 Questions]

You have a GitHub repository.

You need to ensure that all the code in the repository is scanned for vulnerabilities.

What should you use?

  • A. Dependabot alerts
  • B. branch protection rules
  • C. CodeQL actions
  • D. GitHub Advisory Database databases
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
vsvaid
Highly Voted 11 months ago
Selected Answer: C
CodeQL actions for code analysis. Dependabot is mainly used checking vulnerbilities in dependencies
upvoted 7 times
...
yana_b
Most Recent 1 year ago
Selected Answer: C
Dependabot is complementary to CodeQL. While CodeQL detects security issues in your own code, Dependabot detects vulnerabilities that originate from your project’s dependencies. A recent example was Log4j, which introduced a number of upstream impacts for package registries and dependencies. Since Log4j is widely used across apps and websites to help log activity in applications and websites, this incident meant a lot of people were suddenly forced to quickly update their Log4j versions to avoid any potential issues. Source: https://github.blog/2022-04-22-5-simple-things-every-developer-can-do-to-ship-more-secure-code/#:~:text=Dependabot%20is%20complementary%20to%20CodeQL,for%20package%20registries%20and%20dependencies.
upvoted 4 times
...
flafernan
1 year, 3 months ago
Selected Answer: C
Dependabot also automatically checks dependencies for vulnerabilities in your code. It is designed to monitor and notify of package and dependency updates, including information about known vulnerabilities. Therefore, Dependabot is a valid option to check dependencies in your repository for vulnerabilities. However, if you want to check all parts of the code, including vulnerabilities in the source code itself, "CodeQL actions" can provide a more comprehensive analysis.
upvoted 2 times
...
Mcelona
1 year, 3 months ago
Selected Answer: C
CodeQL 's goal is search vulnerabilities
upvoted 2 times
...
Sukon_Desknot
1 year, 3 months ago
Selected Answer: C
The correct answer is C. CodeQL actions scans your code for vulnerability usually as a workflow process you setup while Dependabots which is often automatic set by GitHub scans only your dependencies.
upvoted 2 times
...
master9
1 year, 3 months ago
Selected Answer: A
GitHub sends Dependabot alerts when we detect that your repository uses a vulnerable dependency or malware. https://docs.github.com/en/code-security/dependabot/dependabot-alerts/about-dependabot-alerts
upvoted 2 times
...
catfood
1 year, 3 months ago
Selected Answer: C
dependabot is for secrets
upvoted 3 times
...
renzoku
1 year, 4 months ago
Selected Answer: C
C. CodeQL actions Static analysis tool to your code for potential security vulnerabilities and other code-related issues. >Dependabot alerts, focused on dependencies to detect security vulnerabilities. >Branch protection rules, enforce certain checks and restrictions before allowing changes to be merged, e.g. Require an code review, ensure that all tests pass, specify number of approving reviews. >GitHub Advisory Database, Central repository of known vulnerabilities that can be accessed by various security-related tools, e.g. Dependabot.
upvoted 4 times
...
dgcc97
1 year, 4 months ago
Selected Answer: C
Discover vulnerabilities across the entire code base. https://codeql.github.com/docs/
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago