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

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam AZ-104 topic 4 question 52 discussion

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

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?

  • A. Deployment Center in Azure App Service
  • B. A Desired State Configuration (DSC) extension
  • C. the New-AzConfigurationAssignment cmdlet
  • D. a Microsoft Intune device configuration profile
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
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"}
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
Reference:
https://docs.microsoft.com/en-us/azure/architecture/framework/devops/automation-configuration

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
mlantonis
Highly Voted 2 years, 10 months ago
Correct Answer: B 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
upvoted 203 times
ABhi101
2 years, 2 months ago
Thanks
upvoted 1 times
...
Takloy
2 years, 4 months ago
Thanks!
upvoted 2 times
...
Volh
1 year, 9 months ago
thanks !
upvoted 2 times
...
...
fedztedz
Highly Voted 3 years, 1 month ago
Answer is correct "B" with ARM templates, DSC is used.
upvoted 22 times
...
Amir1909
Most Recent 1 month ago
B is correct
upvoted 1 times
...
Amir1909
1 month ago
B is correct
upvoted 1 times
...
Amir1909
1 month ago
B is correct
upvoted 1 times
...
lulzsec2019
9 months, 1 week ago
You will see this question multiple times. I promise :)
upvoted 2 times
...
zellck
1 year, 1 month ago
Same as Question 67. https://www.examtopics.com/discussions/microsoft/view/67546-exam-az-104-topic-4-question-67-discussion
upvoted 1 times
...
zellck
1 year, 1 month ago
Selected Answer: B
B is the answer. https://learn.microsoft.com/en-us/azure/virtual-machines/extensions/dsc-template
upvoted 3 times
...
Jamal786
1 year, 4 months ago
During my training with MS, i had this question but solution B was not given there so in that case this is the solution below: You are going to deploy multiple Virtual machines having Windows Server Operating System by using Azure Resource Manager Template. While completing the Virtual machines deployment you need to make sure that NGINX should be available on all the Virtual machines. What should you do? Answer: Azure Custom Script Extension Explanation A Custom Script Extension(CSE) can be used to automatically launch and execute virtual machine customization tasks post configuration. Your script extension may perform simple tasks such as stopping the virtual machine or installing a software component. However, the script could be more complex and perform a series of tasks. Reference link https://learn.microsoft.com/en-us/training/modules/configure-virtual-machine-extensions/3-implement-custom-script-extensions
upvoted 5 times
...
F117A_Stealth
1 year, 6 months ago
Selected Answer: B
B. A Desired State Configuration (DSC) extension
upvoted 1 times
...
EmnCours
1 year, 7 months ago
Selected Answer: B
Correct Answer: B
upvoted 2 times
...
devilcried
1 year, 9 months ago
Selected Answer: B
The Azure DSC extension uses the Azure VM Agent framework to deliver, enact, and report on DSC configurations running on Azure VMs. https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/dsc-overview
upvoted 3 times
...
Lazylinux
1 year, 9 months ago
Selected Answer: B
I Luv Honey because it is B Desired State Configuration (DSC) extension
upvoted 3 times
...
manalshowaei
1 year, 9 months ago
Selected Answer: B
B. A Desired State Configuration (DSC) extension
upvoted 2 times
...
KIRANdxc
1 year, 11 months ago
Got his question in exam !!
upvoted 2 times
...
Olram
1 year, 11 months ago
Passed today. this is part of the exam. 4/23/22
upvoted 5 times
...
willt
1 year, 11 months ago
Correct
upvoted 1 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 ...