exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 2 question 14 discussion

Actual exam question from Microsoft's AZ-400
Question #: 14
Topic #: 2
[All AZ-400 Questions]

You have an Azure DevOps project named Project1 and an Azure subscription named Sub1. Sub1 contains an Azure virtual machine scale set named VMSS1.
VMSS1 hosts a web application named WebApp1. WebApp1 uses stateful sessions.
The WebApp1 installation is managed by using the Custom Script extension. The script resides in an Azure Storage account named sa1.
You plan to make a minor change to a UI element of WebApp1 and to gather user feedback about the change.
You need to implement limited user testing for the new version of WebApp1 on VMSS1.
Which three actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.

  • A. Modify the load balancer settings of VMSS1.
  • B. Redeploy VMSS1.
  • C. Upload a custom script file to sa1.
  • D. Modify the Custom Script extension settings of VMSS1.
  • E. Update the configuration of a virtual machine in VMSS1.
Show Suggested Answer Hide Answer
Suggested Answer: CDE 🗳️

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
TosO
Highly Voted 4 years, 3 months ago
Answer: CDE Not Correct: A - Statefull sessions are already configured B - If you redeploy the VMSS1, the new configuration will apply to all virtual machines. "The requirement is: You need to implement limited user testing for the new version of WebApp1 on VMSS1."
upvoted 87 times
OhBee
4 years, 2 months ago
Certain modifications may be applied to specific VMs instead of the global scale set properties. Currently, the only VM-specific update that is supported is to attach/detach data disks to/from VMs in the scale set. This feature is in preview. For more information, see the preview documentation. https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-upgrade-scale-set
upvoted 2 times
OhBee
4 years, 2 months ago
What I meant by this is that I am not sure if E is correct here...
upvoted 3 times
kcinofni
4 years, 1 month ago
Completely agree. We cannot modify appropriately settings of the scale set load balancer, as well as we cannot install extensions directly to particular scale set instance.
upvoted 2 times
...
Alexevansigg
3 years, 9 months ago
If you change the settings for the VMSS (ie set a new custom script extension) That script can be applied to a subset of instances if you have auto-upgrade disabled. Applying an Upgrade to a VMSS Instance is the same as 'Update the Configuration of a VM' So Answer is CDE.
upvoted 4 times
...
...
...
temporal111
3 years, 10 months ago
In my opinion you are correct, to reinforce your answer: https://medium.com/charot/custom-script-extention-on-azure-vmss-e010a8c87904 Here we can find a simple explanation of why isn't necessary the redeploy step
upvoted 3 times
...
...
nagendra25may
Highly Voted 3 years, 12 months ago
Answer is ACD. Explanation:- Upload the changes to Storage Account. Change The extension script to deploy the changes only to few VMs. Change Load Balancer to distribute the traffic to new changes vs old changes and see the feedback.
upvoted 36 times
jmwania
11 months ago
You're right.
upvoted 1 times
...
omw2wealth
2 years, 7 months ago
No, i trust TosO. Answer: CDE
upvoted 5 times
...
UnknowMan
2 years, 2 months ago
Cant be A because of Stateful session
upvoted 1 times
...
...
400AZ
Most Recent 2 days, 7 hours ago
Selected Answer: ACD
E: Not Ideal: Updating the configuration of a single virtual machine in the scale set does not ensure that the changes are applied consistently across all instances. Additionally, it does not provide a mechanism for directing a subset of users to the updated version for testing. A: Load Balancer Settings: By modifying the load balancer settings, you can direct a portion of the traffic to the updated instances. This allows you to perform a canary deployment, where only a subset of users will experience the new version. This is crucial for limited user testing.
upvoted 1 times
...
FeriAZ
4 months, 1 week ago
Selected Answer: CDE
C. Upload a custom script file to sa1: Since WebApp1 installation and updates are managed by the Custom Script extension, you need to modify the script in your Azure storage account (sa1) with the new version that includes the UI change. D. Modify the Custom Script extension settings of VMSS1: This allows you to point the extension to the updated script location in sa1, triggering the installation of the new WebApp1 version with the UI change on all VMs within the VMSS1 scale set. E. Update the configuration of a virtual machine in VMSS1: While this might seem tempting, it's crucial to remember that VMSS1 is a scale set. Updating a single VM configuration wouldn't update the entire set, and you might end up with an inconsistent environment.
upvoted 4 times
...
mohiniu
1 year, 4 months ago
It seems it can be done in 2 ways: Option1 : C. Upload a custom script file to sa1. Upload new script with newer version of code. D. Modify the Custom Script extension settings of VMSS1. Point Scaleset to new script in storage account E. Update the configuration of a virtual machine in VMSS1. Increase number of VMS in scaleset from say 3 to 4. With this change , new VM VM-4 will be having newer code. And first 3 VMS will continue to run with older version of code. Option2: C. Upload a custom script file to sa1. Upload new script with newer version of code. [F] Create a new scaleset and point this scaleset to new script A. Modify the load balancer settings of VMSS1. Update loadbalancer settings such that traffic is distributed between new and older scaleset. As , we are not having option [F] in the answer. CDE should be right answer.
upvoted 8 times
...
Ak1009
1 year, 4 months ago
Selected Answer: ACD
Chat GPT Says ACD E : Option E ("Update the configuration of a virtual machine in VMSS1") is not a necessary step to implement limited user testing for the new version of WebApp1 on VMSS1, so it is not a correct answer in this case. Updating the configuration of a virtual machine in the scale set would only be necessary if you wanted to make specific changes to that virtual machine, such as changing its size, its network configuration, or its OS disk image. However, if you want to implement limited user testing on the web application running on all virtual machines in the scale set, you would typically use the Custom Script extension or another deployment method to update the code running on all the virtual machines at once, rather than modifying the configuration of each virtual machine individually. I believe A is necessary for Canary testing as we want to test it for just limited number of Users.
upvoted 2 times
Fal991l
1 year, 3 months ago
another version from gpt: To implement limited user testing for the new version of WebApp1 on VMSS1, you should perform the following three actions: B. Redeploy VMSS1: To deploy the new version of WebApp1, you need to update the VMSS with the new code. This can be achieved by redeploying VMSS1. C. Upload a custom script file to sa1: To make the minor UI changes to WebApp1, you need to modify the custom script file that is used to manage the installation of WebApp1. You can upload the updated script file to the Azure Storage account named sa1. D. Modify the Custom Script extension settings of VMSS1: After updating the custom script file, you need to modify the settings of the Custom Script extension of VMSS1 to use the updated script file during the redeployment process. Therefore, the correct options are: B. Redeploy VMSS1. C. Upload a custom script file to sa1. D. Modify the Custom Script extension settings of VMSS1.
upvoted 1 times
...
...
friendlyvlad
1 year, 7 months ago
The answer is CDE. A and B are simply not related. We do not need to make any changes to the scaleset to deploy a small UI change. The rest was explained in Update App deployment section of https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/tutorial-install-apps-powershell.
upvoted 2 times
...
stevenzo
1 year, 7 months ago
You can still load balance with stateful sessions.
upvoted 2 times
...
syu31svc
1 year, 11 months ago
Selected Answer: CDE
https://cloudblogs.microsoft.com/opensource/2018/06/18/tutorial-canary-deployment-for-azure-virtual-machine-scale-sets/ Answer is CDE
upvoted 6 times
Rams_84zO6n
1 year, 4 months ago
CDE Canary deployment -> Update the configuration of a virtual machine in VMSS1 - emphasis on "a virtual machine"
upvoted 1 times
...
srine69
1 year, 9 months ago
Great reference
upvoted 1 times
...
...
Govcomm
1 year, 11 months ago
Update the configuration Custom Script Extension Update the VMSS
upvoted 1 times
...
marras
2 years, 1 month ago
Selected Answer: CDE
CDE based on this link: After research I've found this link: https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/tutorial-install-apps-powershell (section "Update app deployment") where they show update steps: $vmss = Get-AzVmss ` -ResourceGroupName "myResourceGroup" ` -VMScaleSetName "myScaleSet" $vmss.VirtualMachineProfile.ExtensionProfile[0].Extensions[0].Settings = $customConfigv2 Update-AzVmss ` -ResourceGroupName "myResourceGroup" ` -Name "myScaleSet" ` -VirtualMachineScaleSet $vmss
upvoted 1 times
...
UnknowMan
2 years, 2 months ago
Selected Answer: CDE
CDE do the job
upvoted 1 times
...
rdemontis
2 years, 3 months ago
Selected Answer: CDE
IMHO canary deployment could be a good solution for this scenario because we have to implement limited user testing for the new version of WebApp1 on VMSS1. So correct answer should be C,D,E
upvoted 1 times
...
AM11
2 years, 5 months ago
Selected Answer: CDE
Refer this post. https://cloudblogs.microsoft.com/opensource/2018/06/18/tutorial-canary-deployment-for-azure-virtual-machine-scale-sets/
upvoted 2 times
jay158
2 years, 3 months ago
Best reference to clarify the answer CDE
upvoted 1 times
...
...
debanjan10
2 years, 7 months ago
Selected Answer: CDE
Correct answer is CDE
upvoted 1 times
...
d0bermannn
2 years, 9 months ago
if use a logic must be a\c\e
upvoted 4 times
...
d0bermannn
2 years, 10 months ago
ACE looks logical, with A as a must part of solution for affected vm isolation
upvoted 3 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