exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 7 question 73 discussion

Actual exam question from Microsoft's AZ-400
Question #: 73
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 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
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
D_zone
Highly Voted 3 years, 3 months ago
Ok guys, I have been looking at this question for days. Going From A to B and then back to A etc. But we seem to be over complicating the question. Solution says: 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. Where in the Solution are the resource groups created? Answer is a straight B.
upvoted 103 times
Beast_Hollow
3 years, 1 month ago
Exactly as it is stated in the question. Explained perfectly and you need more upvotes!
upvoted 1 times
monniq
3 years ago
resource groups can be created as part of the template
upvoted 4 times
debleenac85
2 years, 1 month ago
Yes the answer to the series will only be Linked Template. In nested template the RG needs to be present already
upvoted 2 times
...
...
...
rfox321
2 years, 8 months ago
Hey king, you dropped your crown
upvoted 10 times
...
...
artisticcheese
Highly Voted 4 years, 6 months ago
Correct answer is A. Nested template will able to fulfill requirement.
upvoted 36 times
...
Dankho
Most Recent 5 months, 1 week ago
Selected Answer: A
It seems that all variations of this question are True.
upvoted 1 times
...
yana_b
10 months ago
Selected Answer: B
Answer is no, as the proposed solution says to create 1 main template to deploy resources to one RG and a nested to deploy resources to the 2nd RG and it should be 1 main template to create the RGs and a nested template to deploy the resources, while setting the nested template to be dependent on the RGs see: create resource group and resources on this URL https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/deploy-to-subscription?tabs=azure-cli#create-resource-group-and-resources
upvoted 2 times
...
Shanmugamani
12 months ago
I would go for B We can accomplish the above via both in linked and nested but My assumption is for Nested template is as below Main template should created RG(s) and nested templates should create resources with depends on respective RG(s)
upvoted 1 times
...
MohmmadFayez
1 year, 9 months ago
To create the resource group and deploy resources to it, use a nested template. The nested template defines the resources to deploy to the resource group. Set the nested template as dependent on the resource group to make sure the resource group exists before deploying the resources. -So as explained above, you can't deploy resource to the resource group at the mainTamplet if main used to create the RG ,you will use mainTemplet to create the RG, and a nested tablet to deploy to the RG,but the Question said use main to deploy to first RG,that cant be correct because RG will be created at mainTemplet. if the question said use main-Templet to create RG's and 2 nested templet(why 2, because nested templet can be scoped to 1 RG only) to deploy to each RG the answer will be correct. So answer is B "No" https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/deploy-to-subscription?tabs=azure-cli#create-resource-group-and-resources
upvoted 2 times
...
syu31svc
1 year, 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 5 times
...
demonite
2 years ago
Selected Answer: A
A for sure
upvoted 2 times
...
Cheehp
2 years, 1 month ago
Selected during exam. Yes.
upvoted 2 times
...
rdemontis
2 years, 2 months ago
Selected Answer: A
correct answer is Yes. You could also create all the resources in the apposite Resource Groups using a template and a nested template. Is this the best thing to it? IMHO no, but it works. And you can do it even using just one template. In an ARM template you can establish the order of resource deployment by dependencies. So you can easily establish to create first the resource group and then the resources you want to put in. You can establish that all the resources that would be contained in the resource group has a dependsOn the resource group resource. https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/resource-dependency
upvoted 2 times
rdemontis
2 years, 2 months ago
Sorry but my previous answer is wrong. Since resource groups must be created via ARM template it is not possible to create related resources in the main. you must use a related template (linked or nested). So the correct answer is No. https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/deploy-to-subscription?tabs=azure-cli#resource-groups https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/linked-templates?tabs=azure-powershell
upvoted 3 times
...
...
LieJ0n
2 years, 2 months ago
I think its B. You can create resourcegroups from the main and then scope nested deployments to those resourcegroups for the deployment of resources. this forces you to scope the main deployment to subscription level. when you do that, you are limited to the types of resources you can deploy. ( https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/deploy-to-subscription?tabs=azure-cli) So you cannot use the main to deploy the first part of resources.
upvoted 3 times
...
AdamCzepiel
2 years, 3 months ago
i think the key is "You need to recommend a solution" so my opinion is: -> Create a main template that has two linked templates, each of which will deploy the resources in its respective group. This should be the correct recommendation.
upvoted 1 times
...
amsun10
2 years, 8 months ago
We should know exactly what the word "RECOMMEND" means, I think it is not only workable but meet the best practice, so I choose B
upvoted 4 times
...
poplovic
2 years, 8 months ago
This question is part of a a series of questions. You can find 4 questions in this dump. 1. two standalone templates. each will deploy the resources in its respective group. 2. a single standalone template that will deploy all the resources 3. a main template to deploy one resource group and a nested template to deploy another resource group. 4. a main template with two linked templates, each of which will deploy a resource group. two standalone templates should work one main template with one nested or linked template should work one main template with two nested or linked template should work https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/deploy-to-resource-group?tabs=azure-powershell
upvoted 5 times
poplovic
2 years, 8 months ago
back to the question again. Since it asks for "recommendation", the best answer is linked template.
upvoted 2 times
d0bermannn
2 years, 8 months ago
agreed, all but linked template will work, but no best practice way
upvoted 1 times
...
...
...
Dalias
2 years, 11 months ago
got this in 30 Jun 2021 exams. scored 800+ marks. Answered this as A
upvoted 7 times
...
jojom19980
2 years, 11 months ago
There is no doubt, this solution achieve the goal so the answer should be yes
upvoted 2 times
...
fflyin2k
3 years ago
Answer is No. This question is part of a a series of questions. You can find 4 questions in this dump. Only correct answer is, one parent ARM (to create resource groups) + 2 linked ARM (to deploy resources to each resource group)
upvoted 7 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 ...