az-104 Practice Question 896
Exam: az-104
Domain: Manage virtual machines and containers
Topic: Create and manage containers
Difficulty: medium
You have an Azure Kubernetes Service (AKS) cluster named AKS1.
You need to configure cluster autoscaler for AKS1.
Which two tools should you use? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
Answer Options
A
the kubectl command
B
the az aks command
C
the Set-AzVm cmdlet
D
the Azure portal
E
the Set-AzAks cmdlet
Correct Answer
A: the kubectl command
B: the az aks command
Explanation
A: The following example uses the kubectl autoscale command to autoscale the number of pods in the azure-vote-front deployment. If average CPU utilization across all pods exceeds 50% of their requested usage, the autoscaler increases the pods up to a maximum of 10 instances. A minimum of 3 instances is then defined for the deployment: kubectl autoscale deployment azure-vote-front --cpu-percent=50 --min=3 --max=10
B: Use the az aks update command to enable and configure the cluster autoscaler on the node pool for the existing cluster.