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.
Q.1 – 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?
A. Yes
B. No
Correct Answer: B
Use two linked templates, instead of the nested template.
Reference: https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-linked-templates
Q.2 – Solution: Create a main template that has two linked templates, each of which will deploy the resources in its respective group.
Does this meet the goal?
A. Yes
B. No
Correct Answer: A
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.