exam questions

Exam AZ-303 All Questions

View all questions & answers for the AZ-303 exam

Exam AZ-303 topic 5 question 94 discussion

Actual exam question from Microsoft's AZ-303
Question #: 94
Topic #: 5
[All AZ-303 Questions]

HOTSPOT -
You play to deploy an Azure virtual machine named VM1 by using an Azure Resource Manager template.
You need to complete the template.
What should you include in the template? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Within your template, the dependsOn element enables you to define one resource as a dependent on one or more resources. Its value can be a comma- separated list of resource names.
Box 1: 'Microsoft.Network/networkInterfaces'
This resource is a virtual machine. It depends on two other resources:
Microsoft.Storage/storageAccounts
Microsoft.Network/networkInterfaces
Box 2: 'Microsoft.Network/virtualNetworks/'
The dependsOn element enables you to define one resource as a dependent on one or more resources. The resource depends on two other resources:
Microsoft.Network/publicIPAddresses
Microsoft.Network/virtualNetworks

References:
https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-tutorial-create-templates-with-dependent-resources

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
Kraviecc
Highly Voted 4 years, 4 months ago
Correct
upvoted 15 times
...
JasonHe
Highly Voted 3 years, 10 months ago
Not Correct. VM depends on NI, Storage, NI should depends on Subnet and Public IP.
upvoted 6 times
ahorva
3 years, 5 months ago
Given Answer is correct, to understand the dependency refers to the diagram. https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/media/template-tutorial-create-templates-with-dependent-resources/resource-manager-template-dependent-resources-diagram.png
upvoted 3 times
...
...
AberdeenAngus
Most Recent 3 years, 4 months ago
For the NIC either the vnet or subnet are possible answers but the subnet makes more sense. The resourceid function can accept multiple segments in the resource type https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/template-functions-resource#resourceid
upvoted 1 times
...
Kaivan
3 years, 6 months ago
Correct answer. Its network interfaces and Virtual network Correct Answer. Its network intera https://docs.microsoft.com/en-us/azure/virtual-machines/windows/ps-template
upvoted 2 times
...
JasonHe
3 years, 10 months ago
Not Correct. VM depends on NI, Storage, NI should depends on Subnet and Public IP.
upvoted 4 times
...
Pinto
3 years, 10 months ago
repeat topic1 q3
upvoted 4 times
...
nfett
3 years, 11 months ago
another repeat.
upvoted 4 times
...
alexa123456789
4 years, 2 months ago
repeated question - 3
upvoted 5 times
...
Davex
4 years, 3 months ago
Exactly
upvoted 3 times
...
jank
4 years, 3 months ago
Given answer is correct. See steps 6 and 7 here: https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/template-tutorial-create-templates-with-dependent-resources?tabs=CLI#explore-the-template
upvoted 5 times
...
sealvarezmx
4 years, 3 months ago
What about the default subnet? with it, you wouldn't need to specify one
upvoted 1 times
...
SAMBIT
4 years, 4 months ago
Check the next question: It needs both subnet and vnet. The second choice does not look correct to me.
upvoted 2 times
paulxyz90
4 years, 2 months ago
I suspect it is because there are other objects below /virtualNetworks/ that the NIC is dependant on - aside form Subnets. According to MS templates the given answer is correct
upvoted 2 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 ...