nerdexam
Microsoft

AZ-400 · Question #395

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

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

How the community answered

(51 responses)
  • A
    8% (4)
  • B
    84% (43)
  • C
    6% (3)
  • D
    2% (1)

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 Practice