0
0
Azurecloud~10 mins

Node pools and scaling 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 specify the node count for the node pool.

Azure
az aks nodepool add --resource-group myResourceGroup --cluster-name myAKSCluster --name mynodepool --node-count [1]
Drag options to blanks, or click blank then click option'
A3
B1
C5
D0
Attempts:
3 left
💡 Hint
Common Mistakes
Setting node count to 0 will cause an error because a node pool must have at least one node.
Using a very high number without reason can increase costs unnecessarily.
2fill in blank
medium

Complete the code to enable autoscaling for the node pool.

Azure
az aks nodepool update --resource-group myResourceGroup --cluster-name myAKSCluster --name mynodepool --enable-cluster-autoscaler [1]
Drag options to blanks, or click blank then click option'
A--min-count 3 --max-count 1
B--min-count 0 --max-count 5
C--min-count 2 --max-count 2
D--min-count 1 --max-count 3
Attempts:
3 left
💡 Hint
Common Mistakes
Setting min-count higher than max-count causes errors.
Setting min-count to 0 might be invalid depending on cluster configuration.
3fill in blank
hard

Fix the error in the command to scale the node pool to 4 nodes.

Azure
az aks nodepool scale --resource-group myResourceGroup --cluster-name myAKSCluster --name mynodepool --node-count [1]
Drag options to blanks, or click blank then click option'
A4
B2
C0
D-1
Attempts:
3 left
💡 Hint
Common Mistakes
Using zero or negative numbers causes command failure.
Choosing a number less than current nodes without proper context may cause errors.
4fill in blank
hard

Fill both blanks to create a node pool with spot instances and a max price of -1 (unlimited).

Azure
az aks nodepool add --resource-group myResourceGroup --cluster-name myAKSCluster --name spotpool --priority [1] --spot-max-price [2]
Drag options to blanks, or click blank then click option'
ASpot
BRegular
C-1
D0.5
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Regular' instead of 'Spot' disables spot instances.
Setting max price to 0.5 limits the maximum price you pay.
5fill in blank
hard

Fill all four blanks to update a node pool to enable autoscaling with min 2 nodes and max 6 nodes.

Azure
az aks nodepool update --resource-group myResourceGroup --cluster-name myAKSCluster --name mynodepool --enable-cluster-autoscaler [1] [2] [3] [4]
Drag options to blanks, or click blank then click option'
A--min-count
B2
C--max-count
D6
Attempts:
3 left
💡 Hint
Common Mistakes
Forgetting to include both min and max count flags.
Mixing up the order of flags and values.