exam questions

Exam AZ-303 All Questions

View all questions & answers for the AZ-303 exam

Exam AZ-303 topic 1 question 3 discussion

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

HOTSPOT -
You plan 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

Reference:
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
AKumar
Highly Voted 4 years, 2 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 49 times
Rockers
4 years, 2 months ago
Bang on
upvoted 6 times
...
...
Stevezzc
Highly Voted 4 years, 4 months ago
given answer is correct.
upvoted 7 times
...
rxlicon
Most Recent 1 year, 9 months ago
"name": "[variables('networkInterfaceName')]", parameters('virtualNetworkName'), parameters('subnetName'))]"
upvoted 1 times
...
wangnan
3 years ago
dependon element define the deployment order, so NIC need VNet deployed first. If Vnet deployed, then the subnet must be deployed already ~
upvoted 1 times
...
sachinp2305
3 years, 2 months ago
Correct Answer - Appeared in today's exam 29 March 2022
upvoted 1 times
...
exnaniantwort
3 years, 2 months ago
Answer is correct. The second answer dependency is virtual network but not the subnet. see this github quickstart template shared by microsoft official https://docs.microsoft.com/en-us/azure/templates/microsoft.network/networkinterfaces?tabs=json#quickstart-templates https://github.com/Azure/azure-quickstart-templates/blob/master/quickstarts/microsoft.network/nic-publicip-dns-vnet/azuredeploy.json
upvoted 1 times
...
itvinoth83
3 years, 2 months ago
On Exam today, 28-03-2022; Most of the questions from this site, very useful !!
upvoted 1 times
...
rsamant
3 years, 3 months ago
For Network Interface dependency is with Subnet not virtual network directly. Tested from custom deployment in portal "resources": [ { "type": "Microsoft.Network/networkInterfaces", "apiVersion": "2020-06-01", "name": "[variables('networkInterfaceName')]", "location": "[parameters('location')]", "dependsOn": [ "[resourceId('Microsoft.Network/networkSecurityGroups', parameters('networkSecurityGroupName'))]", "[resourceId('Microsoft.Network/publicIPAddresses', variables('publicIPAddressName'))]", "[resourceId('Microsoft.Network/virtualNetworks/subnets', parameters('virtualNetworkName'), parameters('subnetName'))]" ]
upvoted 2 times
...
shree178
3 years, 3 months ago
Appeared today 19-2-2022.. Passed with 871.
upvoted 1 times
...
Azuremaster2
3 years, 3 months ago
Appeared today 13.2.2022
upvoted 1 times
...
rjcverar
3 years, 7 months ago
Appeared today 29.10.2021
upvoted 1 times
...
plmmsg
3 years, 9 months ago
1 - Microsoft.Network/networkInterfaces/ 2 - Microsoft.Network/virtualNetworks/
upvoted 2 times
...
syu31svc
3 years, 9 months ago
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. Virtual machine is dependent on network interface Network interface is dependent on virtual networks. Answer is correct
upvoted 2 times
...
mahmoodb
3 years, 9 months ago
Explanation -------------------- Box 1 - Microsoft.Network/networkInterfaces/ you can't create the virtual machine until its storage account and network interface exist. Box 2 - Microsoft.Network/virtualNetworks/ The resource type is Microsoft.Network/networkInterfaces. The resource depends on two other resources: Microsoft.Network/publicIPAddresses Microsoft.Network/virtualNetworks Reference: https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/template-tutorial-create-templates-with-dependent-resources?tabs=CLI
upvoted 3 times
...
SurajBokade
3 years, 10 months ago
Given Answer is correct
upvoted 1 times
...
janclintv
3 years, 11 months ago
On Exam 6/14 . Answers are correct
upvoted 3 times
jnu
3 years, 10 months ago
Were there any labs in the exam?
upvoted 1 times
...
heamgu
3 years, 11 months ago
Thank you!
upvoted 1 times
...
...
azurellc
4 years ago
On exam 5/15/2021
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 ...