Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam AZ-104 All Questions

View all questions & answers for the AZ-104 exam

Exam AZ-104 topic 4 question 41 discussion

Actual exam question from Microsoft's AZ-104
Question #: 41
Topic #: 4
[All AZ-104 Questions]

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.

  • A. the kubectl command
  • B. the az aks command
  • C. the Set-AzVm cmdlet
  • D. the Azure portal
  • E. the Set-AzAks cmdlet
Show Suggested Answer Hide Answer
Suggested Answer: BD 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
mlantonis
Highly Voted 3 years, 5 months ago
Correct Answer: B and D We need to configure autoscaler for the AKS cluster. We do not want to scale Kubernetes pods, so kubectl command is not needed. A: kubectl command is used for configuring Kubernetes and not AKS cluster. B: The az aks command is used for the AKS cluster configuration. C: Set-AzVm cmdlet is used for VMs. D: Azure portal, under node pools, press scale, then choose auto scale. E: Set-AzAks, creates or updates an AKS cluster, the correct cmdlet is Set-AzAksCluster. AKS clusters can scale in one of two ways: - The cluster autoscaler watches for pods that can't be scheduled on nodes because of resource constraints. The cluster then automatically increases the number of nodes. - The horizontal pod autoscaler uses the Metrics Server in a Kubernetes cluster to monitor the resource demand of pods. If an application needs more resources, the number of pods is automatically increased to meet the demand. Reference: https://docs.microsoft.com/en-us/azure/aks/cluster-autoscaler
upvoted 231 times
Mozbius_
2 years, 8 months ago
Thank you for the very clear explanations!!!
upvoted 4 times
...
go4adil
8 months, 3 weeks ago
I also think correct answer should be B & D because requirement is about cluster autoscaling (nodes) and not pod autoscaling.
upvoted 1 times
...
klexams
1 year, 11 months ago
I agreed already but then you pointed out the two ways: - The cluster autoscaler - The horizontal pod autoscaler The 2nd uses kubectl so the answer is A and B.
upvoted 3 times
...
...
fedztedz
Highly Voted 3 years, 10 months ago
The Answer is not correct. The right is B & D. B is for az aks command , check https://docs.microsoft.com/en-us/azure/aks/cluster-autoscaler D is for Azure portal. Under node pools, press scale, then choose auto scale. The Answer A is not correct as it is confusing with Horizontal pod autoscale which is not asked here. The pod autoscale use kubectl.
upvoted 193 times
Hibs2016
3 years, 10 months ago
Do you have any links for doing the scaling in the portal?
upvoted 4 times
...
marcellov
3 years, 5 months ago
To corroborate with your answer, kubectl autoscale "creates an autoscaler that automatically chooses and sets the number of pods that run in a kubernetes cluster": https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#autoscale According to Microsoft, this is a Horizontal pod autoscale, not a Cluster autoscale: https://docs.microsoft.com/en-us/azure/aks/cluster-autoscaler#about-the-cluster-autoscaler
upvoted 5 times
jantoniocesargatica
3 years, 5 months ago
But we are not talking about the pods, we are talinkg about the nodes, so is B and D. Think that this service is managed by Azure, and they will not allow to do this by yourself, and this is the reason why you must choose the portal.
upvoted 5 times
...
...
jantoniocesargatica
3 years, 5 months ago
There are 2 things to understand: a) Are we talking about pods? b) Are we talking about nodes? The question is regarding how to autoscale the AKS, so it means that we are talking about the nodes. As we are talking how to scale the nodes: a) az aks is neccesary b) Then you scale the nodes in the portal. The correct answers are B & D. If we want to scale the pods, the options would be kubelet, but it is not the case. We are not talking about the containers, we are talking about the infrastructure behind this.
upvoted 90 times
juniorccs
2 years, 9 months ago
thanks for the clarification
upvoted 5 times
...
mythjava
1 year, 7 months ago
Where is the option about D?
upvoted 1 times
...
...
diligent176
3 years, 9 months ago
The article does a good job explaining the difference of "cluster autoscaler" and "horizontal pod autoscaler"... https://docs.microsoft.com/en-us/azure/aks/cluster-autoscaler FYI also - the PowerShell command that can do this same task is "Set-AzAksCluster" (not Set-AzAks). B and D it is!
upvoted 16 times
...
...
CrypticToast
Most Recent 2 weeks, 4 days ago
To configure the cluster autoscaler for an Azure Kubernetes Service (AKS) cluster, you can use the following tools: 1. **A. the kubectl command** - You can use `kubectl` to apply configurations related to the autoscaler, such as deploying the autoscaler deployment in your AKS cluster. 2. **B. the az aks command** - The Azure CLI (`az aks`) provides commands to enable and configure the cluster autoscaler directly on your AKS cluster. ### Therefore, the correct answers are: - **A. the kubectl command** - **B. the az aks command**
upvoted 1 times
...
SeMo0o0o0o
1 month, 1 week ago
Selected Answer: BD
B & D are correct
upvoted 1 times
...
MSExpertGER
4 months ago
Selected Answer: BD
B + D are correct, you can use either one. https://learn.microsoft.com/en-us/azure/aks/cluster-autoscaler?tabs=azure-cli the target is to scale up/down the number of nodes. It has nothing to do with Kubernetes Pod Autoscalers (could be configured with A). You won't touch the ScaleSets themselve (C) and I'm not sure if Set-AzAks even exists (E)
upvoted 2 times
...
Amir1909
7 months, 3 weeks ago
A and B is correct
upvoted 1 times
...
SkyZeroZx
9 months, 1 week ago
Selected Answer: BD
The Answer is not correct. The right is B & D. B is for az aks command , check https://docs.microsoft.com/en-us/azure/aks/cluster-autoscaler D is for Azure portal. Under node pools, press scale, then choose auto scale.
upvoted 2 times
...
Rednevi
1 year ago
Selected Answer: BD
A. the kubectl command: kubectl is a command-line tool used for interacting with Kubernetes clusters, including managing deployments and pods within a cluster. However, it is not used to configure cluster-level settings like autoscaling. C. the Set-AzVm cmdlet: Set-AzVm is a PowerShell cmdlet used to manage Azure virtual machines (VMs), not AKS clusters or their autoscaling configurations. E. the Set-AzAks cmdlet: While the Set-AzAks cmdlet is used for managing AKS clusters in PowerShell, it is not specifically used for configuring cluster autoscaler. Cluster autoscaler configuration typically involves different commands or settings, and it's not part of the core Set-AzAks functionality. To configure cluster autoscaler for AKS, you primarily use the Azure CLI (az) or the Azure portal, as these tools are specifically designed for managing AKS cluster-level settings and configurations.
upvoted 6 times
...
raj_raj22
1 year, 1 month ago
A and B are the right answer for this . https://learn.microsoft.com/en-us/azure/aks/cluster-autoscaler
upvoted 2 times
...
QaisFM
1 year, 1 month ago
Correct : AB The cluster autoscaler is a Kubernetes component. Although the AKS cluster uses a virtual machine scale set for the nodes, don't manually enable or edit settings for scale set autoscale in the Azure portal or using the Azure CLI. Let the Kubernetes cluster autoscaler manage the required scale settings. https://learn.microsoft.com/en-us/azure/aks/cluster-autoscaler
upvoted 1 times
nahfam123
11 months ago
you wrong, A and B are not correct tools to configure cluster autoscaler for AKS1. The kubectl command is a tool that allows you to run commands against Kubernetes clusters. You can use the kubectl command to deploy applications, inspect and manage cluster resources, or view logs. However, you cannot use the kubectl command to enable or disable cluster autoscaler for an AKS cluster, as this is a feature that is managed by Azure, not by Kubernetes. You need to use the Azure CLI or the Azure portal to configure cluster autoscaler for an AKS cluster . The az aks command is a correct tool to configure cluster autoscaler for AKS1, as explained in the previous answer. However, you need to use another tool in addition to the az aks command, such as the Azure portal. Therefore, A and B are not a complete solution.
upvoted 1 times
...
...
MGJG
1 year, 2 months ago
Selected Answer: BD
.Open AI: To configure cluster autoscaler for an Azure Kubernetes Service (AKS) cluster (AKS1), you can use the following tools: B. the az aks command: You can use the Azure Command-Line Interface (CLI) command az aks update to configure the cluster autoscaler for an AKS cluster. This command allows you to enable or disable the cluster autoscaler and set parameters like minimum and maximum node counts. D. the Azure portal: You can also configure the cluster autoscaler for AKS using the Azure portal. Navigate to your AKS cluster in the Azure portal, go to the "Node pools" section, and then configure the autoscaler settings for the specific node pool. The other options (A, C, and E) are not the primary tools used to configure cluster autoscaler for AKS.
upvoted 2 times
...
Teroristo
1 year, 2 months ago
Answer:AB 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. Aminimum 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 nodepool for the existing cluster.
upvoted 2 times
...
NYTK
1 year, 2 months ago
Came in exams 21/7/2023
upvoted 3 times
...
Josete1106
1 year, 2 months ago
BD is correct!
upvoted 2 times
...
raj24051961
1 year, 3 months ago
Answer: A and B Autoscale pods using kubectl autoscale example: kubectl autoscale deployment azure-vote-front --cpu-percent=50 --min=3 --max=10 https://learn.microsoft.com/en-us/azure/aks/tutorial-kubernetes-scale?tabs=azure-cli
upvoted 2 times
...
Tomix
1 year, 3 months ago
A. the kubectl command B. the az aks command Explanation: The kubectl command is a command-line tool used to interact with Kubernetes clusters. It allows you to manage and configure various aspects of your AKS cluster, including enabling the cluster autoscaler. You can use kubectl to apply the necessary configuration changes to enable the autoscaler. The az aks command is a command-line tool provided by the Azure CLI (Command-Line Interface). It specifically deals with managing Azure Kubernetes Service (AKS) resources. Using the az aks command, you can enable the cluster autoscaler by modifying the AKS cluster's properties.
upvoted 2 times
...
JunetGoyal
1 year, 5 months ago
Exact same Q came in my exam on 30 April2023.I choose A, B. I want not sure between A,D. haahaahh
upvoted 7 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...