- (Exam Topic 4)
You are developing a multi-tier application. The application will use Azure App Service web apps as the front end and an Azure SQL database as the back end. The application will use Azure functions to write some data to Azure Storage.
You need to send the Azure DevOps team an email message when the front end fails to return a status code of 200.
Which feature should you use?
Correct Answer:
C
https://docs.microsoft.com/en-us/azure/azure-monitor/app/monitor-web-app-availability
- (Exam Topic 4)
You have an Azure DevOps organization named Contoso.
You have 10 Azure virtual machines that run Windows Server 2019. The virtual machines host an application that you build and deploy by using Azure Pipelines. Each virtual machine has the Web Server (IIS) role installed and configured.
You need to ensure that the web server configurations pin the virtual machines is maintained automatically. The solution must provide centralized management of the configuration settings and minimize management overhead.
Which four actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.
Solution:
Step1: Create an Azure Automation account. An Azure Automation account is required.
Step 2: Install the custom Desired State Configuration (DSC) extension on the virtual machines
Under the hood, and without an administrator having to remote into a VM, the Azure VM Desired State Configuration extension registers the VM with Azure Automation State Configuration.
Step 3: Onboard the virtual machines to the Azure Automation account. Step 4: Complete the Desired State Configuration (DSC) configuration. Create a DSC configuration.
Reference:
https://docs.microsoft.com/en-us/azure/automation/automation-dsc-onboarding
Does this meet the goal?
Correct Answer:
A
- (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.