HOTSPOT - You plan to use Desired State Configuration (DSC) to maintain the configuration of a server that runs Windows Server 2019. The server must have the following features installed: ✑ A web server ✑ An email server How should you complete the DSC configuration file? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Hot Area: Suggested Answer: Box 1: = @("SMTP-Server", "Web-Server") The following configuration ensures that the Web-Server (IIS) and SMTP (email) Server features, and all subfeatures of each, are installed. configuration FeatureSetTest { Import-DscResource -ModuleName PSDesiredStateConfiguration Node localhost - { WindowsFeatureSet WindowsFeatureSetExample { Name = @("SMTP-Server", "Web-Server") Ensure = 'Present' IncludeAllSubFeature = $true - } } } Box 2: Ensure - Ensure indicates whether the roles or features are added. To ensure that the roles or features are added, set this property to Present. To ensure that the roles or features are removed, set the property to Absent. The default value is Present. Reference: https://docs.microsoft.com/en-us/powershell/dsc/reference/resources/windows/windowsFeatureSetResource This question is in AZ-400 Exam For getting Microsoft DevOps Engineer Expert Certificate Disclaimers: The website is not related to, affiliated with, endorsed or authorized by Microsoft. The website does not contain actual questions and answers from Microsoft's Certification Exams. Trademarks, certification & product names are used for reference only and belong to Microsoft.
Please login or Register to submit your answer