0
0
Azurecloud~10 mins

Azure Container Instances (ACI) for simple runs - 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 container group with Azure CLI.

Azure
az container create --resource-group myResourceGroup --name mycontainer --image [1] --cpu 1 --memory 1.5
Drag options to blanks, or click blank then click option'
Amysql
Bubuntu
Cnginx
Dredis
Attempts:
3 left
💡 Hint
Common Mistakes
Using database images like mysql or redis for simple web container runs.
2fill in blank
medium

Complete the code to specify the container's restart policy as 'Never'.

Azure
az container create --resource-group myResourceGroup --name mycontainer --image nginx --restart-policy [1]
Drag options to blanks, or click blank then click option'
ANever
BAlways
COnFailure
DSometimes
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Always' which restarts the container indefinitely.
3fill in blank
hard

Fix the error in the command to expose port 80 on the container.

Azure
az container create --resource-group myResourceGroup --name mycontainer --image nginx --ports [1]
Drag options to blanks, or click blank then click option'
A8080
B22
C443
D80
Attempts:
3 left
💡 Hint
Common Mistakes
Exposing SSH port 22 or HTTPS port 443 when not needed.
4fill in blank
hard

Fill both blanks to set environment variables for the container.

Azure
az container create --resource-group myResourceGroup --name mycontainer --image nginx --environment-variables [1]=[2]
Drag options to blanks, or click blank then click option'
AENVIRONMENT
Bproduction
CDEBUG
Dtrue
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'DEBUG=true' when production environment is intended.
5fill in blank
hard

Fill all three blanks to create a container group with a volume mount.

Azure
az container create --resource-group myResourceGroup --name mycontainer --image nginx --azure-file-volume-share-name [1] --azure-file-volume-account-name [2] --azure-file-volume-account-key [3] --azure-file-volume-mount-path /data
Drag options to blanks, or click blank then click option'
Amyshare
Bmyaccount
Cmykey123
Ddefault
Attempts:
3 left
💡 Hint
Common Mistakes
Using placeholder values like 'default' instead of actual names and keys.