Bird
0
0

Which PowerShell keyword is used to define a Desired State Configuration script?

easy📝 Syntax Q3 of 15
PowerShell - Automation Patterns
Which PowerShell keyword is used to define a Desired State Configuration script?
AFunction
BConfiguration
CScript
DModule
Step-by-Step Solution
Solution:
  1. Step 1: Identify DSC script start

    DSC configurations always start with the keyword Configuration.
  2. Step 2: Understand other keywords

    Function defines reusable code blocks, Script is a resource type, and Module is a package container.
  3. Final Answer:

    Configuration -> Option B
  4. Quick Check:

    DSC scripts begin with Configuration keyword [OK]
Quick Trick: DSC configs start with 'Configuration' keyword [OK]
Common Mistakes:
  • Using 'Function' instead of 'Configuration'
  • Confusing 'Script' resource with script block
  • Starting with 'Module' keyword

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes