HOTSPOT (Drag and Drop is not supported)You plan to create alerts that will be triggered based on the page load performance of a home page.You have the Application Insights log query shown in the following exhibit.Use the drop-down menus to select the answer choice that completes each statement based on the information presented in the graphic.Note: Each correct selection is worth one point.Hot Area:
Answer(s): A
Box 1: percentile_duration_95Box 2: successFor example requests| project name, url, success| where success == "False"This will return all the failed requests in my App Insights within the specified time range.
https://devblogs.microsoft.com/premier-developer/alerts-based-on-analytics-query-using-custom-log-search/
You have a multi-tier application. The front end of the application is hosted in Azure App Service.You need to identify the average load times of the application pages.What should you use?
Application Insights will tell you about any performance issues and exceptions, and help you find and diagnose the root causes.Application Insights can monitor both Java and ASP.NET web applications and services, WCF services. They can be hosted on-premises, on virtual machines, or as Microsoft Azure websites.On the client side, Application Insights can take telemetry from web pages and a wide variety of devices including iOS, Android, and Windows Store apps.
https://docs.microsoft.com/en-us/azure/azure-monitor/app/web-monitor-performance
DRAG DROP (Drag and Drop is not supported)You have several Azure virtual machines that run Windows Server 2022.You need to identify the distinct event IDs of each virtual machine as shown in the following table.How should you complete the Azure Monitor query? To answer, drag the appropriate values to the correct locations. Each value may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.Note: Each correct selection is worth one point.Select and Place:
You can use makelist to pivot data by the order of values in a particular column. For example, you may want to explore the most common order events take place on your machines. You can essentially pivot the data by the order of EventIDs on each machine.Example:Event| where TimeGenerated > ago(12h)| order by TimeGenerated desc| summarize makelist(EventID) by Computer
https://docs.microsoft.com/en-us/azure/azure-monitor/log-query/advanced-aggregations
You have a private GitHub repository.You need to display the commit status of the repository on Azure Boards.What should you do first?
Answer(s): C
To connect Azure Boards to GitHub.com, connect and configure from Azure Boards. Or, alternatively, install and configure the Azure Boards app from GitHub. Both methods have been streamlined and support authenticating and operating via the app rather than an individual.Note (see step 4 below):Add a GitHub connection:1. Sign into Azure Boards.2. Choose (1) Project Settings, choose (2) GitHub connections and then (3) Connect your GitHub account.3. If this is your first time connecting to GitHub from Azure Boards, you will be asked to sign in using your GitHub credentials. Choose an account for which you are an administrator for the repositories you want to connect to.4. The Add GitHub Repositories dialog automatically displays and selects all GitHub.com repositories for which you are an administrator. Unselect any repositories that you don't want to participate in the integration.
https://docs.microsoft.com/en-us/azure/devops/boards/github/connect-to-github
You are integrating Azure Pipelines and Microsoft Teams.You install the Azure Pipelines app in Microsoft Teams.You have an Azure DevOps organization named Contoso that contains a project name Project1.You subscribe to Project1 in Microsoft Teams.You need to ensure that you only receive events about failed builds in Microsoft Teams.What should you do first?
You have an Azure DevOps organization named Contoso.You need to receive Microsoft Teams notifications when work items are updated.What should you do?
Answer(s): B
HOTSPOT (Drag and Drop is not supported)You have a project in Azure DevOps that contains a Continuous Integration/Continuous Deployment (CI/CD) pipeline.You need to enable detailed logging by defining a pipeline variable.How should you configure the variable? To answer, select the appropriate options in the answer area.Note: Each correct selection is worth one point.Hot Area:
Box 1: system.debugTo configure verbose logs for all runs, you can add a variable named system.debug and set its value to true.Note: Verbose logging is the practice of recording to a persistent medium as much information as you possibly can about events that occur while the software runs.Box 2: true
https://docs.microsoft.com/en-us/azure/devops/pipelines/troubleshooting/review-logs
You have an Azure web app named webapp1 that uses the .NET Core runtime stack. You have an Azure Application Insights resource named AppInsights1. Webapp1 sends telemetry data to AppInsights1.You need to ensure that webapp1 sends the telemetry data at a fixed sampling rate.What should you do?
Configure the Application Insights SDKYou can customize the Application Insights SDK for ASP.NET Core to change the default configuration. Users of the Application Insights ASP.NET SDK might be familiar with changing configuration by using ApplicationInsights.config or by modifying TelemetryConfiguration.Active. For ASP.NET Core, make almost all configuration changes in the ConfigureServices() method of your Startup.cs class, unless you're directed otherwise (see line marked with **This line! below).Example: Configuring fixed-rate sampling for ASP.NET Core applications.Changes can be made after the WebApplication.CreateBuilder() method:C#var builder = WebApplication.CreateBuilder(args);builder.Services.Configure<TelemetryConfiguration>(telemetryConfiguration => // **This line! {var builder = telemetryConfiguration.DefaultTelemetrySink.TelemetryProcessorChainBuilder; // Using fixed rate sampling double fixedSamplingPercentage = 10;builder.UseSampling(fixedSamplingPercentage);});builder.Services.AddApplicationInsightsTelemetry(new ApplicationInsightsServiceOptions {EnableAdaptiveSampling = false,});var app = builder.Build();
https://learn.microsoft.com/en-us/azure/azure-monitor/app/sampling https://learn.microsoft.com/en-us/azure/azure-monitor/app/asp-net-core
Share your comments for Microsoft AZ-400 exam with other users:
Question 2:
This is very good and accurate. Explanation is very helpful even thou some are not 100% right but good enough to pass.