0
0
Azurecloud~10 mins

Why Azure Storage matters - 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 storage account in Azure using the Azure CLI.

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'
Amystorageaccount123
Beastus
CMyResourceGroup
DStandard_LRS
Attempts:
3 left
💡 Hint
Common Mistakes
Using the location or resource group name as the storage account name.
Using uppercase letters in the storage account name.
2fill in blank
medium

Complete the code to upload a file to an Azure Blob Storage container using Azure CLI.

Azure
az storage blob upload --account-name mystorageaccount123 --container-name mycontainer --name myfile.txt --file [1]
Drag options to blanks, or click blank then click option'
Amystorageaccount123
Bmyfile.txt
Cmycontainer
Dblob
Attempts:
3 left
💡 Hint
Common Mistakes
Using the container name instead of the file path.
Using the storage account name instead of the file path.
3fill in blank
hard

Fix the error in the Azure CLI command to list blobs in a container.

Azure
az storage blob list --account-name mystorageaccount123 --container-name [1] --output table
Drag options to blanks, or click blank then click option'
Amyfile.txt
Bmystorageaccount123
Cmycontainer
Dblob
Attempts:
3 left
💡 Hint
Common Mistakes
Using a file name instead of the container name.
Using the storage account name instead of the container name.
4fill in blank
hard

Fill both blanks to create a new Azure Blob container with public access disabled.

Azure
az storage container create --name [1] --account-name mystorageaccount123 --public-access [2]
Drag options to blanks, or click blank then click option'
Amycontainer
Bblob
Coff
Dprivate
Attempts:
3 left
💡 Hint
Common Mistakes
Setting public access to 'blob' which allows public read access.
Using an invalid container name.
5fill in blank
hard

Fill all three blanks to generate a SAS token for a blob with read permission valid for 1 hour.

Azure
az storage blob generate-sas --account-name mystorageaccount123 --container-name mycontainer --name myfile.txt --permissions [1] --expiry [2] --https-only [3]
Drag options to blanks, or click blank then click option'
Ar
B2024-12-31T23:59Z
Ctrue
Dw
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'w' permission which allows write access instead of read.
Setting expiry to a past date.
Setting https-only to 'false' or omitting it.