0
0
Azurecloud~10 mins

Why Azure for cloud computing - Test Your Understanding

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

Complete the code to create a virtual machine in Azure using the Azure CLI.

Azure
az vm create --resource-group myResourceGroup --name myVM --image UbuntuLTS --admin-username azureuser --generate-ssh-keys [1]
Drag options to blanks, or click blank then click option'
A--no-wait
B--location eastus
C--os-disk-size-gb 30
D--size Standard_B1s
Attempts:
3 left
💡 Hint
Common Mistakes
Using --size instead of --location
Omitting the location option
Using --no-wait which only controls command execution behavior
2fill in blank
medium

Complete the code to create an Azure Storage account with a unique name.

Azure
az storage account create --name [1] --resource-group myResourceGroup --location eastus --sku Standard_LRS
Drag options to blanks, or click blank then click option'
Amystorage123
Bstorageaccount!
Cmystorageaccount
DMyStorageAccount
Attempts:
3 left
💡 Hint
Common Mistakes
Using uppercase letters in the name
Including special characters like '!'
Using a name that is too generic and likely taken
3fill in blank
hard

Fix the error in the Azure CLI command to list all resource groups.

Azure
az group [1]
Drag options to blanks, or click blank then click option'
Alist-all
Bget
Cshow
Dlist
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'show' which requires a specific resource name
Using 'get' which is not a valid Azure CLI group command
Using 'list-all' which is not a valid command
4fill in blank
hard

Fill both blanks to create a network security group and add a rule to allow SSH traffic.

Azure
az network nsg create --resource-group myResourceGroup --name myNSG
az network nsg rule create --resource-group myResourceGroup --nsg-name myNSG --name AllowSSH --protocol [1] --priority 1000 --destination-port-ranges [2] --access Allow --direction Inbound
Drag options to blanks, or click blank then click option'
ATcp
BUdp
C22
D80
Attempts:
3 left
💡 Hint
Common Mistakes
Using UDP instead of TCP
Allowing port 80 which is for HTTP
Confusing protocol and port number
5fill in blank
hard

Fill all three blanks to create an Azure App Service plan and a web app with Linux runtime.

Azure
az appservice plan create --name [1] --resource-group myResourceGroup --sku [2] --is-linux
az webapp create --resource-group myResourceGroup --plan [3] --name myWebApp --runtime "PYTHON|3.8"
Drag options to blanks, or click blank then click option'
AmyAppServicePlan
BB1
DS1
Attempts:
3 left
💡 Hint
Common Mistakes
Using different names for the plan in the two commands
Choosing an invalid SKU
Omitting the --is-linux flag for Linux runtime