exam questions

Exam AZ-104 All Questions

View all questions & answers for the AZ-104 exam

Exam AZ-104 topic 4 question 83 discussion

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

HOTSPOT -

You have an Azure subscription that contains an Azure Kubernetes Service (AKS) cluster named Cluster1. Cluster1 hosts a node pool named Pool1 that has four nodes.

You need to perform a coordinated upgrade of Cluster1. The solution must meet the following requirements:

• Deploy two new nodes to perform the upgrade.
• Minimize costs.

How should you complete the command? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Show Suggested Answer Hide Answer
Suggested Answer:

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Muffay
Highly Voted 2 years, 4 months ago
Answer is WRONG. I assume there is a typo, where it says "updates" it should be "update". az aks nodepool **update** -n pool1 -g RG1 --cluster-name cluster1 **max-surge 2** https://learn.microsoft.com/en-us/cli/azure/aks/nodepool?view=azure-cli-latest We want to edit an existing node pool, so we cannot use "add": "Add a node pool to the managed Kubernetes cluster." We want to update the properties of the node pool, so we need to use: az aks nodepool update "Update a node pool properties." We want to set it up to use more nodes during an update, so this one is right: --max-surge "Extra nodes used to speed upgrade. When specified, it represents the number or percent used, eg. 5 or 33%."
upvoted 57 times
...
BooMz
Highly Voted 2 years, 2 months ago
Based on document, it is Box 1: Update Box 2: --max-surge I'm very new here, and I could be wrong. Here is the link. Please verify and don't take my word for it. https://learn.microsoft.com/en-us/azure/aks/upgrade-cluster?tabs=azure-cli
upvoted 28 times
Halisson
1 year, 6 months ago
az aks nodepool update -n mynodepool -g MyResourceGroup --cluster-name MyManagedCluster --max-surge 5
upvoted 1 times
...
...
Stunomatic
Most Recent 6 months, 2 weeks ago
max-surge allows AKS to temporarily add nodes for an upgrade without manually scaling the node pool up and down.
upvoted 2 times
...
[Removed]
7 months, 3 weeks ago
WRONG update --max-surge 2
upvoted 2 times
...
Saranpriya
1 year ago
az aks upgrade --resource-group myResourceGroup --name myAKSCluster --max-surge 2 upgrade max-surge 2
upvoted 1 times
...
Amir1909
1 year, 2 months ago
- add - -node-count 2
upvoted 1 times
...
PareshAzure1
1 year, 4 months ago
https://learn.microsoft.com/en-us/azure/aks/upgrade-aks-cluster?tabs=azure-cli#customize-node-surge-upgrade # Set max surge for a new node pool az aks nodepool add -n mynodepool -g MyResourceGroup --cluster-name MyManagedCluster --max-surge 33% # Update max surge for an existing node pool az aks nodepool update -n mynodepool -g MyResourceGroup --cluster-name MyManagedCluster --max-surge 5
upvoted 3 times
...
[Removed]
1 year, 4 months ago
az aks nodepool add --name pool1 --resource-group RG1 --cluster-name cluster1 --node-count 2 This is what I would use to deploy two new nodes in the cluster, which is the first requirement. Then I would run az aks upgrade --resource-group RG1 --name cluster1 --kubernetes-version XX to actually upgrade the cluster. I can't test this unfortunately but it makes the most sense to me.
upvoted 3 times
...
MOSES3009
1 year, 5 months ago
az: This is the Azure CLI command-line tool. aks: This part of the command is specific to the Azure Kubernetes Service (AKS) features. nodepool update: This is the action being performed, which is updating the properties of an AKS node pool. -n pool1: Specifies the name of the node pool (pool1) that you want to update. Replace pool1 with the actual name of your node pool. -g rg1: Specifies the resource group (rg1) where your AKS cluster is located. Replace rg1 with the actual name of your resource group. --cluster-name cluster1: Specifies the name of the AKS cluster (cluster1) to which the node pool belongs. Replace cluster1 with the actual name of your AKS cluster. --max-surge=2: Specifies the maximum number of nodes that can be added to the node pool at the same time during an upgrade. In this example, it sets the maximum surge to 2. Replace 2 with the desired value. This command allows you to update various properties of an AKS node pool, and in this case, it specifically sets the maximum surge during an upgrade. The "max surge" is relevant when you perform a node pool upgrade, allowing you to control the number of additional nodes that can be added at once during the upgrade process.
upvoted 4 times
...
MOSES3009
1 year, 5 months ago
update and max-surge
upvoted 1 times
SamCook101
1 year, 5 months ago
In choices it say updates not update so that is wrong.
upvoted 1 times
Alandt
1 year, 4 months ago
It's probably a typo Jesus Christ
upvoted 3 times
...
...
...
Ahkhan
1 year, 6 months ago
Add an ARM64 node pool into your existing cluster using the az aks nodepool add. az aks nodepool add \ --resource-group myResourceGroup \ --cluster-name myAKSCluster \ --name armpool \ --node-count 3 \ --node-vm-size Standard_D2pds_v5
upvoted 1 times
...
RickySmith
1 year, 9 months ago
https://learn.microsoft.com/en-us/azure/aks/upgrade-cluster?tabs=azure-cli#set-max-surge-values Key word existing
upvoted 2 times
fjreoi
1 year, 8 months ago
update (updates) AND max surge
upvoted 1 times
...
...
Jessica_az
1 year, 9 months ago
on exam 31/Jul/2023.
upvoted 6 times
...
Teroristo
1 year, 9 months ago
Box 1: add az aks nodepool add Add a node pool to the managed Kubernetes cluster. Box 2: --max-surge 2 Extra nodes used to speed upgrade. When specified, it represents the number or percent used, eg. 5 or 33%. Incorrect: * --max-count 2 Maximum nodes count used for autoscaler, when "--enable-cluster-autoscaler" specified. Please specify the value in the range of [0, 1000] for user nodepool, and [1,1000] for system nodepool. However, autoscaler not mention in the question. * --max-pods -m The maximum number of pods deployable to a node. * --node-count -c Number of nodes in the Kubernetes agent pool. After creating a cluster, you can change the size of its node pool with az aks scale. default value: 3 Reference: https://learn.microsoft.com/en-us/cli/azure/aks/nodepool
upvoted 1 times
...
Josete1106
1 year, 9 months ago
Updates + MAX Surge!!
upvoted 2 times
...
RandomNickname
1 year, 11 months ago
Agree with others for update. I don't believe it's scale since this is referring to low resource as per below; https://learn.microsoft.com/en-us/azure/aks/scale-cluster?tabs=azure-cli And the question doesn't mention the need for a new pool, since we need to minimise costs and use existing pool to to do so, I'd have to presume to use existing so; 1: Update 2: Max surge See: https://learn.microsoft.com/en-us/azure/aks/upgrade-cluster?tabs=azure-cli#upgrade-an-aks-cluster
upvoted 3 times
...
FreeSwan
2 years ago
It's already existing cluster, So "update" an "max-surge 2" is fit in...
upvoted 4 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago