nerdexam
Microsoft

AZ-400 · Question #384

You have an Azure subscription that contains 50 virtual machines. You plan to manage the configuration of the virtual machines by using Azure Automation State Configuration. You need to create the Des

The correct answer is D. Configuration > Node > Resource. The Configuration block. This is the outermost script block. You define it by using the Configuration keyword and providing a name. In this case, the name of the configuration is MyDscConfiguration. One or more Node blocks. These define the nodes (computers or VMs) that you are c

Submitted by javi_es· Mar 6, 2026Configure processes and communications

Question

You have an Azure subscription that contains 50 virtual machines. You plan to manage the configuration of the virtual machines by using Azure Automation State Configuration. You need to create the Desired State Configuration (DSC) configuration files. How should you structure the code blocks?

Options

  • ANode > Configuration > Resource
  • BConfiguration > Resource > Node
  • CResource > Configuration > Node
  • DConfiguration > Node > Resource

How the community answered

(53 responses)
  • B
    4% (2)
  • C
    2% (1)
  • D
    94% (50)

Explanation

The Configuration block. This is the outermost script block. You define it by using the Configuration keyword and providing a name. In this case, the name of the configuration is MyDscConfiguration. One or more Node blocks. These define the nodes (computers or VMs) that you are configuring. In the above configuration, there is one Node block that targets a computer named TEST-PC1. The Node block can accept multiple computer names. One or more resource blocks. This is where the configuration sets the properties for the resources that it is configuring. In this case, there are two resource blocks, each of which call the WindowsFeature resource. https://docs.microsoft.com/en-us/powershell/dsc/configurations/configurations?view=dsc- 1.1#configuration-syntax https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/dsc-overview

Community Discussion

No community discussion yet for this question.

Full AZ-400 Practice