Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using the resource group name instead of the profile name for --name.
Confusing location with profile name.
✗ Incorrect
The --name parameter specifies the name of the CDN profile to create.
2fill in blank
mediumComplete 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using the origin URL as the endpoint name.
Confusing profile name with endpoint name.
✗ Incorrect
The --name parameter specifies the name of the CDN endpoint to create.
3fill in blank
hardFix 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using resource group or profile name instead of origin hostname.
Leaving the originHostHeader empty.
✗ Incorrect
The hostName should be set to the new origin hostname, such as 'neworigin.example.com'.
4fill in blank
hardFill 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using endpoint name instead of profile name.
Using location instead of resource group.
✗ Incorrect
The --resource-group specifies the resource group, and --profile-name specifies the CDN profile to filter endpoints.
5fill in blank
hardFill 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up profile and resource group names.
Omitting the --yes flag to confirm deletion.
✗ Incorrect
The --name is the endpoint name, --profile-name is the CDN profile, and --resource-group is the resource group containing them.