exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 7 question 41 discussion

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

DRAG DROP -
You are deploying a new application that uses Azure virtual machines.
You plan to use the Desired State Configuration (DSC) extension on the virtual machines.
You need to ensure that the virtual machines always have the same Windows feature installed.
Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Step 1: Create a PowerShell configuration file
You create a simple PowerShell DSC configuration file.
Step 2: Load the file to Azure Blob storage
Package and publish the module to a publically accessible blob container URL
Step 3: Configure the Custom Script Extension on the virtual machines.
The Custom Script Extension downloads and executes scripts on Azure virtual machines.
Reference:
https://docs.microsoft.com/en-us/azure/automation/automation-dsc-getting-started https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/custom-script-windows

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
Tesshu
Highly Voted 3 years, 7 months ago
I believe gicen answer is wrong, it should be: 1. Create a PowerShell configuration file 2. Load the file to Azure Blob storage 3. Configure the *DSC extension* on the virtual machines https://docs.microsoft.com/en-us/azure/automation/automation-dsc-onboarding
upvoted 102 times
rdemontis
2 years, 8 months ago
agree with you
upvoted 2 times
...
khengoolman
3 years ago
Your link doesn't explain why Azure Blob is correct, this explains it a bit better: https://marckean.com/2018/06/28/azure-automation-dsc-config-example/ I agree with your answers
upvoted 5 times
...
...
Kinon4
Highly Voted 3 years, 6 months ago
Question is asking you to use DSC, why would you use Custom Script Extension? I believe answer is: 1. Create a Powershell configuration file 2. Load the file to Azure Blob storage 3. Configure the DSC extension on the virtual machines
upvoted 11 times
...
vsvaid
Most Recent 11 months ago
Create Powershell script Load to storahe Configure DSC
upvoted 1 times
...
dipti927
1 year, 5 months ago
To ensure that the virtual machines always have the same Windows feature installed using the Desired State Configuration (DSC) extension in Azure, you should perform the following actions in sequence: Create a DSC configuration script: Write a DSC configuration script that includes the necessary steps to ensure the desired Windows feature is installed on the virtual machines. The configuration script defines the desired state of the system. Upload the DSC configuration script to an accessible location: Store the DSC configuration script in a location that the virtual machines can access, such as Azure Storage, a version control repository, or a shared network location. Configure the DSC extension on the virtual machines: Use the Azure portal, Azure PowerShell, Azure CLI, or Azure Resource Manager (ARM) templates to configure the DSC extension on the virtual machines. Specify the location of the DSC configuration script and any additional settings required for the extension.
upvoted 3 times
...
Fal991l
1 year, 7 months ago
Based on a discussion with GPT: 1. Create a YAML configuration file (B) that specifies the Windows feature to be installed. 2. Create a PowerShell configuration file (F) that references the YAML file and configures the DSC extension on the virtual machines. 3. Configure the DSC extension on the virtual machines (A) using the PowerShell configuration file.
upvoted 1 times
Fal991l
1 year, 7 months ago
Note that the YAML configuration file is needed to specify the Windows feature to be installed, and the PowerShell configuration file references the YAML file and configures the DSC extension on the virtual machines. The SAS token in blob storage is also needed to secure the YAML configuration file, but it is not one of the three actions required to ensure that the virtual machines always have the same Windows feature installed.
upvoted 1 times
...
...
syu31svc
2 years, 3 months ago
https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/dsc-overview "The configuration data file is secured by an SAS token in blob storage" 1) Create a PowerShell configuration file 2) Load the file to Azure Blob storage 3) Configure the DSC extension on the virtual machines
upvoted 5 times
...
Eltooth
2 years, 6 months ago
Create PS Load to Blob Configure DSC
upvoted 2 times
...
UnknowMan
2 years, 6 months ago
"always have the same Windows feature installed." Mean DSC extension that manage drift 1. Create a PowerShell configuration file 2. Load the file to Azure Blob storage 3. Configure the *DSC extension* on the virtual machines
upvoted 3 times
...
jay158
2 years, 6 months ago
Please note the question says 'Azure virtual machines' What if there are 1000 machine? To stop the configuration from drifting we need automation account also. In short Ans Should be 1. Create a PowerShell configuration file 2. Load the file to Azure Blob storage 3. Configure ARM Template -- to apply and configure DSC extensions + also create automation account
upvoted 2 times
...
lugospod
2 years, 9 months ago
Got this January 2022.
upvoted 5 times
...
andruhan
2 years, 11 months ago
I believe it should be Blob Storage, see: https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/dsc-overview#dsc-extension-powershell-cmdlets The following commands place the iisInstall.ps1 script on the specified VM. The commands also execute the configuration, and then report back on status. $resourceGroup = 'dscVmDemo' $vmName = 'myVM' $storageName = 'demostorage' #Publish the configuration script to user storage Publish-AzVMDscConfiguration -ConfigurationPath .\iisInstall.ps1 -ResourceGroupName $resourceGroup -StorageAccountName $storageName -force #Set the VM to run the DSC configuration Set-AzVMDscExtension -Version '2.76' -ResourceGroupName $resourceGroup -VMName $vmName -ArchiveStorageAccountName $storageName -ArchiveBlobName 'iisInstall.ps1.zip' -AutoUpdate -ConfigurationName 'IISInstall'
upvoted 1 times
...
ChauPhan
3 years ago
The questions are weird. We need to upload the DCS Config file to Azure Automation, compile it then add the Nodes that we need to configuration monitoring. I am not sure why we add it to Azure File or Blob
upvoted 3 times
...
Kolego
3 years, 1 month ago
I answered: 1. Create a Powershell configuration file 2. Load the file to AZURE FILES (!!!) 3. Configure the DSC extension on the virtual machine I am not sure about the 2. There is a chance that both Blob and Files are correct. Got 870pts
upvoted 3 times
...
mpknz
3 years, 4 months ago
Based on https://docs.microsoft.com/en-us/powershell/scripting/dsc/pull-server/pullserver?view=powershell-7.1 I think the answer may be to load the powershell config file onto a SMB share i.e. Azure Files not Blob storage and configure the DSC extension. I haven't seen any document suggesting a solution involving blob storage
upvoted 1 times
...
SACHMAM
3 years, 4 months ago
True question is saying DSC. we shouldn't be using CSE here I feel right answer is 1. Create a Powershell configuration file 2. Load the file to Azure Blob storage 3. Configure the DSC extension on the virtual machine Sachin Kadam
upvoted 5 times
...
sam441
3 years, 5 months ago
correct answer
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago