AZ-400 · Question #390
Hotspot Question You have a virtual machine that runs Windows Server 2019 and is managed by using Desired State Configuration (DSC). You have the following DSC configuration. You have the following Lo
The correct answer is The Index.htm file will be copied to the C:\Test folder before the Web-Server Windows feature is installed. = No; If manual changes are made to the configuration of the virtual machine, the configuration will reapply automatically. = Yes; If the Web-Server Windows feature is uninstalled from the virtual machine, the discrepancy will be reported in a log entry within 60 minutes. = No. The LCM is configured with ApplyAndAutoCorrect mode (ConfigurationMode), which means DSC will automatically reapply the configuration if manual changes (drift) are detected, making the second statement correct. The first statement is wrong because the DSC configuration uses Depen
Question
Exhibits
Answer Area
- The Index.htm file will be copied to the C:\Test folder before the Web-Server Windows feature is installed.No
- If manual changes are made to the configuration of the virtual machine, the configuration will reapply automatically.Yes
- If the Web-Server Windows feature is uninstalled from the virtual machine, the discrepancy will be reported in a log entry within 60 minutes.No
Explanation
The LCM is configured with ApplyAndAutoCorrect mode (ConfigurationMode), which means DSC will automatically reapply the configuration if manual changes (drift) are detected, making the second statement correct. The first statement is wrong because the DSC configuration uses DependsOn to ensure the Web-Server feature is installed BEFORE the file is copied (the file copy depends on the feature, not the other way around). The third statement is wrong because ApplyAndAutoCorrect mode will automatically fix discrepancies rather than merely logging them, and the ConfigurationModeFrequencyMins determines how often consistency checks run - if set to more than 60 minutes (e.g., 120 minutes), it won't report within 60 minutes, but more importantly the mode corrects rather than just reports (that would be ApplyAndMonitor).
Topics
Community Discussion
No community discussion yet for this question.



