You use PowerShell Desired State Configuration (DSC) to configure application infrastructure. To perform unit and integration testing of the DSC configuration before deployment, which tool should you use?
Choose an answer
Tap an option to check your answer.
Correct answer: the Pester test framework.
Why this is the answer
The Pester test framework is the correct choice because it is a widely used, open-source testing framework for PowerShell. It allows you to write unit and integration tests for PowerShell code, including DSC configurations, ensuring they behave as expected before deployment. Pester can validate resource properties, configuration application, and overall state. PSScriptAnalyzer is a static code analyzer that checks for best practices and style violations, but it doesn't execute tests against the configuration's behavior. PSCodeHealth is a module for reporting on code quality metrics, not for functional testing. The Test-DscConfiguration cmdlet is used to check if a system's current state matches a DSC configuration, but it's a runtime check on a target system, not a testing framework for pre-deployment validation.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed