exam questions

Exam AZ-300 All Questions

View all questions & answers for the AZ-300 exam

Exam AZ-300 topic 2 question 23 discussion

Actual exam question from Microsoft's AZ-300
Question #: 23
Topic #: 2
[All AZ-300 Questions]

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

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.

  • A. Modify the address space used by VNET1.
  • B. Modify the address space used by Subnet1.
  • C. Create a subnet named GatewaySubnet on VNET1.
  • D. Create a local network gateway.
  • E. Delete Subnet1.
Show Suggested Answer Hide Answer
Suggested Answer: AE 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Ekramy_Elnaggar
Highly Voted 5 years, 5 months ago
Answer is correct [ A, E ] , will explain : A. Modify the address space used by VNET1 >>> an option B. Modify the address space used by Subnet1 >>> not an option as you can't modify subnet address after creating it, you can only delete the whole subnet. C. Create a subnet named GatewaySubnet on VNET1 >>> this is an implementation step for the GW and the question asking for preparation steps, not implementation steps. D. Create a local network gateway. >>> >> this is an implementation step for the GW and the question asking for preparation steps, not implementation steps E. Delete Subnet1. >> an option ( as then you have free space to create the GatewaySubnet and also you can later create small subnet for the VMs )
upvoted 52 times
onlyfunmails
5 years, 5 months ago
C is preparation step (pre-requisite) for VNG. A & C
upvoted 5 times
qr
5 years, 2 months ago
onlyfunmails is correct. Once subnet is deleted a new one can be created which takes less ips and then there will be room for a GW
upvoted 2 times
...
sameer2803
5 years, 1 month ago
you can perform the step C only when step B is done. and they are asking for first two steps. so C is correct but stands as third step. so the first two is A and E
upvoted 1 times
...
...
Karls
5 years, 4 months ago
A, E are correct. Question says "Each correct answer presents a COMPLETE solution".
upvoted 5 times
Karls
5 years, 3 months ago
Sorry, I don't sure about E is a correct solution. Question said: Each answer presents a COMPLETE solution. A: It's correct because we can add new address space to a subnet. => OK B: It's correct too if we think that VM is not associate with subnet01 ("in table: address space - Not applicable"). If we think that it isn't associate, we can modify subnet if it don't any any VM associate (I checked). Then, we can modify 10.1.1.0/24 to a new subnet with less IPs, changing address space to 10.1.1.0/25. In this way, we have subnet1 from 10.1.1.0 to 10.1.1.127 ip address. Then we will have an address space from 10.1.1.128 to 10.1.1.255 free. So, we can create GatewaySubnet for example with 10.1.1.128/28 address space. E: Deleted Subnet1. We can do this solution only if subnet1 don't have any VM associate, else we can't deleted. So, if there isn't a VM then is better solution B and modify subnet, because if we deleted subnet1 we can create a Gatewaysubnet but we already need subnet1 to attach the VM.
upvoted 2 times
...
...
riyamalin
5 years, 1 month ago
B. Modify the address space used by Subnet1 >>> not an option as it is being used by VM1. In case subnet is not used by any resource, address range can be changed.
upvoted 2 times
...
...
pinox1
Highly Voted 5 years, 6 months ago
A and C
upvoted 49 times
dumpmaster
5 years, 6 months ago
Yes, it's right, I did in Lab.
upvoted 6 times
...
bootyholeman
5 years, 3 months ago
yes, We cannot delete Subnet1 not modify it if it has attached resources (VM1 in our case) - I've tried local network gateways does't make sense. We do can modify VNET address space (I've tried)
upvoted 5 times
silverdeath
5 years, 1 month ago
you can modify it to make it larger, i have tried that /16
upvoted 4 times
...
Ashu141294
4 years, 11 months ago
. you can easily modify the address space of yoor vnet or subnet
upvoted 1 times
Blaaa
4 years, 8 months ago
subnet you cant modify if it has resource attached to it
upvoted 1 times
...
...
...
DP80
5 years, 1 month ago
Wrong! The answer is A & E. Read the question carefully - "Each correct answer presents a complete solution". On the other hand, the question is about preparing it but not adding the gateway - "You need to prepare the environment for the planned virtual network gateway". Answer A & E are the two different ways of preparation.
upvoted 14 times
Blaaa
4 years, 8 months ago
In order to delete subnet, will you delete the vm as well?
upvoted 1 times
...
...
praveen97
4 years, 10 months ago
Yes, A and C are correct. But C doesn't provide a complete solution but I didn't see any other applicable answers here. B. Modify the address space used by Subnet1. - Once the Subnet1 is created, you can't modify the address space after that. D. Create a local network gateway. - This step will be done usually after creating the GatewaySubnet in VNet1 E. Delete Subnet1 - You can't delete Subnet1 if it is associated with VM1. I have tried it in the lab. It gives the below error. Only if VM1 is deleted, then only we can delete the Subnet1.
upvoted 3 times
praveen97
4 years, 10 months ago
When you try to delete Subnet1, it gives the below error. "Failed to delete subnet 'default'. Error: Subnet default is in use by testwvm01672/ipconfig1 and cannot be deleted. In order to delete the subnet, delete all the resources within the subnet. See aka.ms/deletesubnet."
upvoted 1 times
...
...
...
AhmedAL
Most Recent 4 years, 7 months ago
sometimes i wonder about the way these questions are worded. It could be AB, AE - since there is a resource in subnet1 B and E may result in the same effort. I could also be B and E since the two options present different solutions but they both require deleting the resources.
upvoted 1 times
...
Tony183
4 years, 7 months ago
Answer A and C.
upvoted 1 times
...
ergauravtaneja
4 years, 8 months ago
Combination of A and C Increase vnet size and then create gateway Or Combination of B and C Decrease existing subnet size to accomodate new gateway
upvoted 1 times
...
bc5468521
4 years, 8 months ago
Each correct answer presents a complete solution.So A, E period
upvoted 1 times
...
basak
4 years, 8 months ago
To create virtual network gateway at first you need gateway subnet. However, in existing environment no option to crate any subnet. hence, modify address space (prior you need to delete existing subnet since you can't modify subnet). So A,E are answers.
upvoted 1 times
...
umangsingh123
4 years, 8 months ago
Answer is A and E. First modify the address space , add a new Subnet range then deleted the existing subnet . If VMs are there then assign those to new subnet
upvoted 1 times
...
Arulkumar_Subramaniam
4 years, 8 months ago
I did this in the lab Set up a Vnet with the address space 10.1.1.0/24 Set up a Subnet with the address space 10.1.1.0/24 Created a VM which connects to the subnet and the VM was running Now I changed the Address space of the Vnet1 to 10.1.0.0/16 This updated the Vnet1 to 10.1.0.0/16 and the subnet still had 10.1.1.0/24 Next I created a Gatewaysubnet with 10.1.0.0/28 I have now prepared the environment to set up the Virtual Network Gateway. So the answer is A & C
upvoted 2 times
...
umangsingh123
4 years, 8 months ago
A and C are correct
upvoted 1 times
...
colinquek
4 years, 8 months ago
No so clear on the ques, but i go by elimination, let me explain. Feel free to correct me. A. Modify the address space used by VNET1. - possible B. Modify the address space used by Subnet1. - not possible C. Create a subnet named GatewaySubnet on VNET1. - possible D. Create a local network gateway. - no on-prem machines mentioned, so no point E. Delete Subnet1. - not possible So i hv to choose A, C.
upvoted 1 times
...
ipvaid
4 years, 8 months ago
Those who are saying A & C, what happened to the part "Each correct answer presents a complete solution." How can "C" represent a complete solution as there is no space? Something is missing in this question!
upvoted 2 times
...
macco455
4 years, 9 months ago
Test in portal. Can update VNET1 address without removing subnet1 from it. SO change VNET 1 to /16 then create gateway subnet is the correct answer. A&C.
upvoted 2 times
macco455
4 years, 9 months ago
in same token, you CANNOT delete subnet1 with a resource still in it which is why E is NOT correct. B is not possible and D is not needed yet.
upvoted 1 times
...
...
Veekee
4 years, 9 months ago
VM1 is in subnet 1 so we cant delete it, hence A & C are right.
upvoted 2 times
...
ofa_75
4 years, 9 months ago
AE you cannot subnet1 is empty. If you can delete it, you can change it. The reason why you cannot change is be because the adress space is already too short, try to shorten it, it is not possible. AE
upvoted 1 times
dips31089
4 years, 9 months ago
It is possible to divide the subnet further. Eg - 10.1.1.0/26; 10.1.1.64/26 or even further. A for sure is an option. B and E are both similar as they both need removing the VM from the subnet to proceed. C requires either A, B or E and is not a complete solution. D is not applicable.
upvoted 1 times
...
...
smsulai
4 years, 10 months ago
Tried to delete Subnet even the VM is stopped but could not which leave Option E out of thinking. After reviewed all below explanation and my lab test..will go with A & C
upvoted 2 times
BiggusJiggus
4 years, 10 months ago
Agree 100% - also tried in lab Answer: A & C
upvoted 1 times
...
...
gboyega
4 years, 10 months ago
A and C Correct Answer
upvoted 6 times
Gianlucag77
4 years, 10 months ago
C is not possible. Subnet1 take up all available space. each must be done individually.
upvoted 2 times
gboyega
4 years, 10 months ago
oh well, 1. That is why you have to modify the VNET address space 2. You cannot delete a subnet because a VM is already attached 3. When you increase the size of the address space to let say a /16. 4. You will have the required space to give your gatewaysubnet its address 5. Recommended CIDR for a gatewaysubnet is /27 or /28 Hope this helps clarify why A and C are correct
upvoted 3 times
...
...
ExamWynner
4 years, 10 months ago
Agreed, A and C. "VM1 connects to Subnet1" which makes B and E out. The only thing I am puzzling is "Each correct answer presents a COMPLETE solution"
upvoted 1 times
...
praveen97
4 years, 10 months ago
Agree with gboyega
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...