AZ-400 Dumps

AZ-400 Free Practice Test

Microsoft AZ-400: Microsoft Azure DevOps Solutions (beta)

QUESTION 176

- (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:
AZ-400 dumps exhibit Install Internet Information Services (IIS) on the virtual machines.
AZ-400 dumps exhibit 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.
AZ-400 dumps exhibit
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

QUESTION 177

- (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

QUESTION 178

- (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.

QUESTION 179

- (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/

QUESTION 180

- (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.
AZ-400 dumps exhibit
* 2. In the left pane, select Deployment slots > Add Slot.
AZ-400 dumps exhibit
* 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.
AZ-400 dumps exhibit
* 4. After the slot is added, select Close to close the dialog box. The new slot is now shown on the Deployment slots page.
AZ-400 dumps exhibit
Reference:
https://docs.microsoft.com/en-us/azure/app-service/deploy-staging-slots

Does this meet the goal?

Correct Answer: A