Azure Administrator · Domain 4 of 5 · 19% of the exam

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

  1. Question 1. How many IP addresses does Azure reserve in each subnet?

    1. None
    2. Five
    3. Three
    4. Two
    Show answer

    Answer: B. Five

    Azure reserves the first four addresses and the last address in every subnet.

  2. Question 2. You create a subnet with a /29 prefix. How many addresses are usable for resources?

    1. Eight
    2. Five
    3. Six
    4. Three
    Show answer

    Answer: D. Three

    A /29 has eight addresses; Azure reserves five, leaving three.

  3. Question 3. You need to peer two virtual networks. What must be true of their address spaces?

    1. They must use public IP ranges
    2. They must be identical
    3. They must be in the same region
    4. They must not overlap
    Show answer

    Answer: D. They must not overlap

    VNet peering requires non-overlapping address spaces.

  4. Question 4. VNet A is peered with B, and B is peered with C. Can A reach C through B by default?

    1. Only when A and C share a resource group
    2. Yes, if all three are in one region
    3. No, peering is not transitive
    4. Yes, peering is always transitive
    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.

  5. Question 5. Which peering setting lets a spoke VNet use the hub's VPN gateway?

    1. Allow forwarded traffic on the spoke VNet only
    2. Enable service endpoints on both of the VNets
    3. Use remote gateways on the spoke, allow gateway transit on the hub
    4. Disable virtual network access on the hub VNet
    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.

  6. Question 6. What is required for a user-defined route that sends traffic through a firewall VM?

    1. A public IP address on every subnet
    2. A route table with next hop type Virtual appliance
    3. A network security group with a deny rule
    4. A private DNS zone linked to the VNet
    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.

  7. Question 7. Traffic through a network virtual appliance is being dropped. Which VM NIC setting is likely missing?

    1. Boot diagnostics
    2. A static public IP
    3. Accelerated networking
    4. IP forwarding
    Show answer

    Answer: D. IP forwarding

    The NVA's NIC must have IP forwarding enabled to pass traffic not addressed to itself.

  8. Question 8. Where can a network security group be associated?

    1. To a subnet or a network interface
    2. Only to a whole virtual network
    3. Only to a resource group
    4. Only to a storage account
    Show answer

    Answer: A. To a subnet or a network interface

    NSGs apply to subnets and individual NICs; both are evaluated if present.

  9. Question 9. How are NSG rules processed?

    1. In the order they were created, oldest first
    2. In alphabetical order of the rule names
    3. By priority number, lowest first, stopping at the first match
    4. By priority number, highest first, applying all matches
    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.

  10. Question 10. Which default inbound NSG rule allows traffic between resources in the same virtual network?

    1. DenyAllInBound
    2. AllowAzureLoadBalancerInBound
    3. AllowInternetInBound
    4. AllowVnetInBound
    Show answer

    Answer: D. AllowVnetInBound

    AllowVnetInBound permits traffic from the VirtualNetwork service tag.

  11. Question 11. What is a service tag in an NSG rule?

    1. A certificate used to authenticate a service
    2. A DNS name for a private endpoint
    3. A named group of IP prefixes for an Azure service
    4. A resource tag that labels the NSG by cost center
    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.

  12. Question 12. What are application security groups (ASGs) used for?

    1. Grouping subnets that share a route table
    2. Grouping VM NICs by role to use in NSG rules
    3. Grouping users who can access an application
    4. Grouping apps in one App Service plan
    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.

  13. Question 13. Which tool tests whether traffic is allowed or denied between a VM and a destination?

    1. Storage Explorer
    2. Azure Advisor score
    3. Network Watcher IP flow verify
    4. Cost Management cost analysis
    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.

  14. Question 14. Which Network Watcher tool shows the next hop type and route table used for traffic from a VM?

    1. Packet capture
    2. Topology
    3. Next hop
    4. Connection monitor
    Show answer

    Answer: C. Next hop

    Next hop helps diagnose routing problems caused by UDRs.

  15. Question 15. Which tool shows the effective security rules applied to a NIC from all associated NSGs?

    1. Activity log
    2. Effective security rules
    3. Resource Health
    4. Effective routes
    Show answer

    Answer: B. Effective security rules

    Effective security rules combine subnet and NIC NSGs and default rules.

  16. Question 16. Which service provides secure RDP and SSH to VMs without exposing public IPs?

    1. Azure Bastion
    2. Azure Traffic Manager
    3. Azure Front Door
    4. Azure DNS
    Show answer

    Answer: A. Azure Bastion

    Bastion is deployed into an AzureBastionSubnet in the VNet.

  17. Question 17. What subnet name and minimum size does Azure Bastion require?

    1. AzureBastionSubnet with at least /26
    2. AzureFirewallSubnet with at least /28
    3. GatewaySubnet with at least /27
    4. BastionSubnet with at least /29
    Show answer

    Answer: A. AzureBastionSubnet with at least /26

    Bastion requires a subnet named AzureBastionSubnet, /26 or larger.

  18. Question 18. Which subnet name is required for a VPN or ExpressRoute gateway?

    1. EdgeSubnet
    2. AzureGatewaySubnet
    3. GatewaySubnet
    4. VpnSubnet
    Show answer

    Answer: C. GatewaySubnet

    Virtual network gateways must be deployed into a subnet named GatewaySubnet.

  19. Question 19. What does a private DNS zone linked to a virtual network provide?

    1. Routing between two peered virtual networks
    2. Name resolution for resources within linked VNets
    3. Encryption of DNS queries sent to the internet
    4. Public name resolution for internet domains
    Show answer

    Answer: B. Name resolution for resources within linked VNets

    Private DNS zones resolve names privately and can auto-register VM records.

  20. Question 20. What does auto-registration do on a private DNS zone virtual network link?

    1. Creates service endpoints for each subnet
    2. Adds all VNets in the subscription to the zone
    3. Registers the domain name with a public registrar
    4. Creates DNS records for VMs in the VNet automatically
    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.

  21. Question 21. A private endpoint for a storage account works by IP but not by name. What is the likely cause?

    1. The storage account uses the hot access tier
    2. The VNet is peered with another virtual network
    3. The privatelink DNS zone is not linked to the VNet
    4. The NSG allows only outbound traffic to storage
    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.

  22. Question 22. Which public IP SKU is zone-redundant by default and closed to inbound traffic unless allowed by an NSG?

    1. Dynamic
    2. Basic
    3. Classic
    4. Standard
    Show answer

    Answer: D. Standard

    Standard public IPs are secure by default and support zones; Basic is being retired.

  23. Question 23. Which load balancer distributes TCP and UDP traffic at layer 4?

    1. Azure Front Door
    2. Azure Application Gateway
    3. Azure Traffic Manager
    4. Azure Load Balancer
    Show answer

    Answer: D. Azure Load Balancer

    Azure Load Balancer works at the transport layer.

  24. Question 24. Which service provides layer 7 load balancing with URL path-based routing and a WAF?

    1. Azure Application Gateway
    2. Azure Traffic Manager
    3. Azure NAT Gateway
    4. Azure Load Balancer
    Show answer

    Answer: A. Azure Application Gateway

    Application Gateway routes HTTP(S) based on URLs and host headers and supports a WAF.

  25. Question 25. What does a load balancer health probe do?

    1. Removes unhealthy backend instances from rotation
    2. Scales out the backend pool automatically
    3. Sends alerts to administrators by email
    4. Restarts virtual machines that stop responding
    Show answer

    Answer: A. Removes unhealthy backend instances from rotation

    Instances that fail the probe stop receiving new flows until healthy.

  26. Question 26. Which load balancer setting keeps a client's requests going to the same backend VM?

    1. Floating IP (direct server return)
    2. Session persistence (client IP affinity)
    3. Outbound rules with port allocation
    4. Idle timeout of 30 minutes
    Show answer

    Answer: B. Session persistence (client IP affinity)

    Session persistence uses the source IP to map a client to the same backend.

  27. Question 27. Which component defines how incoming traffic on a frontend port is sent to the backend pool?

    1. A NAT gateway
    2. A load-balancing rule
    3. An outbound rule
    4. A health probe
    Show answer

    Answer: B. A load-balancing rule

    Rules map frontend IP and port to a backend pool and port, using a probe.

  28. Question 28. Which service gives VMs in a subnet outbound internet connectivity using static public IPs, without inbound exposure?

    1. Application Gateway
    2. Azure NAT Gateway
    3. Private DNS zone
    4. Azure Bastion
    Show answer

    Answer: B. Azure NAT Gateway

    NAT Gateway provides scalable outbound SNAT with fixed public IPs.

  29. Question 29. Which VPN type is required for point-to-site connections and most modern scenarios?

    1. Route-based
    2. Static-routing only
    3. Policy-based
    4. Transport-mode
    Show answer

    Answer: A. Route-based

    Route-based gateways support P2S, multiple S2S tunnels, and coexistence with ExpressRoute.

  30. Question 30. What is a local network gateway in a site-to-site VPN?

    1. The gateway VM that Azure deploys in the GatewaySubnet
    2. A DNS server that resolves names for on-premises clients
    3. An Azure object that represents your on-premises VPN device and ranges
    4. A second VPN gateway in a paired region for failover
    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.

  31. Question 31. Which gateway SKU choice affects VPN throughput and number of tunnels?

    1. The number of NSGs in the VNet
    2. The DNS server setting on the VNet
    3. The VPN gateway SKU, such as VpnGw1 or VpnGw2
    4. The VNet address space size
    Show answer

    Answer: C. The VPN gateway SKU, such as VpnGw1 or VpnGw2

    Higher SKUs support more tunnels and aggregate throughput.

  32. Question 32. Which Network Watcher feature monitors connectivity and latency between endpoints over time?

    1. Effective routes
    2. IP flow verify
    3. Next hop
    4. Connection monitor
    Show answer

    Answer: D. Connection monitor

    Connection monitor continuously tests reachability and latency and raises alerts.

  33. Question 33. You need to capture network traffic on a VM for analysis. Which tool should you use?

    1. Cost Management exports
    2. Azure Advisor diagnostics
    3. Network Watcher packet capture
    4. Service Health alerts
    Show answer

    Answer: C. Network Watcher packet capture

    Packet capture uses the Network Watcher extension to record traffic to storage or local files.

  34. Question 34. Which logs record information about IP traffic flowing through a virtual network?

    1. Entra sign-in logs
    2. Azure activity logs
    3. Storage analytics logs
    4. Virtual network flow logs
    Show answer

    Answer: D. Virtual network flow logs

    Flow logs (VNet flow logs, replacing NSG flow logs) capture allowed and denied flows for analysis.

  35. Question 35. How do you give a VM a private IP address that never changes?

    1. Set the NIC's IP configuration assignment to Static
    2. Enable accelerated networking on the NIC
    3. Add the VM to an availability set
    4. Assign a Standard SKU public IP address
    Show answer

    Answer: A. Set the NIC's IP configuration assignment to Static

    Static private IPs are set on the NIC IP configuration.

  36. Question 36. Where do you configure custom DNS servers for VMs in a virtual network?

    1. In the storage account network settings
    2. In the NSG attached to the VM subnet
    3. In the DNS servers setting of the virtual network
    4. In the route table attached to the subnet
    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.

  37. Question 37. What does Azure Firewall provide that an NSG does not?

    1. Filtering on source and destination ports and IP addresses
    2. Centralized, stateful filtering with FQDN rules and threat intelligence
    3. Default rules that allow traffic inside a VNet
    4. Rules that apply to a subnet or network interface
    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.

  38. Question 38. Which subnet name does Azure Firewall require?

    1. AzureFirewallSubnet
    2. GatewaySubnet
    3. FirewallSubnet
    4. AzureBastionSubnet
    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.