mediummultiple choiceObjective-mapped

A branch office with a fixed public IP needs encrypted access to private Azure virtual machines and internal services in a VNet. Traffic must travel across the public internet in an encrypted tunnel, and the connection should use a route-based design. What should the administrator deploy in Azure?

Question 1mediummultiple choice
Full question →

A branch office with a fixed public IP needs encrypted access to private Azure virtual machines and internal services in a VNet. Traffic must travel across the public internet in an encrypted tunnel, and the connection should use a route-based design. What should the administrator deploy in Azure?

Answer choices

Why each option matters

Good practice is not just finding the correct option. The wrong answers often show the exact trap the exam wants you to fall into.

A

Distractor review

An Azure Virtual Network peering connection to the branch office network.

VNet peering does not connect an on-premises branch office across the public internet.

B

Best answer

A VPN gateway with a site-to-site connection.

A site-to-site VPN gateway creates an encrypted tunnel from the branch office to Azure over the public internet. Because the branch has a static public IP and the requirement calls for route-based connectivity, this is the correct Azure networking service. Once deployed, the gateway can provide private access to VMs and internal services in the virtual network without exposing them directly to the internet.

C

Distractor review

A service endpoint on the target subnet.

Service endpoints are for Azure PaaS services and do not provide encrypted branch-office connectivity to a VNet.

D

Distractor review

An Azure private endpoint for the virtual machines.

Private endpoints are for supported PaaS resources, not for exposing IaaS VMs or whole networks.

Common exam trap

Common exam trap: usable hosts are not the same as total addresses

Subnetting questions often tempt you into counting all addresses. In normal IPv4 subnets, the network and broadcast addresses are not usable host addresses.

Technical deep dive

How to think about this question

Subnetting questions test whether you can identify the network, broadcast address, usable range, mask and correct subnet. Slow down enough to calculate the block size correctly.

KKey Concepts to Remember

  • CIDR notation defines the prefix length.
  • Block size helps identify subnet boundaries.
  • Network and broadcast addresses are not usable hosts in normal IPv4 subnets.
  • The required host count determines the smallest suitable subnet.

TExam Day Tips

  • Write the block size before choosing the subnet.
  • Check whether the question asks for hosts, subnets or a specific address range.
  • Do not confuse /24, /25, /26 and /27 host counts.

Related practice questions

Related AZ-104 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

More questions from this exam

Keep practising from the same exam bank, or move into a focused topic page if this question exposed a weak area.

FAQ

Questions learners often ask

What does this AZ-104 question test?

CIDR notation defines the prefix length.

What is the correct answer to this question?

The correct answer is: A VPN gateway with a site-to-site connection. — A site-to-site VPN gateway is the correct service when an on-premises or branch location needs encrypted connectivity into an Azure VNet over the public internet. The requirement for a fixed public IP and route-based tunnels fits the standard Azure VPN gateway design. After the tunnel is established, users at the branch can reach private Azure resources as if they were on the internal network, without publishing those resources publicly. Why others are wrong: Peering only works between Azure VNets and does not create an encrypted branch-office tunnel. Service endpoints do not connect external networks to a VNet, and private endpoints are limited to supported Azure services rather than whole sets of private VMs. The question is asking for a network-to-network encrypted path, which points to VPN gateway.

What should I do if I get this AZ-104 question wrong?

Then try more questions from the same exam bank and focus on understanding why the wrong options are tempting.

Discussion

Loading comments…

Sign in to join the discussion.