You are developing an Azure Pipelines pipeline.
You need to configure a check in the pipeline that will query Azure Boards to ensure that
there are no active work item issues before the pipeline deploys a build to production.
Which type of check should you implement?
Show answerHide answer
Correct answer: Cpre-deployment gates
Question 52Choose 1
You plan to share packages that you wrote, tested, validated, and deployed by using Azure
Artifacts.
You need to release multiple builds of each package by using a single feed. The solution
must limit the release of packages that are in development.
What should you use?
Show answerHide answer
Correct answer: Cupstream sources
Explanation
Views enable you to share subsets of the NuGet, npm, Maven, Python and Universal
Packages package-versions in your feed with consumers. A common use for views
is to share package versions that have been tested, validated, or deployed but hold
back packages still under development and packages that didn’t meet a quality bar.
Question 53Choose 1
You have an existing project in Azure DevOps.
You plan to integrate GitHub as the repository for the project.
You need to ensure that Azure Pipelines runs under the Azure Pipelines identity.
Which authentication mechanism should you use?
Show answerHide answer
Correct answer: AGitHubApp
Explanation
GitHub App uses the Azure Pipelines identity.
Question 54Choose 1
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a
correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
You plan to create a release pipeline that will deploy Azure resources by using Azure
Resource Manager templates. The release pipeline will create the following resources:
Two resource groups
Four Azure virtual machines in one resource group
Two Azure SQL databases in other resource group
You need to recommend a solution to deploy the resources.
Solution: Create a main template that has two linked templates, each of which will deploy
the resource in its respective group.
Does this meet the goal?
Show answerHide answer
Correct answer: AYes
Explanation
To deploy your solution, you can use either a single template or a main template with many
related templates. The related template can be either a separate file that is linked to from
the main template, or a template that is nested within the main template.
Question 55Choose 1
You have an Azure subscription that contains an Azure pipeline named Pipeline1 and a
GitHub repository named Repo1, Repo1 contains Bicep modules. Pipeline1 deploys Azure resources by using the Bicep modules.
You need to ensure that all releases comply with Azure Policy before they are deployed to
production.
What should you do?
Show answerHide answer
Correct answer: AConfigure a deployment gate for Pipeline' include the Azure DevOps Security and
compliance assessment task.
Question 56Choose 1
You manage a project by using Azure Boards. You manage the project code by using
GitHub.
You have three work items that have IDs of 456. 457. and 458.
You need to create a pull request that will be linked to all the work items. The solution must
set the state of work item 456 to done.
What should you add to the commit message?
Show answerHide answer
Correct answer: CFixes #AB456, #AB457, #AB4S8
Question 57Choose 1
Your company is building a mobile app that targets Android devices and OS devices. Your
team uses Azure DevOps to manage all work items and release cycles. You need to
recommend a solution to perform the following tasks:
Collect crash reports for issue analysis
Distribute beta releases to your testers.
Get user feedback on the functionality of new apps.
What should you include in the recommendation?
Show answerHide answer
Correct answer: DMicrosoft Visual Studio App Center integration
Explanation
The "Exploratory Testing" extension is now "Test & Feedback" and is now Generally
Available.
Anyone can now test web apps and give feedback, all directly from the browser on any
platform: Windows, Mac, or Linux. Available for Google Chrome and Mozilla Firefox
(required version 50.0 or above) currently. Support for Microsoft Edge is in the pipeline and
will be enabled once Edge moves to a Chromium-compatible web platform.
Question 58Choose 3
You need to make a custom package available to all the developers. The package must be
managed centrally, and the latest version must be available for consumption in Visual
Studio automatically.
Which three actions should you perform? Each correct answer presents part of the
solution.
NOTE: Each correct selection is worth one point.
Show answerHide answer
Correct answer: A, B, EAdd the package URL to the Environment settings in Visual Studio.
Create a Get repository in Azure Repos.
Create a new feed in Azure Artifacts.
Question 59Choose 1
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains a unique solution that might meet the stated goals. Some
question sets might have more than one correct solution, while others might not have a
correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result,
these questions will not appear in the review screen.
The lead developer at your company reports that adding new application features takes
longer than expected due to a large accumulated technical debt.
You need to recommend changes to reduce the accumulated technical debt.
Solution: You recommend reducing the code complexity.
Does this meet the goal?
Show answerHide answer
Correct answer: AYes
Question 60Choose 1
You have a project in Azure DevOps.
You create the following YAML template named Template1.yml.
steps:
- script: 9pm install
- script: yarn install
- script: 9pm run compile
You create the following pipeline named File1.yml.
parameters:
users steps:
- task: MyTask@1
- script: echo Done
You need to ensure that Template1.yaml runs before File1.yml.
How should you update File1.yml?
Azure Pipelines offers two kinds of templates: includes and extends. Included templates
behave like #include in C++: it's as if you paste the template's code right into the outer file,
which references it. To continue the C++ metaphor, extends templates are more like
inheritance: the template provides the outer structure of the pipeline and a set of places
where the template consumer can make targeted alterations.
Full mock exam
Sit the AZ-400 exam before exam day
Full-length mocks with the same number of questions and the same time limit as the real AZ-400 exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.