Microsoft AZ-400 Practice Test - Questions Answers, Page 46
List of questions
Related questions
DRAG DROP
You have an Azure subscription.
You have the standards shown in the following table.
You plan to use Azure Pipelines to build and release web apps.
You need to recommend a solution to build the pipelines. The solution must meet the following requirements:
* Ensure that all new pipelines meet the security requirements defined in Standards
* Ensure that the first stage of all new pipelines contains the software prerequisites defined in Standard2.
* Minimize administrative effort.
What should you use to implement each standard? To answer, drag the appropriate options to the correct standards. Each component may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.
HOTSPOT
You have an Azure Pipelines pipeline named Pipeline1 that has the following YAML definition.
NOTE: Each correct selection is worth one point.
DRAG DROP
You have a GitHub repository named repo1.
You migrate repo1 to an Azure Repos repository named repo2.
After the migration, changes are made to repo1.
You need to sync the changes to repo2.
How should you complete the script? To answer, drag the appropriate values to the correct targets. Each value may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.
You manage a project by using Azure Boards, and you manage the project code by using Azure Repos. You have a bug work item that has an ID of 123. You need to set the work item state to Resolved. What should you add to the commit message?
You manage projects by using Azure Boards. You manage project code by using GitHub. You have a work item that has an ID of 456. You need to link work item 456 to a new pull request.
What are two ways to achieve this goal? Each correct answer presents a complete solution. NOTE: Each correct solution is worth one point.
You need to use an Azure Pipelines pipeline to build and test an app and test the database of the app. The solution must meet the following requirements.
* The test stages must be run in parallel.
* The Publish_Test_Results stage must always be run.
* The test stages must be run after successful completion of the build stage.
* The Publish_Test_Results stage must be run after completion of all the test stages
Solution: You include the following elements in the YAML definition of the pipeline.
Does this meet the goal?
SIMULATION
Task 1
Navigate to https://dev.azure.com, select Start Free, and specify the following credentials:
* Password: eWrSalD2!
Use the default setting to sign up for Azure DevOps and create an Azure DevOps organization. Once the organization is created. creates private project named Project1.
You need to add an external user that has an email address of [email protected] as a stakeholder of the User1 -42147509 Azure DevOps organization.
The user must be added to the most restrictive Azure DevOps group.
To complete this task, sign in to the Azure DevOps portal as Userl-42147509ExamUsers.com.
SIMULATION
Task 2
For the RG1 lod42147S09 resource group, you need to create an action group named DevOpsAG that can be triggered in any region by using Alerts.
The action group must email two users named admin1 @contoso.com and [email protected] and notify members of the Owner role for the resource.
Use only the common alert schema for notifying the resource owners.
SIMULATION
Task 3
You need to create a new team dashboard named Dashboard1 for the default project team of Project1. The dashboard must display the members of the team
SIMULATION
Task 4
Initialize the default main branch, if it does not exist already.
In the Userl-42147509 Azure DevOps project, you need to implement an approval process for the default main branch.
The process must use the four-eyes principle and have at least one approval on every iteration.
Question