0
0
Azurecloud~10 mins

Cold start and premium plan 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 select the Azure Function plan that avoids cold starts.

Azure
az functionapp plan create --name myPlan --resource-group myResourceGroup --location eastus --sku [1]
Drag options to blanks, or click blank then click option'
APremium
BStandard
CBasic
DConsumption
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing Consumption plan which can cause cold starts.
Confusing Basic or Standard plans with Premium.
2fill in blank
medium

Complete the code to enable pre-warmed instances in the Premium plan.

Azure
az functionapp plan update --name myPlan --resource-group myResourceGroup --min-instances [1]
Drag options to blanks, or click blank then click option'
A10
B0
C5
D1
Attempts:
3 left
💡 Hint
Common Mistakes
Setting zero min-instances which disables pre-warming.
Choosing too many min-instances unnecessarily.
3fill in blank
hard

Fix the error in the command to create a Premium plan with 2 pre-warmed instances.

Azure
az functionapp plan create --name myPlan --resource-group myResourceGroup --location eastus --sku [1] --min-instances [2]
Drag options to blanks, or click blank then click option'
AConsumption
BPremium
CStandard
D2
Attempts:
3 left
💡 Hint
Common Mistakes
Using Consumption SKU which does not support pre-warming.
Omitting min-instances or setting it incorrectly.
4fill in blank
hard

Fill both blanks to configure an Azure Function app to use the Premium plan and enable Always On.

Azure
az functionapp create --name myFunctionApp --resource-group myResourceGroup --plan [1] --runtime python --functions-version 4 && az functionapp config set --name myFunctionApp --resource-group myResourceGroup --always-on [2]
Drag options to blanks, or click blank then click option'
AmyPremiumPlan
Btrue
Cfalse
DmyConsumptionPlan
Attempts:
3 left
💡 Hint
Common Mistakes
Using Consumption plan name instead of Premium.
Setting Always On to false which allows cold starts.
5fill in blank
hard

Fill all three blanks to create a Premium plan, set pre-warmed instances, and deploy a function app using it.

Azure
az functionapp plan create --name [1] --resource-group myResourceGroup --location eastus --sku [2] --min-instances 3 && az functionapp create --name myFunctionApp --resource-group myResourceGroup --plan [3] --runtime node --functions-version 4
Drag options to blanks, or click blank then click option'
ApremiumPlanX
BPremium
DConsumption
Attempts:
3 left
💡 Hint
Common Mistakes
Using Consumption SKU which does not support pre-warming.
Mismatching plan names between creation and deployment.