WebMagicInformatica
AZ-104 practice questions

AZ-104 practice questions: Implement and manage virtual networking

5 free questions on Implement and manage virtual networking, 18% of the Azure Administrator Associate (AZ-104) exam. Try each one, then open the answer and explanation. None of them are in the free readiness check, so you can still take it fresh.

Question 1

In a hub-and-spoke design, spoke-a and spoke-b are each peered with the hub only. Azure Firewall is in the hub. VMs in the spokes cannot reach each other. What should you do?

  1. A.

    Nothing; peering is transitive so the spokes can already communicate.

  2. B.

    Delete the peering between the spokes and the hub.

  3. C.

    Create user-defined routes in each spoke with the firewall as the next hop, and allow forwarded traffic on the peerings.

  4. D.

    Add an NSG rule that allows all inbound traffic.

Show answer and explanation

Answer: C

VNet peering is non-transitive. A UDR sends spoke traffic to the hub firewall, which forwards it to the other spoke.

  • Nothing; peering is transitive so the spokes can already communicate.: Peering is not transitive.
  • Delete the peering between the spokes and the hub.: That would also remove access to the hub.
  • Add an NSG rule that allows all inbound traffic.: NSG rules filter traffic but do not create a route between non-peered networks.
Question 2

A web application needs layer 7 routing by URL path (/images/ to one pool and /api/ to another) and a web application firewall in a single region. Which service should you use?

  1. A.

    Azure Application Gateway with WAF.

  2. B.

    Azure Load Balancer (Standard).

  3. C.

    Azure Traffic Manager.

  4. D.

    Azure Bastion.

Show answer and explanation

Answer: A

Application Gateway is a layer 7 load balancer with URL path-based routing and an optional WAF.

  • Azure Load Balancer (Standard).: It works at layer 4 and cannot route by URL path.
  • Azure Traffic Manager.: It is DNS-based and does not inspect HTTP paths.
  • Azure Bastion.: It provides secure RDP/SSH access, not load balancing.
Question 3

A partner restricts API access by IP address. All VMs in subnet snet-workers must reach the partner from one fixed public IP, and you do not want to assign public IPs to each VM. What should you deploy?

  1. A.

    A VPN gateway.

  2. B.

    A NAT gateway associated with the subnet and a static public IP.

  3. C.

    An Azure Bastion host.

  4. D.

    A Traffic Manager profile.

Show answer and explanation

Answer: B

A NAT gateway provides outbound connectivity for a subnet through one or more static public IPs.

  • A VPN gateway.: It creates encrypted tunnels but is not used for outbound internet SNAT.
  • An Azure Bastion host.: It provides admin access to VMs, not outbound NAT.
  • A Traffic Manager profile.: It is DNS-based routing for inbound traffic.
Question 4

You host the public DNS zone contoso.com in Azure DNS. The domain was registered with an external registrar. What must you do so that the internet resolves names through Azure DNS?

  1. A.

    Create a private DNS zone with the same name.

  2. B.

    Create a virtual network link to the registrar.

  3. C.

    Update the name server (NS) records at the registrar to the Azure DNS name servers shown for the zone.

  4. D.

    Change the subscription's default DNS suffix.

Show answer and explanation

Answer: C

Delegation requires the registrar to point the domain to the name servers assigned to your Azure DNS zone.

  • Create a private DNS zone with the same name.: Private zones are not reachable from the internet.
  • Create a virtual network link to the registrar.: Registrars are not linked to virtual networks.
  • Change the subscription's default DNS suffix.: No such setting controls public delegation.
Question 5

Outbound web traffic from VMs must be allowed only to .windowsupdate.com and .microsoft.com. Everything else should be denied. Which service lets you create rules by fully qualified domain name?

  1. A.

    Azure Firewall application rules.

  2. B.

    A network security group rule.

  3. C.

    A private endpoint.

  4. D.

    A VPN gateway.

Show answer and explanation

Answer: A

Azure Firewall application rules filter outbound HTTP, HTTPS and MSSQL traffic by FQDN.

  • A network security group rule.: NSGs filter by IP, service tag and port, not wildcard FQDNs.
  • A private endpoint.: It exposes a service on a private IP; it doesn't filter outbound traffic.
  • A VPN gateway.: It provides encrypted connectivity, not FQDN filtering.

How ready are you for AZ-104?

Take the free readiness check: 15 questions from every exam domain in 20 minutes, with your score per domain.

  • 20 minutes
  • 15 questions
  • Free with an account

More AZ-104 practice by topic

Back to the AZ-104 practice test →

Independent practice material written from the official exam guide. Not affiliated with or endorsed by the exam provider.