Desired State Configuration Flashcards

1
Q

What does the aspect of DSC being idempotent mean?

A

Changes only affect configurations not in desired state, convergence to a desired state

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a .mof file?

A

Management Object File, gets pushed to target computers

Enables cross-platform capability as converts powershell to ASCII standard that is universally interpreted

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the PoSH command to call a DSC configuration?

A

-Computername -OutputPath

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the PoSH command to push a DSC configuration to target nodes?

A

Start-DscConfiguration -Path (optional -Wait otherwise runs as background job)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the PoSH command to view built in DSC resources?

A

Get-DscResource

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the PoSH command to view online DSC resources?

A

Find-DscResource

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does the x denote on a DSC module?

A

Experimental

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does the c denote on a DSC module?

A

Community (made)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a prerequisite for DSC to communicate?

A

WinRM service and listeners enabled
Configure Script Execution Policy
*DSC is built on CIM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the syntax to configure a .meta.mof?

A

LocalConfigurationManager {<code>}</code>

Configures a .meta.mof to be generated to target nodes</code>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the syntax to configure a .mof?

A

{<code>}</code>

Configures a .mof to be generated to target nodes</code>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the command to generate a meta.mof from a configuration?

A

Configure LCM agent of target

Set-DscLocalConfigurationManager

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the command to generate a .mof from a configuration?

A

Start-DscConfigurationManager

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the command to view the LCM of a computer?

A

Get-DscLocalConfigurationManager

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the command to view the DSC configuration of a computer?

A

Get-DscConfiguration

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the command to see if there is configuration drift?

A

Test-DscConfiguration

17
Q

What are the types of pull server?

A

SMB
HTTP
HTTPS

18
Q

What is an advantage of pull vs push server?

A

Pull server permits ability to perform complex logic regarding DSC requests it receives to apply specific configuration
Clients will “page fault” to import any resources they do not have from the pull server

19
Q

Why is pull server more robust than push server?

A

Topology of nodes requesting configuration as of when they have connectivity to pull server +
Requests are more resilient due to stateful firewalls dynamically allowing requests from target nodes

20
Q

How do you push a new configuration with a pending configuration that failed?

A

Start-DSCConfiguration -Path -ComputerName -Force

21
Q

How to you remove current DSCConfigurations?

A

Remove-DscConfigurationDocument -Stage Current

22
Q

How do you remove pending DSCConfigurations?

A

Remove-DSCConfigurationDocument -Stage Pending

23
Q

How do you remove previous DSCConfigurations?

A

Remove-DSCConfigurationDocument -Stage Previous

24
Q

How do you see if there is a failed DSCConfiguration?

A

Get-DSCConfigurationStatus

25
Q

What is OneGet?

A

OneGet/PSGet is a package manager for other package managers

26
Q

How are machines able to universally understand DSC?

A

It is a WMI provider, linux uses OMI

27
Q

How are machines able to universally understand DSC?

A

It is a WMI provider, Linux uses OMI (open source version of WMI)

28
Q

What is a repository?

A

A container of stuff

i.e PSGallery, Chocolatey

29
Q

What is the purpose of a checksum in DSC?

A

Comparing current configuration against pull server to be efficient

30
Q

What is important to do when updating a .mof on a pull server?

A

Update the corresponding checksum

31
Q

What is configuration data for?

A

Specify unique attributes to machines such as role, then perform logic in configuration based on attributes about machines

32
Q

How does depends on work in DSC?

A

Uses Directed Acyclic Graph to process things in order, specifying creates a dependency flow graph