Free AZ-400 sample questions
Try these free AZ-400 sample questions, each with the right answer and an explanation. They cover pipeline design, branching strategy and security checks inside pipelines. Use them to see which DevOps topics to study before you book.
Try them in the simulator Same questions, with study, timed and flashcard modes.
Showing 10 of 20 free sample questions.
A team is designing a package management strategy using Azure Artifacts. They produce several internal NuGet packages that are consumed by different applications. They need to create a feed that provides access to their own packages as well as packages from the official nuget.org repository. New applications should only use packages that have been vetted and approved by a quality assurance team. How should they configure their feeds to meet these requirements?
A DevOps engineer is optimizing a multi-stage YAML pipeline that builds, tests, and deploys a large application. The build and test stages take a significant amount of time. The engineer observes that several independent jobs within the test stage could run concurrently. What is the most effective way to configure the pipeline to run these test jobs in parallel?
A project requires a wiki to document its architecture, coding standards, and release procedures. The documentation will include complex diagrams to illustrate process flows and system interactions. The team wants to store these diagrams as text within the markdown files so they can be version-controlled and easily updated. Which syntax should the team use within the Azure DevOps wiki to embed these diagrams as code?
You are creating a Bicep template to deploy an Azure Web App. You need to ensure that the application setting `ASPNETCORE_ENVIRONMENT` is set based on an input parameter named `environmentType`. If `environmentType` is 'Production', the value should be 'Production'; otherwise, it should be 'Development'. Which Bicep expression should you use to define the value of this application setting?
A team is migrating their classic UI-based release pipelines in Azure DevOps to multi-stage YAML pipelines. They heavily use release gates to query Azure Monitor alerts and ensure system health before promoting a release to the next stage. How can this same functionality be implemented in a YAML pipeline?
A developer needs to revert a specific commit (`abc1234`) from the `main` branch that introduced a bug, but wants to keep the commit in the branch history for auditing purposes. The commit is not the most recent one. Which Git command should be used to achieve this?
A company is using GitHub and wants to automate the analysis of vulnerabilities in their open-source dependencies. They need a tool that automatically creates pull requests to upgrade packages to non-vulnerable versions. Which GitHub feature should they configure?
An organization is using both GitHub for source control and Azure DevOps for work item tracking and CI/CD pipelines. They want to establish traceability between GitHub commits and Azure Boards work items. Which two actions are required to enable developers to link commits to work items? (Select TWO)
A team uses a multi-stage YAML pipeline to deploy an application to Staging and Production environments. The deployment to Production requires an explicit sign-off from the project manager. The following diagram shows the pipeline structure. How should this approval be configured? flowchart LR Build --> Test Test --> Deploy_Staging Deploy_Staging --> Approval{Approval?} Approval -->|Yes| Deploy_Production Approval -->|No| Stop([End])
10 more free samples are waiting
Create a free account to unlock the whole AZ-400 sample bank, or get full access to all 250 practice questions in the simulator.