Practice Test 4 | Designing And Implementing Microsoft DevOps Solutions | AZ-400 | Dumps | Mock Test
You have to deploy Internet Information Services to an Azure virtual machine that runs Windows Server 2019. You have to carry out the deployment using the Desired State Configuration.
You have to complete the below script for this requirement.
Which of the following would go into Slot 2?
A. Configuration
B. DependsOn
C. File
D. IncludeAllSubFeature
E. WindowsFeature
Answer – E
Here we need to specify the WindowsFeature option.
An example of the IIS configuration is shown below.
configuration whizlab { node "localhost" { WindowsFeature IIS { Ensure = "Present" Name = "Web-Server" } } }
Option A is incorrect because the Configuration is applicable in slot 1.
Option B is incorrect because DependsOn is used in the YAML pipeline for specifying the dependencies of the stages.
Option C is incorrect because it’s not used in DSC syntax.
Option D is incorrect because this is used for including all required subfeatures within the features you specify with the Name property
For more information on Desired State Configuration, you can refer to the below link-
Comments are closed, but trackbacks and pingbacks are open.