- (Exam Topic 4)
You plan to use Desired State Configuration (DSC) to maintain the configuration state of virtual machines that run Windows Server.
You need to perform the following: Install Internet Information Services (IIS) on the virtual machines.
Update the default home page of the IIS web server.
How should you configure the DSC configuration file? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Solution:
See the answer in image
Box 1: WindowsFeature Example:
Configuration WebsiteTest {
# Import the module that contains the resources we're using. Import-DscResource -ModuleName PsDesiredStateConfiguration
# The Node statement specifies which targets this configuration will be applied to. Node 'localhost' {
# The first resource block ensures that the Web-Server (IIS) feature is enabled. WindowsFeature WebServer {
Ensure = "Present" Name = "Web-Server"
}
Box 2: File Example continued:
# The second resource block ensures that the website content copied to the website root folder.
File WebsiteContent { Ensure = 'Present'
SourcePath = 'c:testindex.htm' DestinationPath = 'c:inetpubwwwroot'
}
Reference:
https://docs.microsoft.com/en-us/powershell/scripting/dsc/quickstarts/website-quickstart
Does this meet the goal?
Correct Answer:
A
- (Exam Topic 4)
You are integrating an Azure Boards project and a GitHub repository. You need to authenticate Azure Boards to GitHub.
Which two authentication methods can you use? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.
Correct Answer:
CD
- (Exam Topic 4)
Your company has an Azure DevOps project that produces Node Package Manager (npm) packages. Multiple projects consume the packages.
You need to minimize the amount of disk space used by older packages in Azure Artifacts. What should you modify?
Correct Answer:
B
To minimize the amount of disk space used by older packages in Azure Artifacts, you should modify the retention settings of the project's release. This can be done by navigating to the project's release settings and adjusting the retention policy. For more information, please refer to the Microsoft documentation.
- (Exam Topic 4)
You have an Azure DevOps project that contains a build pipeline. The build pipeline uses approximately 50 open source libraries.
You need to ensure that all the open source libraries comply with your company’s licensing standards.
Which service should you use?
Correct Answer:
C
WhiteSource provides WhiteSource Bolt, a lightweight open source security and management solution developed specifically for integration with Azure DevOps and Azure DevOps Server.
Note: WhiteSource is the leader in continuous open source software security and compliance management. WhiteSource integrates into your build process, irrespective of your programming languages, build tools, or development environments. It works automatically, continuously, and silently in the background, checking the security, licensing, and quality of your open source components against WhiteSource constantly-updated denitive database of open source repositories.
Note: Blackduck would also be a good answer, but it is not an option here. Reference: https://www.azuredevopslabs.com/labs/vstsextend/whitesource/
- (Exam Topic 4)
You plan to implement a CI/CD strategy for an Azure Web App named az400-11566895-main. You need to configure a staging environment for az400-11566895-main.
To complete this task, sign in to the Microsoft Azure portal.
Solution:
Add a slot
* 1. In the Azure portal, search for and select App Services and select your app az400-11566895-main.
* 2. In the left pane, select Deployment slots > Add Slot.
* 3. In the Add a slot dialog box, give the slot a name, and select whether to clone an app configuration from another deployment slot. Select Add to continue.
* 4. After the slot is added, select Close to close the dialog box. The new slot is now shown on the Deployment slots page.
Reference:
https://docs.microsoft.com/en-us/azure/app-service/deploy-staging-slots
Does this meet the goal?
Correct Answer:
A