hardmulti selectObjective-mapped

A backend subnet contains 18 Linux VMs that must install updates from the internet. Security requires all outbound traffic to use one static public IP, and none of the VMs may have their own public IP addresses. Which two changes meet the requirement? Select two.

Question 1hardmulti select
Full question →

A backend subnet contains 18 Linux VMs that must install updates from the internet. Security requires all outbound traffic to use one static public IP, and none of the VMs may have their own public IP addresses. Which two changes meet the requirement? Select two.

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

Best answer

Associate a NAT gateway with the backend subnet and provide it with a public IP address or prefix.

NAT gateway gives the subnet a predictable outbound public IP without assigning public IPs to the VMs.

B

Best answer

Ensure the VMs do not have individual public IP addresses assigned.

This keeps outbound identity centralized through the NAT gateway instead of the VM NICs.

C

Distractor review

Create a public load balancer and add the VMs to its backend pool.

A public load balancer is mainly for inbound distribution and is not the simplest outbound-only requirement here.

D

Distractor review

Use a private endpoint for internet updates so outbound traffic remains private.

Private endpoints connect to Azure PaaS services, not arbitrary internet destinations.

E

Distractor review

Attach a route table with 0.0.0.0/0 to Virtual network gateway.

A virtual network gateway is for hybrid connectivity, not direct internet egress with a static public IP.

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: Associate a NAT gateway with the backend subnet and provide it with a public IP address or prefix. — The right design is to place a NAT gateway on the backend subnet and give that NAT gateway a public IP or prefix. That makes outbound internet traffic from the subnet appear from one static address. The VMs themselves must not have public IPs, because the requirement is to centralize egress through the NAT gateway. This is a common approach for patching, package downloads, and controlled outbound identity. Why others are wrong: A public load balancer is not the clean outbound-only solution, and it does not replace NAT gateway behavior in this scenario. Private endpoints are for private access to supported Azure services, not the public internet. A route to a virtual network gateway is a hybrid-routing choice, not an internet egress design, so it does not satisfy the requirement.

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.