0
0
Azurecloud~10 mins

Blob containers and access levels in Azure - 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 blob container with private access level.

Azure
az storage container create --name mycontainer --account-name mystorageaccount --public-access [1]
Drag options to blanks, or click blank then click option'
Aprivate
Bcontainer
Cblob
Dpublic
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'blob' or 'container' instead of 'private' makes the container publicly accessible.
Using 'public' is not a valid access level.
2fill in blank
medium

Complete the code to set the container's access level to allow public read access for blobs only.

Azure
az storage container set-permission --name mycontainer --account-name mystorageaccount --public-access [1]
Drag options to blanks, or click blank then click option'
Anone
Bprivate
Ccontainer
Dblob
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'container' grants public read access to both blobs and container metadata.
Using 'private' disables public access.
3fill in blank
hard

Fix the error in the command to create a container with public read access to blobs and container metadata.

Azure
az storage container create --name mycontainer --account-name mystorageaccount --public-access [1]
Drag options to blanks, or click blank then click option'
Ablob
Bnone
Ccontainer
Dprivate
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'blob' only allows public read access to blobs, not container metadata.
Using 'private' disables public access.
4fill in blank
hard

Fill both blanks to create a container with public read access to blobs and then check its access level.

Azure
az storage container create --name mycontainer --account-name mystorageaccount --public-access [1]
az storage container show --name mycontainer --account-name mystorageaccount --query [2]
Drag options to blanks, or click blank then click option'
Ablob
Bcontainer
CpublicAccess
DaccessLevel
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'container' instead of 'blob' changes the access level.
Querying 'accessLevel' instead of 'publicAccess' returns no result.
5fill in blank
hard

Fill all three blanks to update a container's access level to private, verify it, and then delete the container.

Azure
az storage container set-permission --name mycontainer --account-name mystorageaccount --public-access [1]
az storage container show --name mycontainer --account-name mystorageaccount --query [2]
az storage container delete --name [3] --account-name mystorageaccount
Drag options to blanks, or click blank then click option'
Aprivate
BpublicAccess
Cmycontainer
DcontainerName
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong container name in delete command.
Using incorrect query parameter for access level.
Setting access level to 'blob' or 'container' instead of 'private'.