0
0
Azurecloud~10 mins

Azure CDN profiles and endpoints - 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 new Azure CDN profile using Azure CLI.

Azure
az cdn profile create --name [1] --resource-group MyResourceGroup --location eastus --sku Standard_Verizon
Drag options to blanks, or click blank then click option'
AMyCdnProfile
BMyResourceGroup
Ceastus
DStandard_Verizon
Attempts:
3 left
💡 Hint
Common Mistakes
Using the resource group name instead of the profile name for --name.
Confusing location with profile name.
2fill in blank
medium

Complete the code to create a CDN endpoint under an existing profile.

Azure
az cdn endpoint create --name [1] --profile-name MyCdnProfile --resource-group MyResourceGroup --origin www.example.com
Drag options to blanks, or click blank then click option'
AMyCdnProfile
BMyResourceGroup
Cwww.example.com
DMyCdnEndpoint
Attempts:
3 left
💡 Hint
Common Mistakes
Using the origin URL as the endpoint name.
Confusing profile name with endpoint name.
3fill in blank
hard

Fix the error in the command to update the origin hostname of a CDN endpoint.

Azure
az cdn endpoint update --name MyCdnEndpoint --profile-name MyCdnProfile --resource-group MyResourceGroup --set properties.origins[0].hostName=[1]
Drag options to blanks, or click blank then click option'
Aneworigin.example.com
BMyCdnEndpoint
CMyResourceGroup
DMyCdnProfile
Attempts:
3 left
💡 Hint
Common Mistakes
Using resource group or profile name instead of origin hostname.
Leaving the originHostHeader empty.
4fill in blank
hard

Fill both blanks to list all CDN endpoints in a resource group and filter by profile name.

Azure
az cdn endpoint list --resource-group [1] --profile-name [2]
Drag options to blanks, or click blank then click option'
AMyResourceGroup
BMyCdnProfile
CMyCdnEndpoint
Deastus
Attempts:
3 left
💡 Hint
Common Mistakes
Using endpoint name instead of profile name.
Using location instead of resource group.
5fill in blank
hard

Fill all three blanks to delete a CDN endpoint safely.

Azure
az cdn endpoint delete --name [1] --profile-name [2] --resource-group [3] --yes
Drag options to blanks, or click blank then click option'
AMyCdnEndpoint
BMyCdnProfile
CMyResourceGroup
DStandard_Verizon
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up profile and resource group names.
Omitting the --yes flag to confirm deletion.