nerdexam
Microsoft

AZ-400 · Question #237

Drag and Drop Question You need to deploy Internet Information Services (IIS) to an Azure virtual machine that runs Windows Server 2019. How should you complete the Desired State Configuration (DSC) c

The correct answer is Configuration; DependsOn; WindowsFeature. The DSC script structure requires 'Configuration' as the top-level keyword that defines the entire DSC block, 'WindowsFeature' as the DSC resource type used to install IIS (a Windows Server role/feature), and 'DependsOn' to establish dependencies between resources ensuring proper

Submitted by jian89· Mar 6, 2026Implement and manage Azure infrastructure - specifically configuring Azure Virtual Machines using PowerShell DSC for automated role and feature deployment (AZ-104 / AZ-800 domain: Deploy and manage Azure compute resources)

Question

Drag and Drop Question You need to deploy Internet Information Services (IIS) to an Azure virtual machine that runs Windows Server 2019. How should you complete the Desired State Configuration (DSC) configuration script? To answer, drag the appropriate values to the correct locations. Each value may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content. NOTE: Each correct selection is worth one point. Answer:

Exhibit

AZ-400 question #237 exhibit

Answer Area

Drag items

ConfigurationDependsOnFileIncludeAllSubFeatureWindowsFeature

Correct arrangement

  • Configuration
  • DependsOn
  • WindowsFeature

Explanation

The DSC script structure requires 'Configuration' as the top-level keyword that defines the entire DSC block, 'WindowsFeature' as the DSC resource type used to install IIS (a Windows Server role/feature), and 'DependsOn' to establish dependencies between resources ensuring proper installation order. 'Configuration' is the mandatory DSC script wrapper, 'WindowsFeature' is the correct resource for installing IIS via its feature name 'Web-Server', and 'DependsOn' links resources so dependent components wait for prerequisites to be installed first.

Topics

#Desired State Configuration (DSC)#Azure Virtual Machines#Windows Server IIS#Infrastructure as Code

Community Discussion

No community discussion yet for this question.

Full AZ-400 Practice