exam questions

Exam AZ-303 All Questions

View all questions & answers for the AZ-303 exam

Exam AZ-303 topic 5 question 3 discussion

Actual exam question from Microsoft's AZ-303
Question #: 3
Topic #: 5
[All AZ-303 Questions]

You have two subscriptions named Subscription1 and Subscription2. Each subscription is associated to a different Azure AD tenant.
Subscription1 contains a virtual network named VNet1. VNet1 contains an Azure virtual machine named VM1 and has an IP address space of 10.0.0.0/16.
Subscription2 contains a virtual network named VNet2. Vnet2 contains an Azure virtual machine named VM2 and has an IP address space of 10.10.0.0/24.
You need to connect VNet1 to VNet2.
What should you do first?

  • A. Modify the IP address space of VNet2.
  • B. Move VM1 to Subscription2.
  • C. Provision virtual network gateways.
  • D. Move VNet1 to Subscription2.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️
We require a virtual network gateway for VNet-to-VNet connectivity.
Incorrect Answers:
A: There is no need to modify the address space. If you update the address space for one VNet, the other VNet automatically knows to route to the updated address space.
Reference:
https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-howto-vnet-vnet-cli

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
xaccan
Highly Voted 4 years, 5 months ago
the answer is correct https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-howto-vnet-vnet-resource-manager-portal
upvoted 47 times
stoogle
4 years, 2 months ago
This is incorrect. In your referenced page, scroll to the bottom: Can I have overlapping address spaces for VNet-to-VNet configurations? No. You can't have overlapping IP address ranges.
upvoted 2 times
InsJatilYadav
4 years, 1 month ago
The IPs are not overlapping in the question. 10.0.0.0/16 = 10.0.0.1 -> 10.0.255.254 10.10.0.0/24 = 10.10.0.1 -> 10.10.0.254
upvoted 55 times
RGP4d33
3 years, 9 months ago
Totally true!! I also fell. Thanks!!
upvoted 1 times
...
...
...
...
syu31svc
Highly Voted 3 years, 9 months ago
Incorrect Answers: Modify the IP address space of VNet2 - IP addresses are not overlapping. So, modification to IP range is not required. Move VM1 to Subscription2 - The requirement is to connect VNets. Moving a VM to a different VNet does not provide connectivity between VNets. Move VNet1 to Subscription2 - VNets are logical isolation of cloud resources. Moving VNet1 to the Subscription2 does not provide connectivity between VNets. Also, Subscription2 is in a different Azure AD tenant. Answer is C
upvoted 11 times
suriyaswamy
3 years, 5 months ago
10.0.0.0/16 = 10.0.0.1 -> 10.0.255.254 10.10.0.0/24 = 10.10.0.1 -> 10.10.0.254 Above are just for reference to this given explanation for my understanding in future
upvoted 1 times
...
...
Darksody
Most Recent 3 years, 2 months ago
Isn't it easier to move the vnets to the same subscription and then create a peering? D could work as well in this case.
upvoted 1 times
...
KemalM
3 years, 3 months ago
Selected Answer: C
virtual network gateways
upvoted 1 times
...
AberdeenAngus
3 years, 3 months ago
The GatewaySubnet is recommended to be /27 so even though the address space for vnet2 is only /24 it's big enough to create GatewaySubnet, we don't need to change the address space. https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-about-vpn-gateway-settings#gwsub It's allowed to have VPN gateways connecting subscriptions with different tenants https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-howto-vnet-vnet-resource-manager-portal So C.
upvoted 1 times
...
iamaguest
3 years, 4 months ago
correct answer should be A. IP address is not overlapping, peering is possible even in different tenant/subscription (check peering requirement and constraints: https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-manage-peering#requirements-and-constraints) vpn gateway needs a different subnet which we don't have on vNet2. So change the IP address space then either peering or vpn gateway.
upvoted 1 times
...
rabindra_barik
3 years, 5 months ago
IPs not overlapping; Correct Ans is: C. Provision virtual network gateways.
upvoted 1 times
...
HarryZ
3 years, 5 months ago
Configure a VNet-to-VNet VPN gateway connection by using the Azure portal https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-howto-vnet-vnet-resource-manager-portal C is correct. you can either use peering to connect two vnet, or use network gateway to connect two vnet. this is the case of the question, answer is C
upvoted 1 times
...
chupacabra
3 years, 7 months ago
The most logical answer is A. They ask what you should do first. Since vnet peering is not an option, you'd need to modify the address space of the 10.10.0.0/24 network if you're to provision VNGs so that you may add the Subnet GW.
upvoted 1 times
azure_novice
3 years, 6 months ago
the IP address range does not overlap... so not necessary to change the IP address. Since we do not know which resources or region does the virtual network belongs to the next most logical answer would be vnet to vnet via VPN gateway
upvoted 2 times
...
...
AAPaul
3 years, 11 months ago
I had this question in the exam that i took on July 14th 2021
upvoted 3 times
...
nfett
3 years, 11 months ago
Answer is correct. vnet to vnet use VPN GW to connect.
upvoted 3 times
...
applesauce85
3 years, 12 months ago
The question tells us the IP address space of the VNETS. It makes no mention of subnets. So we are not required to consider which subnets (gateway or otherwise) are configured. Also, option A is saying you will change the address space, not add a subnet for the gateway, so that does not really make sense. If it said "Create gateway subnets" then I would be more leaning towards it. The given answer is the most logical based on what we are given. You have these address spaces and you need to provision gateways. option c
upvoted 3 times
...
ZetaZeti
4 years ago
A Making a peering is not a problem since there is no overlapping between vnet1 and vnet2. So the question implicitly refers to a vnet-to-vnet. We need to create the gateway subnet. Vnet2 is small with only 255 addresses. But there is only one address occupied by one vm. It is possible to divide vnet2 in two subnets: 10.10.0.0/25 10.10.0.128/25 We can put the vm in the first subnet and reserve the second for the gateway subnet.
upvoted 2 times
keilah123
4 years ago
You need to understand the question before commenting. The two vnets belong to different tenants. Therefore, peering is not available.
upvoted 3 times
norbitek
4 years ago
Virtual network peering is now available for virtual networks that belong to subscriptions in different Azure Active Directory tenants. https://azure.microsoft.com/en-au/updates/cross-aad-vnet-peering/
upvoted 4 times
...
...
...
UnmeshPatil
4 years, 1 month ago
Answer is A. VNet2 has a range of /24, and has VM connected to it which means there's no more room for creating a GatewaySubnet. You need to add another IP range to VNet2 before you can add a VNG.
upvoted 2 times
keilah123
4 years ago
C is correct. The subnet for VNet2 is not specified. It can be /25, /26, /27 so there's room for GatewaySubnet.
upvoted 2 times
...
...
rsaintt
4 years, 1 month ago
The question informs "Different azure tenant" : no overlapping IP address ranges. option C
upvoted 1 times
...
Alasmindas
4 years, 1 month ago
The given answer is correct considering the other 3 options provided, However - VNET peering would have bee the best solution in this type of scenario. Who is having questions on IP overlapping - please consider the fact that the IP range is not overlapping as the subnets are different
upvoted 3 times
...
stoogle
4 years, 2 months ago
The suggested answer is wrong. See: https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-howto-vnet-vnet-cli#can-i-have-overlapping-address-spaces-for-vnet-to-vnet-configurations The correct answer is modifying the address space of the VNet.
upvoted 2 times
hsmapple
4 years, 1 month ago
there is no overlap, check InsJatilYadav's reply above. answer is correct.
upvoted 2 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 ...