Microsoft DevOps Engineer Expert AZ-400 Practice Question

Your Azure DevOps organization installed the GitHub Advanced Security for Azure DevOps extension and enabled the feature at the organization level. A new project contains a single repository that uses the built-in CodeQL pipeline template. The first pipeline run fails with the message, "The pipeline does not have permission to use GitHub Advanced Security." You must resolve the error without granting broader privileges than necessary. Which action should you take?

  • Insert an additional CODEQL_ACTION_INIT step in the pipeline YAML and set setup: advanced-security to true.

  • Assign the Security Manager role to the repository administrators group.

  • Grant the project's build-service account the "GitHub Advanced Security" permission for the repository.

  • Enable the Allow scripts to access OAuth token option on the pipeline that runs CodeQL.

Microsoft DevOps Engineer Expert AZ-400
Develop a security and compliance plan
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot