0
0
Azurecloud~10 mins

Container Apps for microservices 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 container app environment in Azure.

Azure
az containerapp env create --name myEnv --resource-group myResourceGroup --location [1]
Drag options to blanks, or click blank then click option'
AmyApp
BmyResourceGroup
Ccontainerapp
Deastus
Attempts:
3 left
💡 Hint
Common Mistakes
Using the resource group name instead of a location.
Using the container app name instead of a location.
2fill in blank
medium

Complete the code to deploy a container app with a specified image.

Azure
az containerapp create --name myApp --resource-group myResourceGroup --environment myEnv --image [1]
Drag options to blanks, or click blank then click option'
AmyEnv
BmyResourceGroup
Cmcr.microsoft.com/azuredocs/containerapps-helloworld:latest
DmyApp
Attempts:
3 left
💡 Hint
Common Mistakes
Using the environment name instead of the image URL.
Using the resource group name instead of the image URL.
3fill in blank
hard

Fix the error in the command to scale the container app to 3 replicas.

Azure
az containerapp scale --name myApp --resource-group myResourceGroup --min-replicas [1]
Drag options to blanks, or click blank then click option'
A3
Bscale
Creplicas
DmyEnv
Attempts:
3 left
💡 Hint
Common Mistakes
Using the environment name instead of a number.
Using a command keyword instead of a number.
4fill in blank
hard

Fill both blanks to configure environment variables for the container app.

Azure
az containerapp update --name myApp --resource-group myResourceGroup --set configuration.[1][0].name=ENV_VAR configuration.[2][0].value=production
Drag options to blanks, or click blank then click option'
Asecrets
Benv
CenvironmentVariables
Dvariables
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'secrets' instead of 'environmentVariables'.
Using 'env' or 'variables' which are not valid properties here.
5fill in blank
hard

Fill all three blanks to create a container app with ingress enabled on port 80 and replicas set to 2.

Azure
az containerapp create --name myApp --resource-group myResourceGroup --environment myEnv --image myImage --ingress [1] --target-port [2] --min-replicas [3]
Drag options to blanks, or click blank then click option'
Aenabled
B80
C2
Ddisabled
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'disabled' for ingress when enabling is needed.
Setting the wrong port number.
Setting replicas to 1 instead of 2.