Bird
0
0

Which of the following is the correct way to start a DSC configuration block in PowerShell?

easy📝 Syntax Q12 of 15
PowerShell - Automation Patterns
Which of the following is the correct way to start a DSC configuration block in PowerShell?
AStart-DSCConfig MyConfig { }
BConfiguration MyConfig { }
CConfig MyConfig { }
DNew-DSCConfig -Name MyConfig { }
Step-by-Step Solution
Solution:
  1. Step 1: Recall DSC syntax

    The DSC configuration block always starts with the keyword 'Configuration' followed by the name.
  2. Step 2: Check options

    Only Configuration MyConfig { } uses the correct keyword 'Configuration' to define the block.
  3. Final Answer:

    Configuration MyConfig { } -> Option B
  4. Quick Check:

    DSC block starts with 'Configuration' [OK]
Quick Trick: DSC configs start with 'Configuration' keyword [OK]
Common Mistakes:
  • Using 'Config' instead of 'Configuration'
  • Trying to use cmdlets to start config blocks
  • Confusing DSC syntax with other PowerShell commands

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes