AZ-104 Question 201
Single answerYou have an existing Azure virtual network (VNet) named VNet1 with an address space of 10.0.0.0/16. Currently, VNet1 has one subnet named Subnet1, which uses the 10.0.0.0/24 address prefix. You need to create an additional subnet named Subnet2 with an address prefix of 10.0.1.0/24 for application workloads without restructuring any existing subnets. Which action should you take in the Azure portal?
- A
Add a new address space of 10.0.1.0/24 to VNet1 and then create a separate virtual network for the new subnet.
- B
Create Subnet2 directly under the Subnets blade of VNet1 using the 10.0.1.0/24 address prefix.
- C
Reconfigure Subnet1 to use 10.0.0.0/25 and create Subnet2 with 10.0.0.128/25.
- D
Create a new resource group in the same region and add a new subnet with 10.0.1.0/24 to it.
Show answer and explanation
Correct answer: B
Explanation
When creating additional subnets within an existing Azure virtual network, you simply define a new subnet under the same VNet in the Azure portal with a non-overlapping address prefix. Adding Subnet2 (10.0.1.0/24) directly under VNet1 meets the scenario requirements without modifying any existing configuration.
- A. Incorrect.
Adding a new address space and then creating a separate virtual network is unnecessary. You only need to add a new subnet to the existing VNet1.
- B. Correct.
Defining Subnet2 (10.0.1.0/24) directly on VNet1 under the Subnets blade is the correct way to add another subnet without impacting Subnet1 or the existing address space.
- C. Incorrect.
Splitting Subnet1 into two /25 subnets is not required, and it would require reconfiguring an existing subnet, which the scenario does not call for.
- D. Incorrect.
You do not need a separate resource group or a separate subnet outside VNet1. You can create the new subnet in the existing VNet1.