Azure Administrator Domain 4: Implement and Manage Virtual Networking
38 free practice questions for Implement and Manage Virtual Networking in the Microsoft Azure Administrator Associate (AZ-104) exam. Try each question first, then open "Show answer" for the correct option and explanation.
Implement and Manage Virtual Networking practice questions
-
Question 1. How many IP addresses does Azure reserve in each subnet?
Show answer
Answer: B. Five
Azure reserves the first four addresses and the last address in every subnet.
-
Question 2. You create a subnet with a /29 prefix. How many addresses are usable for resources?
Show answer
Answer: D. Three
A /29 has eight addresses; Azure reserves five, leaving three.
-
Question 3. You need to peer two virtual networks. What must be true of their address spaces?
Show answer
Answer: D. They must not overlap
VNet peering requires non-overlapping address spaces.
-
Question 4. VNet A is peered with B, and B is peered with C. Can A reach C through B by default?
Show answer
Answer: C. No, peering is not transitive
Peering isn't transitive; use a hub with a network virtual appliance or gateway, or peer A and C directly.
-
Question 5. Which peering setting lets a spoke VNet use the hub's VPN gateway?
Show answer
Answer: C. Use remote gateways on the spoke, allow gateway transit on the hub
The hub allows gateway transit and the spoke uses remote gateways.
-
Question 6. What is required for a user-defined route that sends traffic through a firewall VM?
Show answer
Answer: B. A route table with next hop type Virtual appliance
UDRs specify a next hop, such as the private IP of a network virtual appliance.
-
Question 7. Traffic through a network virtual appliance is being dropped. Which VM NIC setting is likely missing?
Show answer
Answer: D. IP forwarding
The NVA's NIC must have IP forwarding enabled to pass traffic not addressed to itself.
-
Question 8. Where can a network security group be associated?
Show answer
Answer: A. To a subnet or a network interface
NSGs apply to subnets and individual NICs; both are evaluated if present.
-
Question 9. How are NSG rules processed?
Show answer
Answer: C. By priority number, lowest first, stopping at the first match
Lower numbers have higher priority; processing stops once a rule matches.
-
Question 10. Which default inbound NSG rule allows traffic between resources in the same virtual network?
Show answer
Answer: D. AllowVnetInBound
AllowVnetInBound permits traffic from the VirtualNetwork service tag.
-
Question 11. What is a service tag in an NSG rule?
Show answer
Answer: C. A named group of IP prefixes for an Azure service
Service tags like Storage or AzureLoadBalancer are maintained by Microsoft and simplify rules.
-
Question 12. What are application security groups (ASGs) used for?
Show answer
Answer: B. Grouping VM NICs by role to use in NSG rules
ASGs let you write rules like 'Web to DB on 1433' without tracking IP addresses.
-
Question 13. Which tool tests whether traffic is allowed or denied between a VM and a destination?
Show answer
Answer: C. Network Watcher IP flow verify
IP flow verify checks packets against NSG rules and reports the rule that allowed or denied them.
-
Question 14. Which Network Watcher tool shows the next hop type and route table used for traffic from a VM?
Show answer
Answer: C. Next hop
Next hop helps diagnose routing problems caused by UDRs.
-
Question 15. Which tool shows the effective security rules applied to a NIC from all associated NSGs?
Show answer
Answer: B. Effective security rules
Effective security rules combine subnet and NIC NSGs and default rules.
-
Question 16. Which service provides secure RDP and SSH to VMs without exposing public IPs?
Show answer
Answer: A. Azure Bastion
Bastion is deployed into an AzureBastionSubnet in the VNet.
-
Question 17. What subnet name and minimum size does Azure Bastion require?
Show answer
Answer: A. AzureBastionSubnet with at least /26
Bastion requires a subnet named AzureBastionSubnet, /26 or larger.
-
Question 18. Which subnet name is required for a VPN or ExpressRoute gateway?
Show answer
Answer: C. GatewaySubnet
Virtual network gateways must be deployed into a subnet named GatewaySubnet.
-
Question 19. What does a private DNS zone linked to a virtual network provide?
Show answer
Answer: B. Name resolution for resources within linked VNets
Private DNS zones resolve names privately and can auto-register VM records.
-
Question 20. What does auto-registration do on a private DNS zone virtual network link?
Show answer
Answer: D. Creates DNS records for VMs in the VNet automatically
With auto-registration, VM A records are created and removed as VMs are deployed.
-
Question 21. A private endpoint for a storage account works by IP but not by name. What is the likely cause?
Show answer
Answer: C. The privatelink DNS zone is not linked to the VNet
Private endpoints rely on a privatelink.* private DNS zone linked to the VNet.
-
Question 22. Which public IP SKU is zone-redundant by default and closed to inbound traffic unless allowed by an NSG?
Show answer
Answer: D. Standard
Standard public IPs are secure by default and support zones; Basic is being retired.
-
Question 23. Which load balancer distributes TCP and UDP traffic at layer 4?
Show answer
Answer: D. Azure Load Balancer
Azure Load Balancer works at the transport layer.
-
Question 24. Which service provides layer 7 load balancing with URL path-based routing and a WAF?
Show answer
Answer: A. Azure Application Gateway
Application Gateway routes HTTP(S) based on URLs and host headers and supports a WAF.
-
Question 25. What does a load balancer health probe do?
Show answer
Answer: A. Removes unhealthy backend instances from rotation
Instances that fail the probe stop receiving new flows until healthy.
-
Question 26. Which load balancer setting keeps a client's requests going to the same backend VM?
Show answer
Answer: B. Session persistence (client IP affinity)
Session persistence uses the source IP to map a client to the same backend.
-
Question 27. Which component defines how incoming traffic on a frontend port is sent to the backend pool?
Show answer
Answer: B. A load-balancing rule
Rules map frontend IP and port to a backend pool and port, using a probe.
-
Question 28. Which service gives VMs in a subnet outbound internet connectivity using static public IPs, without inbound exposure?
Show answer
Answer: B. Azure NAT Gateway
NAT Gateway provides scalable outbound SNAT with fixed public IPs.
-
Question 29. Which VPN type is required for point-to-site connections and most modern scenarios?
Show answer
Answer: A. Route-based
Route-based gateways support P2S, multiple S2S tunnels, and coexistence with ExpressRoute.
-
Question 30. What is a local network gateway in a site-to-site VPN?
Show answer
Answer: C. An Azure object that represents your on-premises VPN device and ranges
It stores the on-premises public IP and address prefixes used for routing.
-
Question 31. Which gateway SKU choice affects VPN throughput and number of tunnels?
Show answer
Answer: C. The VPN gateway SKU, such as VpnGw1 or VpnGw2
Higher SKUs support more tunnels and aggregate throughput.
-
Question 32. Which Network Watcher feature monitors connectivity and latency between endpoints over time?
Show answer
Answer: D. Connection monitor
Connection monitor continuously tests reachability and latency and raises alerts.
-
Question 33. You need to capture network traffic on a VM for analysis. Which tool should you use?
Show answer
Answer: C. Network Watcher packet capture
Packet capture uses the Network Watcher extension to record traffic to storage or local files.
-
Question 34. Which logs record information about IP traffic flowing through a virtual network?
Show answer
Answer: D. Virtual network flow logs
Flow logs (VNet flow logs, replacing NSG flow logs) capture allowed and denied flows for analysis.
-
Question 35. How do you give a VM a private IP address that never changes?
Show answer
Answer: A. Set the NIC's IP configuration assignment to Static
Static private IPs are set on the NIC IP configuration.
-
Question 36. Where do you configure custom DNS servers for VMs in a virtual network?
Show answer
Answer: C. In the DNS servers setting of the virtual network
VNet DNS settings apply to VMs; restart or renew leases to pick up changes.
-
Question 37. What does Azure Firewall provide that an NSG does not?
Show answer
Answer: B. Centralized, stateful filtering with FQDN rules and threat intelligence
Azure Firewall is a managed firewall service with application (FQDN) rules, NAT, and threat intelligence.
-
Question 38. Which subnet name does Azure Firewall require?
Show answer
Answer: A. AzureFirewallSubnet
Azure Firewall must be deployed in a subnet named AzureFirewallSubnet, /26 or larger.
Microsoft and Azure are trademarks of the Microsoft group of companies. These questions are original study material, not questions from the real exam.