Microsoft AZ-400 Exam Questions
Designing and Implementing Microsoft DevOps Solutions (Page 7 )

Updated On: 16-Mar-2026

HOTSPOT (Drag and Drop is not supported)

You have an Azure subscription that contains multiple web apps.

You need to enable Change Analysis for the web apps.

How should you complete the script? To answer, select the appropriate options in the answer area.

Note: Each correct selection is worth one point.

Hot Area:

  1. See Explanation section for answer.

Answer(s): A

Explanation:




Box 1: Register-AzResourceProvider-ProviderNamespace
Enable Change Analysis at scale using PowerShell
Run the following script.

# Log in to your Azure subscription
Connect-AzAccount

# Get subscription Id
$SubscriptionId = Read-Host -Prompt 'Input your subscription Id'

# Make Feature Flag visible to the subscription
Set-AzContext -SubscriptionId $SubscriptionId

# Register resource provider
Register-AzResourceProvider -ProviderNamespace "Microsoft.ChangeAnalysis" [Box 1]

# Enable each web app
$webapp_list = Get-AzWebApp | Where-Object {$_.kind -eq 'app'} foreach ($webapp in $webapp_list)
{
$tags = $webapp.Tags
$tags["hidden-related:diagnostics/changeAnalysisScanEnabled"]=$true Set-AzResource -ResourceId $webapp.Id -Tag $tags -Force [Box 2] }

Box 2: Set-AzResource -ResourceId


Reference:

https://learn.microsoft.com/en-us/azure/azure-monitor/change/change-analysis-enable



You have an Azure subscription that contains an Azure Kubernetes Service (AKS) cluster named Cluster1 and an Azure Monitor workspace named WS1. WS1 uses the Azure Monitor managed service for Prometheus.

You need to send the metrics data of Cluster1 to WS1.

Which two actions should you perform? Each correct answer presents part of the solution.

Note: Each correct selection is worth one point.

  1. Integrate Microsoft Entra ID and AKS.
  2. Install the metrics add-on.
  3. Create a managed identity.
  4. Disable the snapshot controller.
  5. Configure a Microsoft Defender for Cloud security profile.

Answer(s): B,C

Explanation:

Install the metrics add-on
The metrics add-on for Azure Monitor allows AKS to send metrics to Azure Monitor. This includes Prometheus metrics in clusters using the managed service.
Create a managed identity
A managed identity is required to provide the necessary permissions for the AKS cluster to communicate with Azure Monitor. This identity will authenticate the AKS cluster with Azure Monitor without requiring credentials in your code.



You have an Azure App Service app named App1.

You need to identify when App1 was offline. The solution must minimize administrative effort.

Which troubleshooting category in App Service diagnostics should you use?

  1. Availability and Performance
  2. Configuration and Management
  3. Diagnostic Tools
  4. Navigator

Answer(s): A

Explanation:

The tiles or the Troubleshoot link show the available diagnostics for the category. If you were interested in investigating Availability and performance the following diagnostics are offered:
Overview
*-> Web App Down
Web App Slow

High CPU Analysis
Memory Analysis
Web App Restarted
Application Change (Preview)
Application Crashes
HTTP 4xx Errors
SNAT Failed Connection Endpoints
SWAP Effects on Availability
TCP Connections
Testing in Production
WebJob Details


Reference:

https://learn.microsoft.com/en-us/azure/app-service/overview-diagnostics



HOTSPOT (Drag and Drop is not supported)

You have an Azure web app named webapp1 that uses the .NET Core runtime stack. You have an Azure Application Insights resource named AppInsights1 that collects telemetry data generated by webapp1.

You plan to deploy webapp1 by using an Azure DevOps pipeline.

You need to modify the sampling rate of the telemetry data processed by AppInsights1 without having to redeploy webapp1 after each modification.

What should you do? To answer, select the appropriate options in the answer area.

Note: Each correct selection is worth one point.

Hot Area:

  1. See Explanation section for answer.

Answer(s): A

Explanation:




Box 1: Modify ApplicationInsights.config
In ApplicationInsights.config, you can adjust several parameters in the AdaptiveSamplingTelemetryProcessor node. The figures shown are the default values:

<MaxTelemetryItemsPerSecond>5</MaxTelemetryItemsPerSecond>

The target rate of logical operations that the adaptive algorithm aims to collect on each server host. If your web app runs on many hosts, reduce this value so as to remain within your target rate of traffic at the Application Insights portal.

<EvaluationInterval>00:00:15</EvaluationInterval>

The interval at which the current rate of telemetry is reevaluated. Evaluation is performed as a moving average. You might want to shorten this interval if your telemetry is liable to sudden bursts.

Etc.

Box 2: Modify the Usage and estimated costs settings.
Ingestion sampling
Use this type of sampling if your app often goes over its monthly quota and you don't have the option of using either of the SDK-based types of sampling.

Set the sampling rate in the Usage and estimated costs page:

Incorrect:
* Smart detection
Proactive diagnostics is a recent feature. Without any special configuration by you, Application Insights automatically detects and alerts you about unusual rises in failure rates in your app. It's smart enough to ignore a background of occasional failures, and also rises that are simply proportionate to a rise in requests. So for example, if there's a failure in one of the services you depend on, or if the new build you just deployed isn't working so well, then you'll know about it as soon as you look at your email. (And there are webhooks so that you can trigger other apps.)

Another aspect of this feature performs a daily in-depth analysis of your telemetry, looking for unusual patterns of performance that are hard to discover. For example, it can find slow performance associated with a particular geographical area, or with a particular browser version.

* Continuous Export
Want to keep your telemetry for longer than the standard retention period? Or process it in some specialized way? Continuous Export is ideal for this purpose. The events you see in the Application Insights portal can be exported to storage in Microsoft Azure in JSON format. From there, you can download your data and write whatever code you need to process it.


Reference:

https://docs.microsoft.com/en-us/azure/azure-monitor/app/sampling https://docs.microsoft.com/en-us/azure/azure-monitor/app/devops#smart-detection



DRAG DROP (Drag and Drop is not supported)

Your company wants to use Azure Application Insights to understand how user behaviors affect an application.

Which Application Insights tool should you use to analyze each behavior? To answer, drag the appropriate tools to the correct behaviors. Each tool 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:

  1. See Explanation section for answer.

Answer(s): A

Explanation:




Box 1: User Flows
Feature usage

User Flows - Visualize user paths to identify the most common routes and pinpointing areas where users are most engaged users or may encounter issues.

The User Flows tool visualizes how users move between the pages and features of your site. It's great for answering questions like:

How do users move away from a page on your site?
What do users select on a page on your site?
Where are the places that users churn most from your site?
Are there places where users repeat the same action over and over?

Box 2: Users
Number of people who used actions and its features

Users tool: How many people used your app and its features? Users are counted by using anonymous IDs stored in browser cookies. A single person using different browsers or machines will be counted as more than one user.

Box 3: Impact
The effect that the performance of applications has on the usage of a page or a feature.

Impact Analysis - Discover how different properties influence conversion rates Impact Analysis discovers how any dimension of a page view, custom event, or request affects the usage of a different page view or custom event.

One way to think of Impact is as the ultimate tool for settling arguments with someone on your team about how slowness in some aspect of your site is affecting whether users stick around. Users might tolerate some slowness, but Impact gives you insight into how best to balance optimization and performance to maximize user conversion.


Reference:

https://learn.microsoft.com/en-us/azure/azure-monitor/app/usage



Viewing page 7 of 72
Viewing questions 31 - 35 out of 355 questions



Post your Comments and Discuss Microsoft AZ-400 exam dumps with other Community members:

AZ-400 Exam Discussions & Posts

AI Tutor 👋 I’m here to help!