nerdexam
MicrosoftMicrosoft

AZ-104 · Question #677

AZ-104 Question #677: Real Exam Question with Answer & Explanation

The correct answer is B: NIC1. A virtual machine directly depends on its network interface card (NIC) for network connectivity, thus NIC1 must be deployed before VM1 in an ARM template.

Submitted by brentm· Mar 4, 2026Deploy and manage Azure compute resources

Question

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?

Options

  • AVNET1
  • BNIC1
  • CIP1
  • DNSG1

Explanation

A virtual machine directly depends on its network interface card (NIC) for network connectivity, thus NIC1 must be deployed before VM1 in an ARM template.

Common mistakes.

  • A. VNET1 is a dependency for NIC1 (or the subnet NIC1 connects to), but not a direct dependency for VM1 itself.
  • C. IP1 (Public IP address) is a dependency for NIC1 if a public IP is assigned, but not a direct dependency for VM1 itself.
  • D. NSG1 (Network Security Group) is typically a dependency for NIC1 (or the subnet), but not a direct dependency for VM1 itself.

Concept tested. ARM template resource dependencies for virtual machines

Reference. https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/create-resource-group-template?tabs=json#dependencies

Community Discussion

No community discussion yet for this question.

Full AZ-104 PracticeBrowse All AZ-104 Questions