Exam Preparation Quiz

Question 71 of 75

Configure DSC for Windows Server IIS Installation

You work for MDFT Pro, a well-known training agency. You plan to use Desired State Configuration (DSC) to maintain the configuration state of virtual machines that run Windows Server for the academy’s training environments.

You need to perform the following tasks:

You have the following incomplete DSC configuration file:

Configuration WebserverConfig {
    Import-DscResource -ModuleName PsDesiredStateConfiguration
    Node "localhost" {
        WindowsFeature Webserver {
            Ensure = "Present"
            Name = "Web-Server"
        }
        ___________ DefaultHomePage {
            Ensure = "Present"
            SourcePath = "\\server1\DSCResources\web\index.htm"
            DestinationPath = "C:\inetpub\wwwroot"
        }
    }
}

Which command should you insert at the underlined location to complete the file?

Choose the correct answer from the options below.

Explanations for each answer:

Learn more about the PowerShell DSC File Resource:
DSC File Resource
Next Question