Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.You have an Azure virtual machine named VM1 that runs Windows Server 2016.You need to create an alert in Azure when more than two error events are logged to the System event log on VM1 within an hour.Solution: You create an Azure Log Analytics workspace and configure the Agent configuration settings. You install the Microsoft Monitoring Agent on VM1. You create an alert in Azure Monitor and specify the Log Analytics workspace as the source.Does this meet the goal?
Answer(s): A
Alerts in Azure Monitor can identify important information in your Log Analytics repository. They are created by alert rules that automatically run log searches at regular intervals, and if results of the log search match particular criteria, then an alert record is created and it can be configured to perform an automated response.The Log Analytics agent collects monitoring data from the guest operating system and workloads of virtual machines in Azure, other cloud providers, and on-premises. It collects data into a Log Analytics workspace.References:https://docs.microsoft.com/en-us/azure/azure-monitor/learn/tutorial-response https://docs.microsoft.com/en-us/azure/azure-monitor/platform/agents-overview
References:https://docs.microsoft.com/en-us/azure/azure-monitor/learn/tutorial-response https://docs.microsoft.com/en-us/azure/azure-monitor/platform/agents-overview
HOTSPOT (Drag and Drop is not supported)You have an Azure subscription.You deploy a virtual machine scale set that is configured as shown in the following exhibit.Use the drop-down menus to select the answer choice that answers each question based on the information presented in the graphicNOTE: Each correct selection is worth one point.Hot Area:
https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-autoscale-portal
You have web apps in the West US, Central US and East US Azure regions. You have the App Service plans shown in the following table.You plan to create an additional App Service plan named ASP5 that will use the Linux operating system. You need to identify in which of the currently used locations you can deploy ASP5.What should you recommend?
https://docs.microsoft.com/en-us/azure/app-service/app-service-plan-manage
You plan to deploy several Azure virtual machines that will run Windows Server 2019 in a virtual machine scale set by using an Azure Resource Manager template.You need to ensure that NGINX is available on all the virtual machines after they are deployed. What should you use?
Answer(s): B
For this question these are the correct answers:* a Desired State Configuration (DSC) extensionAzure Custom Script ExtensionFor this question these are the incorrect answers:* a Microsoft Intune device configuration profile* Deployment Center in Azure App Servicethe New-AzConfigurationAssignment cmdletThe question can have other incorrect answer options, including the following:* a Microsoft Endpoint Manager device configuration profile* the Publish-AzVMDscConfiguration cmdlet* Microsoft Entra Application Proxy* Azure Application Insights* Deployment Center in Azure App Service* the New-AzConfigurationAssignment cmdlet* the Publish-AzVMDscConfiguration cmdleta Microsoft Intune device configuration profileExplanations for correct answers:Azure Custom Script ExtensionAzure virtual machine extensions are small packages that run post-deployment configuration and automation on Azure virtual machines.In the following example, the Azure CLI is used to deploy a custom script extension to an existing virtual machine, which installs a Nginx webserver.az vm extension set \--resource-group myResourceGroup \--vm-name myVM --name customScript \--publisher Microsoft.Azure.Extensions \--settings '{"commandToExecute": "apt-get install -y nginx"}* a Desired State Configuration (DSC) extensionThe PowerShell DSC Extension for Windows is published and supported by Microsoft. The extension uploads and applies a PowerShell DSC Configuration on an Azure VM. The DSC Extension calls into PowerShell DSC to enact the received DSC configuration on the VM.Note 1: Nginx is a web server that can also be used as a reverse proxy, load balancer, mail proxy and HTTP cache.Note 2:Create Custom Script Extension definitionWhen you define a virtual machine scale set with an Azure template, the Microsoft.Compute/ virtualMachineScaleSets resource provider can include a section on extensions. The extensionsProfile details what is applied to the VM instances in a scale set. To use the Custom Script Extension, you specify a publisher of Microsoft.Azure.Extensions and a type of CustomScript.The fileUris property is used to define the source install scripts or packages. To start the install process, the required scripts are defined in commandToExecute. The following example defines a sample script from GitHub that installs and configures the NGINX web server:"extensionProfile": { "extensions": [{"name": "AppInstall", "properties": {"publisher": "Microsoft.Azure.Extensions", "type": "CustomScript", "typeHandlerVersion": "2.0", "autoUpgradeMinorVersion": true, "settings": {"fileUris": ["https://raw.githubusercontent.com/Azure-Samples/compute-automation-configurations/master/ automate_nginx.sh"],"commandToExecute": "bash automate_nginx.sh"}}}]}
https://docs.microsoft.com/en-us/azure/architecture/framework/devops/automation-configuration
HOTSPOT (Drag and Drop is not supported)You have an Azure subscription that contains the resources shown in the following table.In Azure Cloud Shell, you need to create a virtual machine by using an Azure Resource Manager (ARM) template.How should you complete the command? To answer, select the appropriate options in the answer area.NOTE: Each correct selection is worth one point.Hot Area:
https://docs.microsoft.com/en-us/powershell/module/az.resources/new-azresourcegroupdeployment? view=azps-6.6.0
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some questions sets might have more than one correct solution, while others might not have a correct solution.After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.You deploy an Azure Kubernetes Service (AKS) cluster named AKS1. You need to deploy a YAML file to AKS1.Solution: From Azure Cloud Shell, you run az aks. Does this meet the goal?
To deploy a YAML file, the command is:kubectl apply -f <file_name>.yaml
https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.You have an Azure virtual machine named VM1 that runs Windows Server 2016.You need to create an alert in Azure when more than two error events are logged to the System event log on VM1 within an hour.Solution: You create an Azure Log Analytics workspace and configure the data settings. You add the Microsoft Monitoring Agent VM extension to VM1. You create an alert in Azure Monitor and specify the Log Analytics workspace as the source.Does this meet the goal?
You must install the Microsoft Monitoring Agent on VM1, and not the Microsoft Monitoring Agent VM extension.
https://docs.microsoft.com/en-us/azure/azure-monitor/platform/agents-overview
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.You have an Azure virtual machine named VM1 that runs Windows Server 2016.You need to create an alert in Azure when more than two error events are logged to the System event log on VM1 within an hour.Solution: You create an Azure Log Analytics workspace and configure the data settings. You install the Microsoft Monitoring Agent on VM1. You create an alert in Azure Monitor and specify the Log Analytics workspace as the source.Does this meet the goal?
Alerts in Azure Monitor can identify important information in your Log Analytics repository. They are created by alert rules that automatically run log searches at regular intervals, and if results of the log search match particular criteria, then an alert record is created and it can be configured to perform an automated response.The Log Analytics agent collects monitoring data from the guest operating system and workloads of virtual machines in Azure, other cloud providers, and on-premises. It collects data into a Log Analytics workspace.
https://docs.microsoft.com/en-us/azure/azure-monitor/learn/tutorial-response https://docs.microsoft.com/en-us/azure/azure-monitor/platform/agents-overview
Post your Comments and Discuss Microsoft AZ-104 exam prep with other Community members:
Our website is free, but we have to fight against AI bots and content theft. We're sorry for the inconvenience caused by these security measures. You can access the rest of the AZ-104 content, but please register or login to continue.