Microsoft DevOps Engineer Expert AZ-400 Practice Question

You need to create a new YAML pipeline in Azure DevOps that builds code stored in a private GitHub Enterprise Cloud repository. The solution must meet the following requirements:

  • The pipeline must run automatically for every push and pull-request to the main branch.
  • Azure DevOps must be able to fetch sources without storing any user-scoped Personal Access Tokens (PATs).
  • The GitHub organization blocks authorization of external OAuth apps but allows installation of GitHub Apps.

In Azure DevOps, which action should you perform first to satisfy all the requirements?

  • Create a service connection of type GitHub and authenticate with a user PAT that has repo and admin:repo_hook scopes.

  • Mirror the GitHub repository into Azure Repos Git and configure the pipeline to use the mirrored repository as its source.

  • Create a service connection of type External Git that clones the repository over SSH using a read-only deploy key.

  • Create a GitHub service connection that uses GitHub App authentication and install the Azure Pipelines GitHub App in the ContosoGit organization.

Microsoft DevOps Engineer Expert AZ-400
Design and implement build and release pipelines
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