0
0
Azurecloud~10 mins

Azure DNS basics - 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 DNS zone in Azure CLI.

Azure
az network dns zone create --resource-group myResourceGroup --name [1]
Drag options to blanks, or click blank then click option'
AmyResourceGroup
Bexample.com
CdnsZone
DzoneName
Attempts:
3 left
💡 Hint
Common Mistakes
Using the resource group name instead of the DNS zone name.
Using a generic label instead of a domain name.
2fill in blank
medium

Complete the code to add an A record to the DNS zone using Azure CLI.

Azure
az network dns record-set a add-record --resource-group myResourceGroup --zone-name example.com --record-set-name www --ipv4-address [1]
Drag options to blanks, or click blank then click option'
AmyResourceGroup
Bwww
Cexample.com
D192.168.1.1
Attempts:
3 left
💡 Hint
Common Mistakes
Using the resource group or zone name instead of an IP address.
Using a domain name instead of an IP address.
3fill in blank
hard

Fix the error in the Azure CLI command to delete a DNS zone.

Azure
az network dns zone [1] --resource-group myResourceGroup --name example.com
Drag options to blanks, or click blank then click option'
Adelete
Bremove
Cdestroy
Ddrop
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'remove' or 'destroy' instead of 'delete'.
Using 'drop' which is not a valid Azure CLI command.
4fill in blank
hard

Fill both blanks to create a CNAME record pointing www to contoso.com.

Azure
az network dns record-set cname create --resource-group myResourceGroup --zone-name example.com --record-set-name [1] && az network dns record-set cname set-record --resource-group myResourceGroup --zone-name example.com --record-set-name www --cname [2]
Drag options to blanks, or click blank then click option'
Awww
Bcontoso.com
Cexample.com
DmyResourceGroup
Attempts:
3 left
💡 Hint
Common Mistakes
Using the zone name or resource group name instead of 'www' for the record set name.
Using the zone name instead of the target domain for the CNAME.
5fill in blank
hard

Fill all three blanks to list all DNS zones in a resource group and filter by name containing 'prod'.

Azure
az network dns zone list --resource-group [1] --query "[?contains(name, '[2]')]" --output [3]
Drag options to blanks, or click blank then click option'
AmyResourceGroup
Bprod
Ctable
Dexample.com
Attempts:
3 left
💡 Hint
Common Mistakes
Using the zone name instead of the resource group name.
Using an incorrect output format like 'jsonc' or 'yaml'.