AZ-104 Exam QuestionsBrowse all questions from this exam

AZ-104 Exam - Question 435


You plan to deploy several Azure virtual machines that will run Windows Server 2019 in a virtual machine scale set by using an Azure Resource Manager template.

You need to ensure that NGINX is available on all the virtual machines after they are deployed.

What should you use?

Show Answer
Correct Answer: C

To ensure that NGINX is available on all the virtual machines within an Azure virtual machine scale set after deployment, you should use the Azure Custom Script Extension. This extension allows you to download and execute scripts on Azure VMs, which is ideal for post-deployment configuration. You can use it to install NGINX by specifying a script or command that installs the software. This approach is straightforward and does not require you to manage a complex configuration, making it suitable for tasks like software installation and configuration.

Discussion

17 comments
Sign in to comment
mlantonisOption: C
May 18, 2021

Correct Answer: C Note: There are several versions of this question in the exam. The question has two correct answers: 1. a Desired State Configuration (DSC) extension 2. Azure Custom Script Extension The question can have other incorrect answer options, including the following: ✑ the Publish-AzVMDscConfiguration cmdlet ✑ Azure Application Insights

mlantonis
May 18, 2021

Reference: https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/dsc-overview https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/tutorial-install-apps-template https://docs.microsoft.com/en-us/samples/mspnp/samples/azure-well-architected-framework-sample-state-configuration https://docs.microsoft.com/en-us/azure/architecture/framework/devops/automation-configuration

waterzhongOption: C
Dec 7, 2020

C. Azure Custom Script Extension

curtmcgirt
Feb 19, 2023

i hope i get this question half as many times on the exam as it appears here.

marioZuo
Jul 28, 2023

Old friend

Batiste2023
Oct 29, 2023

Exactly what I felt, after all these harsh networking questions...

Ashfaque_9xOption: C
Jan 28, 2023

Passed today on 29Jan23 with a score of 970. This question was in the exam. Correct answers for this question: 1. a Desired State Configuration (DSC) extension 2. Azure Custom Script Extension

peymaniOption: C
Jan 21, 2022

The Publish-DscConfiguration cmdlet publishes a Windows PowerShell Desired State Configuration (DSC) configuration document on set of computers. This cmdlet does not apply the configuration. Configurations are applied by either the Start-DscConfiguration cmdlet when it is used with the UseExisting parameter or when the DSC engine runs its consistency cycle. https://docs.microsoft.com/en-us/powershell/module/psdesiredstateconfiguration/publish-dscconfiguration?view=dsc-1.1

deltarjOption: C
Jan 19, 2022

I will go with ans C.

deltarj
Jan 19, 2022

if no DSC is offered than it is azCSE... right? (see Q59T4 and Q74T4)

LazylinuxOption: C
Jun 20, 2022

C is correct..see below A Desired State Configuration (DSC) extension Azure virtual machine extensions are small packages that run post-deployment configuration and automation on Azure virtual machines. In the following example, the Azure CLI is used to deploy a custom script extension to an existing virtual machine, which installs a Nginx webserver. az vm extension set \ --resource-group myResourceGroup \ --vm-name myVM --name customScript \ --publisher Microsoft.Azure.Extensions \ --settings '{"commandToExecute": "apt-get install -y nginx"}

zellckOption: C
Feb 9, 2023

C is the answer. https://learn.microsoft.com/en-us/azure/virtual-machines/extensions/custom-script-windows The Custom Script Extension downloads and runs scripts on Azure virtual machines (VMs). This extension is useful for post-deployment configuration, software installation, or any other configuration or management task. You can download scripts from Azure Storage or GitHub, or provide them to the Azure portal at extension runtime.

Amir1909Option: C
Feb 27, 2024

C is correct

brunomdOption: C
Dec 3, 2021

Correct is C. I thought that the correct was A, but does not, because of this: "The Publish-AzVMDscConfiguration cmdlet uploads a Desired State Configuration (DSC) script to Azure blob storage, which later can be applied to Azure virtual machines using the Set-AzVMDscExtension cmdlet."

JIGTOption: A
Dec 29, 2021

Publish-AzVMDscConfiguration cmdlet

johnseong97Option: C
Jan 18, 2022

Correct Answer: C Note: There are several versions of this question in the exam. The question has two correct answers: 1. a Desired State Configuration (DSC) extension 2. Azure Custom Script Extension The question can have other incorrect answer options, including the following: ✑ the Publish-AzVMDscConfiguration cmdlet ✑ Azure Application Insights

peymaniOption: C
Jan 21, 2022

support the correct answer "C" https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/custom-script-windows

elmertarOption: C
Jan 27, 2022

C. Azure Custom Script Extension

EmnCoursOption: C
Aug 22, 2022

Correct Answer: C

zellck
Feb 9, 2023

Same as Question 89. https://www.examtopics.com/discussions/microsoft/view/95713-exam-az-104-topic-4-question-89-discussion