exam questions

Exam AZ-104 All Questions

View all questions & answers for the AZ-104 exam

Exam AZ-104 topic 4 question 99 discussion

Actual exam question from Microsoft's AZ-104
Question #: 99
Topic #: 4
[All AZ-104 Questions]

You have an Azure subscription.

You plan to deploy the resources shown in the following table.



You need to create a single Azure Resource Manager (ARM) template that will be used to deploy the resources.

Which resource should be added to the dependsOn section for VM1?

  • A. VNET1
  • B. NIC1
  • C. IP1
  • D. NSG1
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
Vestibal
Highly Voted 1 year, 4 months ago
Selected Answer: B
Therefore, the most direct and crucial dependency for VM1 among the listed resources is NIC1 (Option B). The NIC acts as the bridge between the VM and the other network resources like the virtual network, public IP, and network security group. Hence, it's essential to ensure that NIC1 is deployed before VM1. https://learn.microsoft.com/en-us/azure/templates/microsoft.compute/virtualmachines?pivots=deployment-language-arm-template https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/resource-dependency https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/template-tutorial-create-templates-with-dependent-resources?tabs=CLI
upvoted 18 times
...
N3m86
Highly Voted 1 year, 5 months ago
Answer is B
upvoted 9 times
...
[Removed]
Most Recent 5 months, 2 weeks ago
Selected Answer: B
B is correct
upvoted 1 times
...
Sickcnt
5 months, 3 weeks ago
I have checked the API with terraform and the VM depends on the NIC (I thought its VNET but its truly NIC, tested it)
upvoted 2 times
...
Amir1909
1 year ago
B is correct
upvoted 1 times
...
MatAlves
1 year, 1 month ago
{..., { "type": "Microsoft.Compute/virtualMachines", "apiVersion": "2022-11-01", "name": "[format('{0}{1}', variables('vmPrefix'), copyIndex())]", "location": "[parameters('location')]", "dependsOn": [ "[resourceId('Microsoft.Network/networkInterfaces',format('{0}-{1}', variables('nicPrefix'),copyIndex()))]" ], ...} https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/resource-dependency
upvoted 2 times
...
belyo
1 year, 1 month ago
Selected Answer: A
should be VNET once you choose you cant go back or have to re-create the vm i mean you cant switch VNETs only subnets/ip addresses etc.
upvoted 4 times
...
amsioso
1 year, 2 months ago
B NIC1
upvoted 1 times
...
Andreas_Czech
1 year, 3 months ago
Selected Answer: B
https://learn.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 4 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