AZ-400 Exam Question 76
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 use an Azure Pipelines pipeline to build and release web apps.
You need to configure the pipeline to meet the following requirements:
- Only run when there is a change in the /webapp folder.
- Only run when a pr is created.
Solution: You configure the pipeline definition by using the following elements.

Does this meet the goal?
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 use an Azure Pipelines pipeline to build and release web apps.
You need to configure the pipeline to meet the following requirements:
- Only run when there is a change in the /webapp folder.
- Only run when a pr is created.
Solution: You configure the pipeline definition by using the following elements.

Does this meet the goal?
AZ-400 Exam Question 77
Case Study 2 - Contoso, Ltd
Background
Contoso, Ltd. is a manufacturing company that has a main office in Chicago.
Contoso plans to improve its IT development and operations processes by implementing Azure DevOps principles. Contoso has an Azure subscription and creates an Azure DevOps organization.
The Azure DevOps organization includes:
* The Docker extension
* A deployment pool named Pool7 that contains 10 Azure virtual machines that run Windows Server 2016 The Azure subscription contains an Azure Automation account.
Contoso plans to create projects in Azure DevOps as shown in the following table.

Technical requirements
Contoso identifies the following technical requirements:
* Implement build agents for Project1.
* Whenever possible, use Azure resources.
* Avoid using deprecated technologies.
* Implement a code flow strategy for Project2 that will:
- Enable Team2 to submit pull requests for Project2.
- Enable Team2 to work independently on changes to a copy of Project2.
- Ensure that any intermediary changes performed by Team2 on a copy of Project2 will be subject to the same restrictions as the ones defined in the build policy of Project2.
* Whenever possible implement automation and minimize administrative effort.
* Implement Project3, Project5, Project6, and Project7 based on the planned changes
* Implement Project4 and configure the project to push Docker images to Azure Container Registry.
Drag and Drop Question
You need to implement the code flow strategy for Project2 in Azure DevOps.
Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.

Background
Contoso, Ltd. is a manufacturing company that has a main office in Chicago.
Contoso plans to improve its IT development and operations processes by implementing Azure DevOps principles. Contoso has an Azure subscription and creates an Azure DevOps organization.
The Azure DevOps organization includes:
* The Docker extension
* A deployment pool named Pool7 that contains 10 Azure virtual machines that run Windows Server 2016 The Azure subscription contains an Azure Automation account.
Contoso plans to create projects in Azure DevOps as shown in the following table.

Technical requirements
Contoso identifies the following technical requirements:
* Implement build agents for Project1.
* Whenever possible, use Azure resources.
* Avoid using deprecated technologies.
* Implement a code flow strategy for Project2 that will:
- Enable Team2 to submit pull requests for Project2.
- Enable Team2 to work independently on changes to a copy of Project2.
- Ensure that any intermediary changes performed by Team2 on a copy of Project2 will be subject to the same restrictions as the ones defined in the build policy of Project2.
* Whenever possible implement automation and minimize administrative effort.
* Implement Project3, Project5, Project6, and Project7 based on the planned changes
* Implement Project4 and configure the project to push Docker images to Azure Container Registry.
Drag and Drop Question
You need to implement the code flow strategy for Project2 in Azure DevOps.
Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.

AZ-400 Exam Question 78
You have an Azure web app that is deployed by using Azure Pipelines.
You need to ensure that when a new version of the app is deployed to production, you can roll back to the previous version. The solution must meet the following requirements:
- Minimize downtime during the deployment.
- Minimize the time it takes for the rollback.
What should you use?
You need to ensure that when a new version of the app is deployed to production, you can roll back to the previous version. The solution must meet the following requirements:
- Minimize downtime during the deployment.
- Minimize the time it takes for the rollback.
What should you use?
AZ-400 Exam Question 79
You have a widget named App1 and an Azure DevOps YAML pipeline named Pipeline1. App1 is released by using Pipeline1. Pipeline1 contains a single stage and a single job.
You need to ensure that App1 is approved before the app is released.
Which two actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
You need to ensure that App1 is approved before the app is released.
Which two actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
AZ-400 Exam Question 80
Drag and Drop Question
You have a tenant in Microsoft Azure Active Directory (Azure AD), part of Microsoft Entra. The tenant contains three groups named Group1, Group2, and Group3.
You create a new project in Azure DevOps named Project1.
You need to secure the service connections for Project1. The solution must meet the following requirements:
- The members of Group1 must be able to share and unshare a service
connection with other projects.
- The members of Group2 must be able to rename a service connection and update the description.
- The members of Group3 must be able to use the service connection
within build or release pipelines.
- The principle of least privilege must be followed.
Which permission should you grant to each group? To answer, drag the appropriate permissions to the correct groups. Each permission 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 have a tenant in Microsoft Azure Active Directory (Azure AD), part of Microsoft Entra. The tenant contains three groups named Group1, Group2, and Group3.
You create a new project in Azure DevOps named Project1.
You need to secure the service connections for Project1. The solution must meet the following requirements:
- The members of Group1 must be able to share and unshare a service
connection with other projects.
- The members of Group2 must be able to rename a service connection and update the description.
- The members of Group3 must be able to use the service connection
within build or release pipelines.
- The principle of least privilege must be followed.
Which permission should you grant to each group? To answer, drag the appropriate permissions to the correct groups. Each permission 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.




