exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 8 question 53 discussion

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

HOTSPOT -
You plan to use Desired State Configuration (DSC) to maintain the configuration of a server that runs Windows Server 2019.
The server must have the following features installed:
✑ A web server
✑ An email server
How should you complete the DSC configuration file? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: = @("SMTP-Server", "Web-Server")
The following configuration ensures that the Web-Server (IIS) and SMTP (email) Server features, and all subfeatures of each, are installed. configuration FeatureSetTest
{
Import-DscResource -ModuleName PSDesiredStateConfiguration

Node localhost -
{
WindowsFeatureSet WindowsFeatureSetExample
{
Name = @("SMTP-Server", "Web-Server")
Ensure = 'Present'

IncludeAllSubFeature = $true -
}
}
}

Box 2: Ensure -
Ensure indicates whether the roles or features are added. To ensure that the roles or features are added, set this property to Present. To ensure that the roles or features are removed, set the property to Absent. The default value is Present.
Reference:
https://docs.microsoft.com/en-us/powershell/dsc/reference/resources/windows/windowsFeatureSetResource

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
Atos
Highly Voted 1 year, 1 month ago
Confirmed: configuration FeatureSetTest { Import-DscResource -ModuleName PSDesiredStateConfiguration Node localhost { WindowsFeatureSet WindowsFeatureSetExample { Name = @("SMTP-Server", "Web-Server") Ensure = 'Present' IncludeAllSubFeature = $true } } }
upvoted 7 times
...
Jawad1462
Highly Voted 1 year ago
Answer is correct same concept as the question before!
upvoted 5 times
...
zellck
Most Recent 5 months ago
1. = @("SMTP-Server", "Web-Server") 2. Ensure https://learn.microsoft.com/en-us/powershell/dsc/reference/resources/windows/windowsFeatureSetResource?view=dsc-1.1#example
upvoted 5 times
zellck
4 months, 3 weeks ago
Gotten this in Jun 2023 exam.
upvoted 5 times
...
...
syu31svc
1 year, 2 months ago
Answer is correct and link supports it
upvoted 1 times
...
pdk88
1 year, 2 months ago
Given answer is right
upvoted 1 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