exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 8 question 52 discussion

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

DRAG DROP -
You need to deploy Internet Information Services (IIS) to an Azure virtual machine that runs Windows Server 2019.
How should you complete the Desired State Configuration (DSC) configuration script? To answer, drag the appropriate values to the correct locations. Each value may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: Configuration -
Configuration Example:

Configuration Sample -
{

Node localhost, server02 -
{

Box 2: WindowsFeature -
Example:

WindowsFeature RoleExample -
{
Ensure = "Present"
# Alternatively, to ensure the role is uninstalled, set Ensure to "Absent"
Name = "Web-Server" # Use the Name property from Get-WindowsFeature
}
The WindowsFeature resource in Windows PowerShell Desired State Configuration (DSC) provides a mechanism to ensure that roles and features are added or removed on a target node.
Reference:
https://docs.microsoft.com/en-us/powershell/dsc/reference/resources/windows/windowsfeatureresource https://docs.microsoft.com/en-us/powershell/dsc/managing-nodes/apply-get-test

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
syu31svc
Highly Voted 2 years, 3 months ago
https://docs.microsoft.com/en-us/azure/automation/automation-dsc-getting-started Answer is correct
upvoted 12 times
...
vsvaid
Most Recent 11 months, 2 weeks ago
Correct answer
upvoted 1 times
...
vsvaid
11 months, 2 weeks ago
Correct answer
upvoted 1 times
...
zellck
1 year, 6 months ago
1. Configuration 2. WindowsFeature https://learn.microsoft.com/en-us/powershell/dsc/configurations/configurations?view=dsc-1.1#configuration-syntax A configuration script consists of the following parts: - The Configuration block. This is the outermost script block. You define it by using the Configuration keyword and providing a name. In this case, the name of the configuration is MyDscConfiguration. - One or more Node blocks. These define the nodes (computers or VMs) that you are configuring. In the above configuration, there is one Node block that targets a computer named TEST-PC1. The Node block can accept multiple computer names. - One or more resource blocks. This is where the configuration sets the properties for the resources that it is configuring. In this case, there are two resource blocks, each of which call the WindowsFeature resource.
upvoted 3 times
...
anhtvux
1 year, 10 months ago
the answer is correct: Configuration & WindowsFeature
upvoted 1 times
...
pdk88
2 years, 3 months ago
Given answer is correct. -Configuration -Node (already given in answer) -Feature Configuration MyDscConfiguration { param ( [string[]]$ComputerName='localhost' ) Node $ComputerName { WindowsFeature MyFeatureInstance { Ensure = 'Present' Name = 'RSAT' } WindowsFeature My2ndFeatureInstance { Ensure = 'Present' Name = 'Bitlocker' } } } MyDscConfiguration https://docs.microsoft.com/en-us/powershell/dsc/configurations/configurations?view=dsc-1.1#configuration-syntax
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 ...