Question 240
At VM creation, an application must be placed on the approved private VNet subnet and must not expose a public management IP. Which configuration directly establishes the VM's subnet attachment and inbound filtering?
Explanation
Correct Answer
The VM's NIC attaches the guest to a specific virtual network and subnet, which is the networking requirement in this case. Omitting a directly attached public IP avoids unnecessary inbound internet exposure, while NSG rules at the subnet and/or NIC enforce supported traffic filtering. Review effective rules from both layers and permitted application ports rather than treating any single rule as automatic security. Azure Bastion could separately provide administrator access, but it neither attaches the VM's application NIC to the requested subnet nor sets the packet-filtering rules for the application. Deploy, verify NIC IP configuration, test allowed traffic and confirm public management ingress is absent.
Incorrect Answers
Boot diagnostics can help analyze guest startup failures after a VM is created, including serial output and screenshots where supported. They cannot assign a NIC to the approved subnet or enforce ingress restrictions. This deployment has not reached the troubleshooting stage and no boot failure is described. Network placement must be declared in the VM NIC's VNet/subnet IP configuration, and traffic must be controlled through the applicable NSG rules and public-IP design. A diagnostic feature is observational, not a substitute for the actual network attachment and security configuration.
A managed identity gives software on a VM an identity for access to authorized Azure APIs without keeping a human password. It does not attach the VM to the application's subnet, set an IP address, prevent a public IP assignment, or configure NSG traffic controls. Azure RBAC applies to resource or data authorization rather than governing the flow of every TCP packet through the NIC. The specific requirement is private network placement plus inbound network filtering. A managed identity may be added for a separate application service need, but it does not fulfill either stated network deployment requirement.
Azure Bastion can broker secure RDP or SSH access to private VMs and may be useful after network placement is completed. However, it does not determine which subnet the application VM NIC joins and does not replace the NIC/subnet NSG associations that govern packet flow. Deploying Bastion alone while leaving the VM's own network attachment and rules unconfigured leaves the two explicit design requirements unsatisfied. For this item, first configure the private NIC and NSG rules; decide separately whether an administrative bastion is required. Do not confuse management-access infrastructure with the VM's required application network configuration.






Microsoft Azure Administrator (AZ-104) Practice Tests