Designing and Implementing Microsoft DevOps Solutions: AZ-400 Exam Question Answer - Resource Deployment with Azure Resource Manager Templates

Recommendation for Deploying Azure Resources Using Azure Resource Manager Templates

Question

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 will deploy the resources in one resource group and a nested template that will deploy the resources in the other resource group.

Does this meet the goal?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B.

B

Use two linked templates, instead of the nested template.

https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-linked-templates

The solution provided of creating a main template that will deploy the resources in one resource group and a nested template that will deploy the resources in the other resource group is a valid approach and meets the goal of deploying Azure resources by using Azure Resource Manager templates.

In this solution, a main ARM template is created that will deploy the resources in one resource group, which will contain the four Azure virtual machines. A nested ARM template is also created that will deploy the two Azure SQL databases in the other resource group.

The main template will reference the nested template using the "Microsoft.Resources/deployments" resource type. The deployment of the nested template will be defined as a resource within the main template, and the parameters for the nested template will be defined in the main template's parameter section.

By using this approach, the deployment of resources can be automated and managed in a more organized and efficient manner, with the main template serving as the entry point for the deployment and the nested template handling the deployment of specific resources.

Therefore, the provided solution of creating a main ARM template and a nested ARM template meets the goal of deploying Azure resources by using Azure Resource Manager templates. Thus, the answer is A. Yes.