Microsoft DevOps Engineer Expert AZ-400 Practice Question

Your company uses GitHub Flow and stores all code in a GitHub Enterprise Cloud organization that is connected to Azure Pipelines. You must shorten the feedback cycle when a build job fails. The solution has to meet the following requirements:

  • A new GitHub issue must be created automatically and assigned to the author of the last commit that triggered the failed pipeline.
  • Team members subscribed to the repository must receive the standard GitHub e-mail and in-app notifications for the new issue.
  • The implementation must require as little custom scripting as possible.

You create a fine-grained personal access token (PAT) that has the issues:write permission and add it to the pipeline as a secret variable.

Which action should you add to the failed branch of the Azure Pipeline to meet the requirements?

  • Configure a GitHub Service Hook that triggers on the "build completed" event from Azure Pipelines and creates an issue.

  • Enable a branch protection rule that requires a successful check and sets "Include administrators" to ON.

  • Add the GitHub Issues task from the Azure Pipelines Marketplace and configure it to create an issue that is assigned to $(Build.RequestedForEmail).

  • Add a Bash script task that uses curl to call the GitHub REST API v3 and open an issue in the repository.

Microsoft DevOps Engineer Expert AZ-400
Design and implement processes and communications
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