AZ-303 Exam QuestionsBrowse all questions from this exam

AZ-303 Exam - Question 307


You have an Azure subscription that contains the resources shown in the following table.

Exam AZ-303 Question 307

Subnet1 is on VNET1. VM1 connects to Subnet1.

You plan to create a virtual network gateway on VNET1.

You need to prepare the environment for the planned virtual network gateway.

What are two ways to achieve this goal? Each correct answer presents a complete solution.

NOTE: Each correct selection is worth one point.

Show Answer
Correct Answer: AC

To create a virtual network gateway in Azure, you need to have a dedicated subnet named 'GatewaySubnet' within your virtual network (VNET1). This requires modifying the address space used by VNET1 to ensure there is enough space to create the GatewaySubnet. Therefore, modifying the address space used by VNET1 and creating the GatewaySubnet are essential steps to prepare the environment for a virtual network gateway. Deleting Subnet1 is not a viable option because VM1 is connected to it and the subnet space cannot be modified while it is in use.

Discussion

23 comments
Sign in to comment
issiaka
Aug 9, 2021

Correct answers are A & C When you add a new address space to the vnet you no longer need to delete Subnet1 (and here you can't because there is already a VM attached to Subnet1). Then you create the GatewaySubnet subnet in VNET1 matching the new CIDR range (whole or partial CIDR) you added to the VNET1

donathon
Dec 6, 2021

I stimulated this in the lab it's true.

ShehuUsman
Sep 23, 2021

Question says "Which are the two ways to achieve this" therefore, it is asking us to provide either way of getting it done. Option 1: You can modify the address space of VNET1 Option 2: You can delete subnet1 since subnet address space cannot be modified once created. please given answer is correct. A & E

gizda2
Oct 22, 2021

You can't delete the subnet as the VM keeps it.

altafpatel1984
Feb 13, 2022

Then why deleting subnet1, why not changing address space of subnet1?

altafpatel1984
Feb 13, 2022

And also, you cannot delete subnet1 because a VM is connected to it.

JeremyRui
Oct 22, 2021

Should be A&B as it's asking for two different complete solutions. To avoid overlapping you can achieve by either A or B. You can't just delete subnet 1 coz in this case VM1 is no longer in the VNET so E is not a complete solution.

XD17
Nov 12, 2021

But you cannot just change the address space of the subnet either as long as it keeps the VM.

dummyvm
Jul 7, 2021

strange question A. Modify the address space used by VNET1. --> OK B. Modify the address space used by Subnet1. If no resources are deployed within the subnet, you can change the address range. If any resources exist in the subnet, you must either move the resources to another subnet, or delete them from the subnet first. C. Create a subnet named GatewaySubnet on VNET1. --> no space available D. Create a local network gateway. --> no E. Delete Subnet1. You can delete a subnet only if there are no resources in the subnet. If resources are in the subnet, you must delete those resources before you can delete the subnet. B and E are similar, you need to delete de subnet resources first, if there is only 1 Vm, can be B https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/virtual-network/virtual-network-manage-subnet.md#add-a-subnet

rdemontis
Jul 14, 2021

Yes I think you are right and probably this is a wrong question.

issiaka
Aug 9, 2021

Correct answers are A & C When you add a new address space to the vnet you no longer need to delete Subnet1 (and here you can't because there is already a VM attached to Subnet1). Then you create the GatewaySubnet subnet in VNET1 matching the new CIDR range (whole or partial CIDR) you added to the VNET1

issiaka
Aug 9, 2021

Correct answers are A & C When you add a new address space to the vnet you no longer need to delete Subnet1 (and here you can't because there is already a VM attached to Subnet1). Then you create the GatewaySubnet subnet in VNET1 matching the new CIDR range (whole or partial CIDR) you added to the VNET1

Biden
Jul 15, 2021

Since the question states"Each correct answer presents a COMPLETE solution", and is also asking for 2 ways (and NOT 2 steps to achieve this)..options are A (modify VNET address space & B(Modify subnet space)... Subnet 1 cannot be DELETED since VM1 connects to this.

descreekert
Sep 9, 2021

I believe the given answer is correct A & E The key point is 'to prepare the environment'. A: 'Change the address space of VNET1' or E: 'Delete subnet1' both can make room for the planned virtual network gateway.

souvik123
Jul 12, 2021

A - Modify The Vnet C - Now that we have address space, create GatewaySubnet

Pinto
Jul 24, 2021

https://www.examtopics.com/discussions/microsoft/view/53974-exam-az-303-topic-2-question-14-discussion/ similar question but asking for only 1 choice

certpro
Aug 8, 2021

If solution is part of complete: then A & C , if its complete solution independently, then A & B , (Because, C can not be sone as no space left if only one solution , then A

syu31svc
Aug 29, 2021

This is A and C https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-about-vpn-gateway-settings Before you create a VPN gateway, you must create a gateway subnet. The gateway subnet contains the IP addresses that the virtual network gateway VMs and services use. When you create your virtual network gateway, gateway VMs are deployed to the gateway subnet and configured with the required VPN gateway settings. Never deploy anything else (for example, additional VMs) to the gateway subnet. The gateway subnet must be named 'GatewaySubnet' to work properly. Naming the gateway subnet 'GatewaySubnet' lets Azure know that this is the subnet to deploy the virtual network gateway VMs and services to. Address Space cannot overlap

Yiannisthe7th
Jul 8, 2021

Strange question indeed. I think A, E are correct. Question says "Each correct answer presents a COMPLETE solution"

mazin123
Jul 15, 2021

A and C

UnknownSecret
Jul 17, 2021

A & C - tested

JimGrayham
Jul 18, 2021

There are 2 choices under Virtual Network "+Subnet" and "+Gateway Subnet". You need to select "+Gateway Subnet", you don't add "+Subnet" and name it as "Gateway Subnet", those two are different. Answer is A & E, since it is asking for two ways, first is modify address space, second is to delete the subnet to accommodate the Gateway Subnet.

aut0pil0t
Jul 25, 2021

The key phrase is "Each correct answer presents a complete solution" so the two answers are independent of each other. Therefore, it is either A - modify address space or E - delete the subnet. A and E are correct.

tita_tovenaar
Jul 25, 2021

E can't be deleted since the VM connects to it. B is ruled out too for same reason. D is irrelevant, so A & C remain as correct answers.

griton
Aug 7, 2021

Answer: A & B

DerekKey
Nov 11, 2021

A&C - just recreate the scenario in Azure

jackr76
Jul 7, 2021

B? Make subnet smaller?

Linus0
Jul 7, 2021

you can modify the address space of Vnet1 even there are VM/Network Interface in the subnet(s)

bizarro
Aug 20, 2021

Question said "You need to prepare the environment". Then A and E are correct

tteesstt
Aug 22, 2021

VM1 is connected to Subnet1. You cannot modify subnet, if you try to you get the following error in Azure portal: "Failed to save subnet Failed to save subnet 'subnet1'. Error: 'Subnet subnet1 is in use and cannot be updated.'" Eliminating other options - A & D.

tteesstt
Sep 1, 2021

Never mind. D is not the answer. C is the more likely one.

david_dha
Dec 19, 2021

The question is not to provide the sequence actions. The question is "how to fix the overlapping address space issue" AB

AD3
Feb 14, 2022

A & E is correct two ways. A if you want to increase the Vnet space. E if you want to keep the existing Vnet space but cut down on subnet space. To perform E need to remove the endpoints/nic, delete subnet and reestablish it when subnet is recreated.