Sample questions
Microsoft Azure DevOps Engineer Expert AZ-400 practice questions
A team uses Git-LFS to store large binary files. They observe that cloning the repository takes a long time because Git-LFS files are downloaded. How can they improve clone perform…
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 →Your release pipeline deploys to multiple environments (dev, test, prod). You need to ensure that only authorized users can approve production deployments. Which TWO actions should…
Design and implement build and release pipelinesmediumSee the answer and why each option is right or wrong →Your company uses Azure Repos with a Git branching strategy that includes a main branch, a develop branch, and feature branches. You need to enforce that only designated release ma…
Design and implement a source control strategyhardSee the answer and why each option is right or wrong →Your team uses GitHub for source control and wants to set up continuous integration using GitHub Actions. Which file should you create in the repository to define the workflow?
Design and implement build and release pipelineseasySee the answer and why each option is right or wrong →You are setting up a release pipeline for a web application. The pipeline must deploy to three environments: Dev, Test, and Prod. The deployment to Prod must be triggered only afte…
Design and implement build and release pipelineseasySee the answer and why each option is right or wrong →Your organization uses Microsoft Defender XDR to secure Azure DevOps pipelines. You need to ensure that any build pipeline triggered by a pull request automatically runs a security…
Which THREE measures should you implement to protect secrets (e.g., API keys, passwords) used in Azure Pipelines?
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 team is migrating from TFVC to Git in Azure Repos. They want to preserve the history of all branches. Which migration tool should you use?
Design and implement a source control strategymediumSee the answer and why each option is right or wrong →You are designing a source control strategy for a team that uses GitHub Copilot. The team wants to ensure that code suggestions do not include sensitive data. Which approach should…
Design and implement a source control strategyhardSee 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 →A team uses Azure Boards to manage work items. They want to automatically update the state of a work item when a related pull request is merged in Azure Repos. Which TWO actions sh…
Refer to the exhibit. You have configured a Conditional Access policy in Microsoft Entra ID to require MFA for Azure DevOps. However, users report that they can still access Azure…
You need to enforce that all builds in Azure Pipelines use a specific version of the .NET SDK. What is the best approach?
Design and implement build and release pipelineseasySee the answer and why each option is right or wrong →A team uses Terraform to manage Azure infrastructure. They want to store the Terraform state file securely and enable collaboration. What is the recommended approach?
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…
Your team uses GitHub with a monorepo containing frontend and backend code. You need to implement a strategy where changes to the frontend folder trigger a frontend CI pipeline, ch…
Design and implement a source control strategymediumSee the answer and why each option is right or wrong →Your organization uses GitHub Actions for CI/CD. You have a workflow that deploys to Azure App Service. The deployment uses a publish profile secret stored as a GitHub secret. You…
Design and implement build and release pipelinesmediumSee the answer and why each option is right or wrong →Your team uses GitHub Actions for CI/CD. You need to ensure that secrets stored in GitHub repository secrets are not exposed in build logs. Which security practice should you imple…
Design and implement build and release pipelinesmediumSee the answer and why each option is right or wrong →Your team uses a Git flow branching strategy with develop and release branches. You want to enforce that only release branches can be merged into main, and all merges into main req…
Your team uses GitHub Actions to build and deploy a Node.js application to Azure Functions. You need to implement a CI/CD pipeline that automatically deploys to a staging environme…
Design and implement build and release pipelineshardSee the answer and why each option is right or wrong →You are designing a release pipeline for a multi-tenant SaaS application that is deployed to Azure App Service. Each tenant has its own App Service instance. The pipeline must depl…
Design and implement build and release pipelineshardSee the answer and why each option is right or wrong →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 →