Sample questions
Microsoft Azure DevOps Engineer Expert AZ-400 practice questions
Which THREE factors should you consider when designing a release pipeline for a critical production application? (Choose three.)
Design and implement build and release pipelineshardSee the answer and why each option is right or wrong →Drag and drop the steps to implement a branch policy in Azure Repos for pull requests into the correct order.
Your team uses Azure Pipelines to build and test code. You want to automatically trigger a pipeline when a pull request is created targeting the main branch. Which trigger should y…
Design and implement a source control strategyeasySee the answer and why each option is right or wrong →You are designing a release pipeline that must deploy to multiple environments in sequence: Dev, Test, and Prod. Each environment requires manual approval before deployment. You wa…
Design and implement build and release pipelinesmediumSee the answer and why each option is right or wrong →Your Azure Pipelines build takes 45 minutes. You want to reduce build time by caching dependencies. Which task should you add to the pipeline?
Design and implement build and release pipelineseasySee the answer and why each option is right or wrong →You are setting up a GitHub Actions workflow to deploy an Azure Resource Manager (ARM) template. The workflow must run whenever a pull request is opened against the main branch. Wh…
Design and implement build and release pipelineseasySee the answer and why each option is right or wrong →Your team uses GitHub Actions for CI/CD. You want to reuse a workflow across multiple repositories without duplicating code. Which approach should you use?
Design and implement build and release pipelinesmediumSee the answer and why each option is right or wrong →You are designing a release pipeline that deploys to multiple environments (dev, test, prod) with approval gates between each. You need to ensure that the same build artifact is de…
Design and implement build and release pipelinesmediumSee the answer and why each option is right or wrong →Your organization uses Azure DevOps for a multi-tier web application. The application consists of a React frontend, a Node.js API, and a SQL database. The security team has mandate…
Refer to the exhibit. The JSON above shows a branch policy configuration for the main branch in Azure Repos. A developer pushes a third commit to an existing pull request after two…
Your release pipeline deploys to multiple environments (Dev, Test, Prod) using approval gates. Recently, the Prod deployment failed because a manual validation task timed out after…
Design and implement build and release pipelineshardSee the answer and why each option is right or wrong →Your organization uses GitHub Actions for CI/CD. You need to ensure that deployment to production only occurs after a successful deployment to a staging environment and requires ap…
Design and implement build and release pipelineshardSee the answer and why each option is right or wrong →Your team is designing a build pipeline for a Java application that uses Maven. The pipeline must run unit tests and integration tests separately, and fail the build if integration…
Design and implement build and release pipelinesmediumSee the answer and why each option is right or wrong →Your team is migrating from TFVC to Git in Azure Repos. Developers frequently work on the same files simultaneously. Which Git workflow should you recommend to minimize merge confl…
Design and implement a source control strategyhardSee the answer and why each option is right or wrong →You are designing a release pipeline that deploys a web app to Azure App Service. You need to ensure that configuration secrets (e.g., database connection strings) are not stored i…
Design and implement build and release pipelineseasySee the answer and why each option is right or wrong →Your organization uses GitHub Actions for CI/CD. You want to enforce that all workflows pass required checks before a pull request can be merged. The repository is in an organizati…
Design and implement build and release pipelinesmediumSee the answer and why each option is right or wrong →Your build pipeline uses the 'NuGetCommand@2' task to restore NuGet packages. You want to use packages from an Azure Artifacts feed that requires authentication. How should you con…
Design and implement build and release pipelinesmediumSee the answer and why each option is right or wrong →Which TWO are benefits of using deployment groups in Azure Pipelines compared to using individual virtual machines?
Design and implement build and release pipelinesmediumSee the answer and why each option is right or wrong →Which THREE components are required to set up a self-hosted agent pool in Azure Pipelines?
Design and implement build and release pipelineshardSee the answer and why each option is right or wrong →You see the above YAML pipeline trigger configuration in an Azure Pipeline. The repository uses Git Flow with branches: feature/new-feature, develop, release/v1.0, and main. A deve…
A team uses a monorepo in Azure Repos. They want to implement a build validation policy that only triggers builds for code changes in specific folders to reduce build times. Which…
Your release pipeline deploys a .NET Core web app to Azure App Service using a slot swap strategy. The pipeline runs acceptance tests on the staging slot before swapping. After a r…
Design and implement build and release pipelineshardSee the answer and why each option is right or wrong →Your organization uses GitHub for source control and GitHub Actions for CI/CD. You need to implement a branching strategy where every commit to the main branch triggers a build and…
Which THREE conditions must be met for you to use the 'Approvals' feature in Azure Pipelines to control deployments to a production environment? (Choose three.)
Design and implement build and release pipelineshardSee the answer and why each option is right or wrong →