0
0
Azurecloud~10 mins

VNet creation and address space in Azure - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to specify the address space for the virtual network.

Azure
az network vnet create --name MyVNet --resource-group MyResourceGroup --address-prefixes [1]
Drag options to blanks, or click blank then click option'
A"255.255.255.0"
B"192.168.1.0/24"
C"172.16.0.0/12"
D"10.0.0.0/16"
Attempts:
3 left
💡 Hint
Common Mistakes
Using a subnet mask instead of CIDR notation.
Choosing an address space too small for the network.
2fill in blank
medium

Complete the code to create a subnet within the VNet with the correct address prefix.

Azure
az network vnet subnet create --resource-group MyResourceGroup --vnet-name MyVNet --name MySubnet --address-prefix [1]
Drag options to blanks, or click blank then click option'
A"10.0.1.0/24"
B"192.168.1.0/24"
C"10.0.0.0/16"
D"172.16.0.0/12"
Attempts:
3 left
💡 Hint
Common Mistakes
Using an address prefix outside the VNet's range.
Using the same prefix as the VNet for the subnet.
3fill in blank
hard

Fix the error in the VNet creation command by choosing the correct parameter for address space.

Azure
az network vnet create --name MyVNet --resource-group MyResourceGroup --[1] "10.0.0.0/16"
Drag options to blanks, or click blank then click option'
Aaddress-prefixes
Baddress-prefix
Caddress-space
Dsubnet-prefix
Attempts:
3 left
💡 Hint
Common Mistakes
Using a singular form that does not exist.
Confusing subnet prefix with VNet address space.
4fill in blank
hard

Fill both blanks to create a VNet with two address spaces.

Azure
az network vnet create --name MyVNet --resource-group MyResourceGroup --address-prefixes [1] [2]
Drag options to blanks, or click blank then click option'
A"10.0.0.0/16"
B"192.168.0.0/16"
C"10.1.0.0/16"
D"172.16.0.0/12"
Attempts:
3 left
💡 Hint
Common Mistakes
Using overlapping address spaces.
Using invalid CIDR notation.
5fill in blank
hard

Fill all three blanks to create a subnet with a specific name and address prefix inside a VNet.

Azure
az network vnet subnet create --resource-group MyResourceGroup --vnet-name [1] --name [2] --address-prefix [3]
Drag options to blanks, or click blank then click option'
AMyVNet
BMySubnet
C"10.0.2.0/24"
DMyResourceGroup
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing resource group name with VNet name.
Using invalid address prefix format.