exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 7 question 66 discussion

Actual exam question from Microsoft's AZ-400
Question #: 66
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 two standalone templates, each of which will deploy the resources in its respective 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
TosO
Highly Voted 4 years, 8 months ago
A is correct - you can deploy several ARM templates in one deployment - just add different tasks or multiple ARM deployment steps in the task
upvoted 52 times
hotspot02103
4 months, 2 weeks ago
if the templates are standalone, you'll need a template of scope "subscription" to create the two RG's, then you need individual (2x) standalone templates scoped to the two RGs. That makes the standalone template 3x. You can't technically implement this with only 2x stand alone templates due to scoping issues (assuming non of the templates are nested, nor linked)
upvoted 1 times
...
KumaTed
1 year, 5 months ago
the question notes that "Some question sets might have more than one correct solution, while others might not have a correct solution." so , the answer should be A.
upvoted 1 times
...
d0bermannn
3 years, 1 month ago
yes, it will do but not best practice way
upvoted 5 times
...
...
cavemanc82
Highly Voted 4 years, 7 months ago
Agree with Tos0... but these ARM questions suck!
upvoted 21 times
totalz
3 years ago
Because the documents suck, still are!
upvoted 4 times
...
...
vsvaid
Most Recent 11 months ago
Selected Answer: A
We can deploy multiple ARM templates. Not best solution but will work
upvoted 2 times
...
vsvaid
11 months ago
Ignore my previous answer, I will go with No. Possible but not recommended
upvoted 1 times
...
vsvaid
11 months ago
Seems like it is possible so A, though not best solution
upvoted 1 times
...
xRiot007
1 year, 3 months ago
A - Yes - you can deploy multiple templates in one deployment.
upvoted 1 times
xRiot007
1 year, 3 months ago
Actually, I am not so sure about it. You need a master ARM template to control the other 2, and the question specifies nothing about that.
upvoted 1 times
...
...
armvch
1 year, 8 months ago
Selected Answer: B
Sure you can deploy it this way but it's not recommended approach
upvoted 2 times
...
AzureJobsTillRetire
1 year, 10 months ago
Selected Answer: B
I think that we all agree that this is not best practice. The question asks what you would “recommend” as a solution, I do not think we should recommend this solution for the reason that this is not the best practice. Hence the answer has to be No – we do not recommend.
upvoted 7 times
xRiot007
1 year, 3 months ago
Answer is A - Yes. You are not being asked here what is best practice, you are asked if it is possible, which it is.
upvoted 1 times
...
AzureJobsTillRetire
1 year, 10 months ago
You need to recommend a solution. Question: Does this meet the goal? The goal is that you would be recommending best practices.
upvoted 5 times
...
...
pkg007
2 years, 2 months ago
I think answer is B For small to medium solutions, a single template is easier to understand and maintain. You can see all the resources and values in a single file. For advanced scenarios, linked templates enable you to break down the solution into targeted components. You can easily reuse these templates for other scenarios. https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/linked-templates?tabs=azure-powershell
upvoted 3 times
...
syu31svc
2 years, 3 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 4 times
...
Eltooth
2 years, 6 months ago
Selected Answer: A
Template 1 : Resource Group 1 4 x Azure VMs Template 2: Resource Group 2 2 x Azure SQL databases (if standalone)
upvoted 3 times
...
jay158
2 years, 7 months ago
Selected Answer: B
Try creating it, you will find that you can't create it without linked templates.
upvoted 3 times
hotspot02103
4 months, 2 weeks ago
exactly, it's technically impossible due to scoping, not sure why all are marking A... you either need 3x stand alone templates, or less templates but linked or nested !!
upvoted 1 times
...
...
Cheehp
2 years, 7 months ago
Selected during exam. Yes.
upvoted 1 times
...
AlexLiourtas
2 years, 7 months ago
Selected Answer: A
You can use individual ARM templates to deploy to different resource groups.
upvoted 2 times
...
rdemontis
2 years, 7 months ago
Selected Answer: A
The answer is Yes. You can use how many templates you want and add the relative tasks
upvoted 2 times
rdemontis
2 years, 7 months ago
To be more precise, the solution works by using two standalone Nested Templates. In fact you can create the resource group in the main template and it is essential to use a related template (nested/linked) to create the resources contained in the resource group specifying a dependsOn. It is also essential that the main has a scope at the subscription level. It must indicate the following schema: "$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 2 times
rdemontis
2 years, 7 months ago
Sorry, on second thought I'm afraid my previous answer might be wrong. My doubt is that my solution is not in tune with the requirement in the question because probably standalone template means a single template with no other linked or nested ones. And if so, the correct answer to the question is No. As mentioned above you need both ARM templates to be nested or linked.
upvoted 2 times
...
...
...
s9p3r7
3 years, 2 months ago
just remember that "Some question sets might have more than one correct solution"
upvoted 2 times
...
Dalias
3 years, 4 months ago
got this in 30 Jun 2021 exams. scored 800+ marks. i answered as A.
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