0
0
Azurecloud~10 mins

Public IP addresses 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 create a static public IP address in Azure.

Azure
az network public-ip create --resource-group myResourceGroup --name myPublicIP --allocation-method [1]
Drag options to blanks, or click blank then click option'
Amanual
Bdynamic
Cautomatic
Dstatic
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'dynamic' will assign an IP that can change.
Using 'manual' or 'automatic' are not valid allocation methods.
2fill in blank
medium

Complete the code to associate a public IP address with a network interface.

Azure
az network nic ip-config update --resource-group myResourceGroup --nic-name myNic --name ipconfig1 --public-ip-address [1]
Drag options to blanks, or click blank then click option'
AmyPublicIP
BmyNSG
CmySubnet
DmyVNet
Attempts:
3 left
💡 Hint
Common Mistakes
Using virtual network or subnet names instead of the public IP name.
Confusing network security group (NSG) with public IP.
3fill in blank
hard

Fix the error in the command to create a public IP with DNS name prefix.

Azure
az network public-ip create --resource-group myResourceGroup --name myPublicIP --allocation-method static --dns-name [1]
Drag options to blanks, or click blank then click option'
AmyPublicIP
Bmydnslabel
CmyResourceGroup
DmyNic
Attempts:
3 left
💡 Hint
Common Mistakes
Using resource group or NIC names as DNS labels.
Leaving the DNS name empty or invalid.
4fill in blank
hard

Fill both blanks to create a public IP with a SKU and IP version.

Azure
az network public-ip create --resource-group myResourceGroup --name myPublicIP --sku [1] --ip-version [2]
Drag options to blanks, or click blank then click option'
AStandard
BBasic
CIPv4
DIPv6
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing SKU and IP version values.
Using lowercase values which may cause errors.
5fill in blank
hard

Fill all three blanks to create a public IP with static allocation, Standard SKU, and IPv6 version.

Azure
az network public-ip create --resource-group myResourceGroup --name myPublicIP --allocation-method [1] --sku [2] --ip-version [3]
Drag options to blanks, or click blank then click option'
Adynamic
Bstatic
CStandard
DIPv6
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'dynamic' instead of 'static' for allocation.
Confusing SKU names or IP versions.