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
Question
Exhibit
Answer Area
Drag items
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
Community Discussion
No community discussion yet for this question.
