Microsoft DevOps Engineer Expert AZ-400 Practice Question

You are developing a YAML pipeline that runs on a self-hosted Linux agent packaged as a Docker container. During the build stage, a PowerShell script must call the Azure DevOps REST API to create work items in the same organization. The solution must:

  • Avoid interactive sign-in or storing user credentials inside the container image or repository.
  • Allow the token to be revoked without affecting other pipelines.

Which authentication approach should you implement to meet these requirements?

  • Create an Azure Resource Manager service connection that uses a service principal and reference the connection from the script.

  • Configure a Microsoft Entra ID application and authenticate the script by obtaining an OAuth 2.0 access token with the client credentials flow.

  • Generate a personal access token scoped to Work Item write access and store it as a secret in a variable group linked to Azure Key Vault.

  • Use the built-in System.AccessToken that is automatically injected into every pipeline job.

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