exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 8 question 75 discussion

Actual exam question from Microsoft's AZ-400
Question #: 75
Topic #: 8
[All AZ-400 Questions]

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?

  • A. the PSScriptAnalyzer tool
  • B. the Pester test framework
  • C. the PSCodeHealth module
  • D. the Test-DscConfiguration cmdlet
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Petya27
Highly Voted 1 year, 3 months ago
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/
upvoted 8 times
...
yana_b
Most Recent 8 months, 4 weeks ago
Selected Answer: B
Should be Pester https://pester.dev/docs/quick-start#:~:text=%E2%80%8B,not%20limited%20to%20just%20that. https://devblogs.microsoft.com/scripting/what-is-pester-and-why-should-i-care/
upvoted 1 times
...
renzoku
10 months ago
Selected Answer: B
Pester test framework, used to validate the configuration by your power shell scripts and verify the desired state
upvoted 2 times
...
sudhakaru
10 months, 1 week ago
In addition to Pester, the DscResource.TestModule module is specifically designed for testing DSC resources. Not in the options but an FYI.
upvoted 4 times
...
zellck
11 months ago
Selected Answer: B
B is the answer. https://pester.dev/docs/quick-start Pester is a testing and mocking framework for PowerShell.
upvoted 4 times
zellck
10 months, 4 weeks ago
Gotten this in Jun 2023 exam.
upvoted 5 times
...
...
psr83
11 months, 1 week ago
Selected Answer: B
correct
upvoted 1 times
...
Madbo
1 year ago
Answer is B, the Pester test framework. Pester is a testing framework for PowerShell that allows you to write and run unit tests and integration tests for PowerShell scripts and modules. It is specifically designed for testing PowerShell Desired State Configuration (DSC) configurations. By using Pester to test your DSC configurations, you can ensure that your infrastructure is configured correctly before deploying it. Pester allows you to write tests that check for the expected configuration of your infrastructure, and it can also be integrated into your CI/CD pipeline to automate the testing process.
upvoted 1 times
...
mrg998
1 year, 3 months ago
pesky pesker
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago