nerdexam
MicrosoftMicrosoft

AZ-400 · Question #395

AZ-400 Question #395: Real Exam Question with Answer & Explanation

The correct answer is B: the Pester test framework. Use Pester to test a Desired State Configuration to ensure that servers are configured exactly the way you want them. https://petri.com/testing-dsc-configurations-using-pester/

Submitted by valeria.br· Mar 6, 2026Design and implement build and release pipelines

Question

You have a project in Azure DevOps named Project1. You implement a Continuous Integration/Continuous Deployment (CI/CD) pipeline that uses PowerShell Desired State Configuration (DSC) to configure the application infrastructure. You need to perform a unit test and an integration test of the configuration before Project1 is deployed. What should you use?

Options

  • Athe PSScriptAnalyzer tool
  • Bthe Pester test framework
  • Cthe PSCodeHealth module
  • Dthe Test-DscConfiguration cmdlet

Explanation

Use Pester to test a Desired State Configuration to ensure that servers are configured exactly the way you want them. https://petri.com/testing-dsc-configurations-using-pester/

Community Discussion

No community discussion yet for this question.

Full AZ-400 PracticeBrowse All AZ-400 Questions