exam questions

Exam AZ-104 All Questions

View all questions & answers for the AZ-104 exam

Exam AZ-104 topic 4 question 9 discussion

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

You plan to automate the deployment of a virtual machine scale set that uses the Windows Server 2016 Datacenter image.
You need to ensure that when the scale set virtual machines are provisioned, they have web server components installed.
Which two actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.

  • A. Upload a configuration script
  • B. Create an automation account
  • C. Create an Azure policy
  • D. Modify the extensionProfile section of the Azure Resource Manager template
  • E. Create a new virtual machine scale set in the Azure portal
Show Suggested Answer Hide Answer
Suggested Answer: AD 🗳️

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
mlantonis
Highly Voted 3 years, 9 months ago
Correct Answer: A and D The Custom Script Extension downloads and executes scripts on Azure VMs. This extension is useful for post deployment configuration, software installation, or any other configuration / management task. Scripts can be downloaded from Azure storage or GitHub, or provided to the Azure portal at extension run-time. The Custom Script extension integrates with Azure Resource Manager templates, and can also be used with the Azure CLI, Azure PowerShell, Azure portal, or the REST API The following Custom Script Extension definition downloads a sample script from GitHub, installs the required packages, then writes the VM instance hostname to a basic HTML page. Reference: https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/tutorial-install-apps-template
upvoted 239 times
Megabyte10
6 months ago
SilverFox is wrong, mlantoonis is correct.
upvoted 1 times
...
SilverFox22
3 years, 5 months ago
For the first time, I disagree with @mlantonis answer, but not the explanation. The reference link is spot on, and it has you 1. Create Custom Script Extension definition, which is editing the extensionProfile section So, D. Then 2. you create the Scale Set. That is E. So answer is D and E.
upvoted 14 times
GD01
3 years, 4 months ago
As per question : "You plan to automate the deployment of a virtual machine scale".... so cannot be E and you require configuration script for post deployment installation of web server components...
upvoted 9 times
...
Netspud
3 years, 1 month ago
Using the page reference, the page states the following order: Create/configure Custom Script extension Add the script (in this case upload) Create the scaleset
upvoted 9 times
Netspud
3 years, 1 month ago
So A and D is correct
upvoted 8 times
...
...
Navigati0n
1 year, 7 months ago
Creating a new VM scale set in the portal doesn't automatically ensure that web server components are installed. You would need to upload a script and modify the ARM template (as stated in options A and D) regardless of whether you create the scale set in the portal or elsewhere.
upvoted 2 times
...
...
AubinBakana
3 years, 6 months ago
I know this is 3 months ago & I gather you must have figured out this is not the correct answer. You're talking about a custom script extension, NOT a configuration. And you have to actually create the VMSS - your choice misses that part completely. This option appears to be false
upvoted 3 times
61Reasons
2 years, 6 months ago
hmmm. The question says "you plan to automate", which means he's not currently automating, thus no current configuration script, correct? Seems he'd have to initially upload one.
upvoted 2 times
...
boom666
3 years, 4 months ago
Actually I can't see "you have to to actually create the VMSS" in the question. I see "you plan to automate the deployment of the VMSS" and "you have to ensure..." So if we plan to automate the deployment we need to upload a configuration script and update Resource Manager Template. Then we can deploy the VMSS using those things today, tomorrow or someday else.
upvoted 6 times
...
...
Holydud
2 years, 6 months ago
Was on exam 19 Aug 2022. Scored 870. Answered A and D
upvoted 20 times
...
...
MisterNobody
Highly Voted 4 years, 5 months ago
A and D?
upvoted 56 times
Dady9
4 years, 5 months ago
yes, AD works better here
upvoted 9 times
...
somenick
4 years, 4 months ago
Agree. Here is the step by step guide how to do that: https://adamtheautomator.com/azure-dsc-arm-template/
upvoted 10 times
...
juandsanchez666
4 years, 3 months ago
Agree, the correct answer are A and D.
upvoted 9 times
...
marcellov
3 years, 10 months ago
Yes, because of the word "automate" you can't use the portal. So A and D should be the right answer.
upvoted 16 times
...
...
Bravo_Dravel
Most Recent 1 month ago
Correct Answer: A and D Explanation: Upload a configuration script: This allows you to create a script containing the commands needed to install the web server components on the newly provisioned VMs. Modify the extensionProfile section: Within your Azure Resource Manager template, the "extensionProfile" section is where you specify custom scripts to be executed during VM deployment, enabling the execution of your uploaded configuration script.
upvoted 1 times
...
cosmicT73
1 month, 2 weeks ago
Selected Answer: AD
no better answer !
upvoted 1 times
...
duongduong_me
3 months, 2 weeks ago
I think this topic was starting more helpful compared to questions in AD and storage account topic
upvoted 1 times
...
[Removed]
5 months, 1 week ago
To automate the deployment of a virtual machine scale set (VMSS) that uses the Windows Server 2016 Datacenter image and ensure that the web server components are installed during provisioning, you should perform the following actions: A. Upload a configuration script You can use a script (e.g., PowerShell or Bash) that installs the required web server components and upload it to an accessible location (like Azure Blob Storage). This script can be executed during the VM provisioning process. D. Modify the extensionProfile section of the Azure Resource Manager template You need to modify the extensionProfile section of your Azure Resource Manager (ARM) template to include an extension that runs the uploaded configuration script on each instance of the VM scale set. This is typically done using the Custom Script Extension for Windows, which executes the script after the VM is provisioned. Correct answers: A. Upload a configuration script D. Modify the extensionProfile section of the Azure Resource Manager template
upvoted 3 times
...
[Removed]
5 months, 4 weeks ago
Selected Answer: AD
A & D are correct
upvoted 1 times
...
ajay01avhad
7 months, 1 week ago
Correct Answers: A. Upload a configuration script D. Modify the extensionProfile section of the Azure Resource Manager template
upvoted 1 times
...
[Removed]
9 months, 2 weeks ago
A. Upload a configuration script: This script can be used to install the necessary web server components on the VM instances. You can create a script that installs these components and upload it to be used during the VMSS provisioning. D. Modify the extensionProfile section of the Azure Resource Manager template: The extensionProfile section allows you to specify VM extensions, which can be used to run scripts or other configuration tasks on the VM instances as they are provisioned. You would include a reference to the configuration script here. Correct Answers: A. Upload a configuration script D. Modify the extensionProfile section of the Azure Resource Manager template
upvoted 12 times
...
bcv
9 months, 2 weeks ago
Correct answers : A and D Even if we go by process of elimination, B and C are easily eliminated. E is tricky but since it involves manual work and not automation , that is also eliminated which leaves us with A and D as correct answers
upvoted 2 times
...
sergei86
1 year, 4 months ago
Selected Answer: AD
as this is automating, you don't actually need the azure portal for the creation of the VMSS
upvoted 1 times
...
iamchoy
1 year, 5 months ago
Selected Answer: AD
To ensure that when the scale set virtual machines are provisioned, they have web server components installed, you need to: A. **Upload a configuration script**: This script will contain the necessary commands to install the web server components on a Windows Server 2016 Datacenter instance. D. **Modify the extensionProfile section of the Azure Resource Manager template**: The extensionProfile section in a Virtual Machine Scale Set ARM template allows you to specify extensions, which are
upvoted 2 times
...
oopspruu
1 year, 6 months ago
Selected Answer: AD
The keyword here is "Automate". You cannot automate with Portal deployments. Need to use ARM/BICEP/PS etc. So option with portal is eliminated. Out of others, Uploading a config script and then modifying extensionprofile part of ARM are correct steps.
upvoted 2 times
...
Teroristo
1 year, 7 months ago
Answers are; Upload a configuration script Modify the extensionProfile section of the Azure Resource Manager template The Custom Script Extension downloads and executes scripts on Azure VMs. This extension is useful for post deployment configuration, software installation, or any other configuration / management task. Scripts can be downloaded from Azure storage or GitHub, or provided to the Azure portal at extension run-time. The Custom Script extension integrates with Azure Resource Manager templates, and can also be used with the Azure CLI, Azure PowerShell, Azure portal, or the REST API The following Custom Script Extension definition downloads a sample script from GitHub, installs the required packages, then writes the VM instance hostname to a basic HTML page. Reference: https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/tutorial-install-apps-template
upvoted 1 times
...
eduvilla
1 year, 7 months ago
Selected Answer: AD
https://adamtheautomator.com/azure-dsc-arm-template/
upvoted 1 times
...
Tomix
1 year, 8 months ago
To automate the deployment of a virtual machine scale set with web server components installed, you should perform the following two actions: A. Upload a configuration script: This script should include the necessary commands to install the web server components on the virtual machines in the scale set. You can upload this script to a storage account or any accessible location for the virtual machines to retrieve and execute during provisioning. D. Modify the extensionProfile section of the Azure Resource Manager template: In the Azure Resource Manager (ARM) template used for deploying the virtual machine scale set, you can include an extensionProfile section to specify the extensions to be installed on the virtual machines. You can add an extension that runs the previously uploaded configuration script to install the web server components. Therefore, the correct options are A and D.
upvoted 2 times
...
Rams_84zO6n
1 year, 11 months ago
Selected Answer: AD
Agree with mlantonis. Prepare a configuration script. https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/template-tutorial-deploy-vm-extensions - store the script in GitHub, so you can access it with a URI. In the ARM template, edit the extension profile section (a) fileURI (b) commandToExecute - so you can access the ARM template and execute the script to install the web server on the VM.
upvoted 2 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