- A
Move one of the gateway's NICs into a normal workload subnet.
Why wrong: VPN gateway components must remain in GatewaySubnet and cannot be moved to a workload subnet.
- B
Expand GatewaySubnet to a larger range, such as /27, and redeploy the VPN gateway.
GatewaySubnet is a dedicated subnet for VPN gateway resources, and the gateway requires enough free IP addresses to deploy and operate. If the current prefix is too small for the chosen configuration, the correct fix is to expand the subnet to a larger size, such as /27, if the VNet address space allows it. After resizing, the administrator can retry the gateway deployment with adequate capacity.
- C
Create a private endpoint inside GatewaySubnet to reserve extra addresses.
Why wrong: Private endpoints do not reserve gateway capacity and are not used to fix gateway IP shortages.
- D
Enable BGP so the gateway needs fewer IP addresses.
Why wrong: BGP affects route exchange, not the IP address requirements of the GatewaySubnet itself.
AZ-104 Implement and Manage Virtual Networking Practice Question
This AZ-104 practice question tests your understanding of implement and manage virtual networking. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
An administrator is deploying a new VPN gateway in an existing VNet. The GatewaySubnet currently uses a /28 range, and the deployment fails because the selected gateway configuration does not have enough available IP addresses. What is the best action?
Clue words in this question
Noticing these words before you look at the options changes how you read each choice.
Clue:
"best"Why it matters: Signals that multiple options may be partially correct. Choose the option that most directly solves the exact problem described, not the one that sounds most complete.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
Expand GatewaySubnet to a larger range, such as /27, and redeploy the VPN gateway.
The GatewaySubnet requires a minimum /27 range to support most VPN gateway SKUs, as Azure reserves several IP addresses for internal use and the gateway instances need at least 3–6 usable IPs depending on the SKU. Expanding the subnet to /27 provides enough addresses (32 total, minus reserved) to satisfy the gateway's allocation requirements, allowing the deployment to succeed.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Move one of the gateway's NICs into a normal workload subnet.
Why it's wrong here
VPN gateway components must remain in GatewaySubnet and cannot be moved to a workload subnet.
When this WOULD be correct
If a question asks how to free up IP addresses in a subnet for a new resource, and the subnet contains a VM with an unused NIC, moving that NIC to another subnet could release its IP address.
- ✓
Expand GatewaySubnet to a larger range, such as /27, and redeploy the VPN gateway.
Why this is correct
GatewaySubnet is a dedicated subnet for VPN gateway resources, and the gateway requires enough free IP addresses to deploy and operate. If the current prefix is too small for the chosen configuration, the correct fix is to expand the subnet to a larger size, such as /27, if the VNet address space allows it. After resizing, the administrator can retry the gateway deployment with adequate capacity.
Clue confirmation
The clue word "best" in the question point toward this answer.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
Create a private endpoint inside GatewaySubnet to reserve extra addresses.
Why it's wrong here
Private endpoints do not reserve gateway capacity and are not used to fix gateway IP shortages.
When this WOULD be correct
A question where a service needs to be accessed securely from on-premises without exposing it to the internet, and the subnet has sufficient IP capacity. For example: 'You need to access an Azure Storage account from on-premises over a private connection. What should you create in a subnet?'
- ✗
Enable BGP so the gateway needs fewer IP addresses.
Why it's wrong here
BGP affects route exchange, not the IP address requirements of the GatewaySubnet itself.
Option-by-option analysis
Why each answer is right or wrong
Understanding why wrong answers are wrong — and when they would be correct — is what separates a 750 score from a 900. The AZ-104 exam frequently reuses these exact scenarios with slightly different constraints.
✓Expand GatewaySubnet to a larger range, such as /27, and redeploy the VPN gateway.Correct answer▾
Why this is correct
GatewaySubnet is a dedicated subnet for VPN gateway resources, and the gateway requires enough free IP addresses to deploy and operate. If the current prefix is too small for the chosen configuration, the correct fix is to expand the subnet to a larger size, such as /27, if the VNet address space allows it. After resizing, the administrator can retry the gateway deployment with adequate capacity.
✗Move one of the gateway's NICs into a normal workload subnet.Wrong answer — click to see why▾
Why this is wrong here
Moving a gateway NIC into a normal workload subnet is not supported; VPN gateway NICs must reside in the GatewaySubnet. This action would break the gateway deployment.
★ When this WOULD be the correct answer
If a question asks how to free up IP addresses in a subnet for a new resource, and the subnet contains a VM with an unused NIC, moving that NIC to another subnet could release its IP address.
Why candidates choose this
Candidates may think that moving NICs is a general method to free IP addresses, not realizing that gateway NICs are tied to the GatewaySubnet and cannot be relocated.
✗Create a private endpoint inside GatewaySubnet to reserve extra addresses.Wrong answer — click to see why▾
Why this is wrong here
Creating a private endpoint inside GatewaySubnet does not increase the number of available IP addresses for the VPN gateway; private endpoints consume IP addresses from the subnet, making the shortage worse.
★ When this WOULD be the correct answer
A question where a service needs to be accessed securely from on-premises without exposing it to the internet, and the subnet has sufficient IP capacity. For example: 'You need to access an Azure Storage account from on-premises over a private connection. What should you create in a subnet?'
Why candidates choose this
Candidates may confuse private endpoints with a method to reserve or allocate IP addresses, not realizing they actually consume addresses and are unrelated to gateway IP requirements.
✗Enable BGP so the gateway needs fewer IP addresses.Wrong answer — click to see why▾
Why this is wrong here
Enabling BGP does not reduce the number of IP addresses required by the VPN gateway; BGP is a routing protocol that exchanges routes, not a method to change IP address consumption. The gateway still needs the same number of IP addresses for its instances.
★ When this WOULD be the correct answer
In a scenario where a VPN gateway is failing to establish BGP peering due to missing configuration, enabling BGP on the gateway and the on-premises device would be the correct action to allow dynamic route exchange.
Why candidates choose this
Candidates may mistakenly think BGP reduces IP address usage because BGP can aggregate routes, but this does not affect the gateway's own IP address requirements.
Analysis generated from the official AZ-104blueprint and verified against question context. The “when correct” sections are what AI assistants cite when candidates ask “what’s the difference between these options?”
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates assume a /28 subnet is always sufficient because it works for smaller gateways, but they overlook that larger SKUs or active-active configurations require more IPs, and Azure's reservation of 5 addresses per subnet further reduces usable space.
Detailed technical explanation
How to think about this question
Azure VPN gateways are deployed as two or more instances in an active/standby or active/active configuration, each requiring an IP address from the GatewaySubnet. The /28 range (16 addresses) typically leaves only 3–11 usable IPs after Azure reserves 5 addresses (for networking infrastructure), which is insufficient for larger SKUs like VpnGw3 that need 6 IPs. Expanding to /27 (32 addresses) ensures enough capacity for future scaling and high-availability scenarios.
KKey Concepts to Remember
- Read the scenario before looking for a memorised answer.
- Find the constraint that changes the correct option.
- Eliminate answers that are true in general but not in this case.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A startup's cloud architect reviews their monthly bill and notices costs are higher than expected for a long-running batch job. Switching from on-demand instances to Reserved Instances — or using Spot/Preemptible VMs — can reduce compute costs by up to 72 %. Questions like this test whether you understand the tradeoffs between commitment, flexibility, and cost across cloud pricing models.
Visual reference
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
- →
Implement and Manage Virtual Networking — study guide chapter
Learn the concepts, then practise the questions
- →
Implement and Manage Virtual Networking practice questions
Targeted practice on this topic area only
- →
All AZ-104 questions
1,170 questions across all exam domains
- →
AZ-104 study guide
Full concept coverage aligned to exam objectives
- →
AZ-104 practice test guide
How to use practice tests most effectively before exam day
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.
Manage Azure Identities and Governance practice questions
Practise AZ-104 questions linked to Manage Azure Identities and Governance.
Implement and Manage Storage practice questions
Practise AZ-104 questions linked to Implement and Manage Storage.
Deploy and Manage Azure Compute practice questions
Practise AZ-104 questions linked to Deploy and Manage Azure Compute.
Implement and Manage Virtual Networking practice questions
Practise AZ-104 questions linked to Implement and Manage Virtual Networking.
Monitor and Maintain Azure Resources practice questions
Practise AZ-104 questions linked to Monitor and Maintain Azure Resources.
AZ-104 Azure RBAC practice questions
Practise AZ-104 questions linked to AZ-104 Azure RBAC.
AZ-104 storage account practice questions
Practise AZ-104 questions linked to AZ-104 storage account.
AZ-104 virtual network practice questions
Practise AZ-104 questions linked to AZ-104 virtual network.
AZ-104 NSG practice questions
Practise AZ-104 questions linked to AZ-104 NSG.
AZ-104 Azure Monitor practice questions
Practise AZ-104 questions linked to AZ-104 Azure Monitor.
AZ-104 backup practice questions
Practise AZ-104 questions linked to AZ-104 backup.
AZ-104 managed identity practice questions
Practise AZ-104 questions linked to AZ-104 managed identity.
Practice this exam
Start a free AZ-104 practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this AZ-104 question test?
Implement and Manage Virtual Networking — This question tests Implement and Manage Virtual Networking — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Expand GatewaySubnet to a larger range, such as /27, and redeploy the VPN gateway. — The GatewaySubnet requires a minimum /27 range to support most VPN gateway SKUs, as Azure reserves several IP addresses for internal use and the gateway instances need at least 3–6 usable IPs depending on the SKU. Expanding the subnet to /27 provides enough addresses (32 total, minus reserved) to satisfy the gateway's allocation requirements, allowing the deployment to succeed.
What should I do if I get this AZ-104 question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
Are there clue words in this question I should notice?
Yes — watch for: "best". Signals that multiple options may be partially correct. Choose the option that most directly solves the exact problem described, not the one that sounds most complete.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Keep practising
More AZ-104 practice questions
- A storage automation service principal must upload, read, and delete blob data in one container by using Microsoft Entra…
- A subnet contains several application servers. You need to allow inbound TCP 3389 only from a management subnet named Su…
- A subscription admin wants to investigate who changed a resource and also review the platform-generated events for that…
- Based on the exhibit, which Azure feature should the administrator use to track this kind of platform-wide service issue…
- An administrator wants a script running on an Azure VM to create a resource in Azure without storing any passwords or cl…
- A PowerShell script runs on an Azure VM every night and uses Azure CLI commands to create tags and VM resources in anoth…
Last reviewed: Jun 11, 2026
This AZ-104 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-104 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.