exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 7 question 67 discussion

Actual exam question from Microsoft's AZ-400
Question #: 67
Topic #: 7
[All AZ-400 Questions]

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 single standalone template that will deploy all the resources.
Does this meet the goal?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Yogothegreat
Highly Voted 5 years ago
Deploying 2 RGs, 4 VMs in RG1, and 2SQL in RG2 is very much possible in a single template. So the Answer should be A.Yes Friends please suggest
upvoted 20 times
JZed
4 years, 3 months ago
Only if the 2 Resource Groups exist. The requirement is to create 2 RGs, so you cant do that in a single template
upvoted 9 times
haxaffe
4 years, 1 month ago
I think it is no based on this answer. https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/deploy-to-resource-group?tabs=azure-cli#deploy-to-multiple-resource-groups
upvoted 2 times
xRiot007
1 year, 9 months ago
Haxaffe might be right. The docs say "If you set resourceGroup to the name of a resource group that doesn't exist, the deployment fails."
upvoted 1 times
...
...
...
yemma
4 years, 11 months ago
Yes you're right, the question is quite ambiguous. Three possible ways but the best is having linked templates.
upvoted 3 times
...
...
roomi997
Highly Voted 4 years, 2 months ago
"Single standalone template" So the answer is NO, will will need linked/nested templates to achieve this.
upvoted 8 times
...
RockyRoad456
Most Recent 8 months ago
I think answer should be Yes. This can be achieved in 1 template and we can use the "Depends On" clause in the template for all other resources under the 2 RGs so they will be created only after the 2 RGs get created. This works also in Terraform in the same manner.
upvoted 1 times
...
vsvaid
1 year, 5 months ago
Selected Answer: B
Deploying to multiple resource groups requires linked templates so answer is no. https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/deploy-to-resource-group?tabs=azure-cli#deploy-to-multiple-resource-groups. --------From the article------------------ You can deploy to 800 resource groups in a single deployment. Typically, this limitation means you can deploy to one resource group specified for the parent template, and up to 799 resource groups in nested or linked deployments. However, if your parent template contains only nested or linked templates and does not itself deploy any resources, then you can include up to 800 resource groups in nested or linked deployments. -
upvoted 1 times
...
syu31svc
2 years, 9 months ago
Selected Answer: B
Answer is No 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.
upvoted 3 times
...
FunkyB
2 years, 11 months ago
In a series of questions which this one belongs, typically is there only one correct answer in the series? Since most agree that "Create a main template that has two linked templates, each of which will deploy the resources in its respective group." is the correct, best answer, does that mean all the others should be No. Or, is it possible for these series of questions to have multiple correct answers?
upvoted 2 times
...
Eltooth
3 years ago
Selected Answer: B
B is correct answer.
upvoted 2 times
...
rdemontis
3 years, 1 month ago
Selected Answer: B
Answer is correct. To create a resource group and related resources you need to create the resource group in the main template and the resources in a nested or linked template. You can't create the resources in the same template because to create resource groups in arm template you have to change the schema with the subscription as a scope. "$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#" https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/deploy-to-subscription?tabs=azure-cli#resource-groups
upvoted 1 times
...
totalz
3 years, 6 months ago
Answer should be yes, with a single standalone (nested) template.
upvoted 1 times
...
d0bermannn
3 years, 7 months ago
yes, it will do but not best practice way
upvoted 1 times
...
Dalias
3 years, 10 months ago
got this in 30 Jun 2021 exams. scored 800+ marks. This was answered as B - No
upvoted 6 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago