Exam AZ-204 All QuestionsBrowse all questions from this exam
Question 265

You develop and deploy a web app to Azure App Service. The Azure App Service uses a Basic plan in a single region.

Users report that the web app is responding slow. You must capture the complete call stack to help identify performance issues in the code. Call stack data must be correlated across app instances. You must minimize cost and impact to users on the web app.

You need to capture the telemetry.

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

NOTE: Each correct selection is worth one point.

    Correct Answer: B, D, E

    To capture telemetry that helps identify performance issues in a web app deployed on Azure App Service, you should enable Application Insights site extensions. This provides comprehensive insights into the app’s performance and usage, including call stack traces. Additionally, enabling the Profiler allows you to capture detailed performance traces and call stacks for slow requests without negatively affecting users. Lastly, enabling the Always On setting ensures that the web app is always running and ready to respond, which is important for capturing accurate performance data and preventing cold starts that could skew telemetry results. Upgrading the App Service plan or enabling the Snapshot debugger are either unnecessary for this specific task or more suited to exception handling rather than performance monitoring.

Discussion
paunski7Options: BEF

B E F B. Enable Application Insights site extensions: Application Insights provides end-to-end insights into the web app's performance and usage. Enabling the Application Insights site extension allows you to collect telemetry data, including call stack traces, to help identify performance issues in the code. E. Enable the Always On setting for the app service: Enabling the Always On setting ensures that the web app is always running, even when there is no traffic. This reduces the impact of cold starts and improves the web app's response time. F. Enable Snapshot debugger: Enabling Snapshot debugger allows you to capture the complete call stack and local variables for an exception that occurred in the web app. This helps to identify performance issues and diagnose issues in the code.

paunski7

Option A, restarting all apps in the App Service plan, and option G, enabling remote debugging, are not necessary for capturing telemetry and identifying performance issues in the web app. Option C, upgrading the Azure App Service plan to Premium, is not necessary for capturing telemetry and identifying performance issues in the web app, and it would significantly increase the cost of the App Service plan. Option D, enabling Profiler, is not necessary as it is an outdated feature and has been replaced by the more powerful and comprehensive Snapshot debugger.

damianadalid

Hello, could you please provide the source where you found that Profiler is being replaced by Snapshot debugger?

JohnStivenson

E - Enable the Always On, how this will fulfill "You need to capture the telemetry."?

JohnStivenson

I think, it's BDF: - Enable Application Insights site extensions - Enable Profiler - Enable Snapshot debugger

1CY1

Snapshot debugger provides the call stack as required in the question but is designed for exception monitoring. You can monitor the stack trace in Analytics so why use the Snapshot debugger. I'm inclined to agree with JH81. B, D, E.

JH81Options: BDE

B, D, E Gotta enable App Insights. Always On can solve the performance issues. Profiler can help find performance issues. You can eliminate Premium upgrade because it says minimize costs, snapshot debugger is for debugging exceptions and has nothing to do with performance issues, restarting app impacts users and it says minimize impact.

the_odd_one

Dosent say anything about needing to solve the performance issue, for me it is B, D, F

5600fed

Always on needs to be enabled before you can use the profiler: https://learn.microsoft.com/en-us/azure/azure-monitor/profiler/profiler#verify-the-always-on-setting-is-enabled

EliteAllenOptions: BDF

B. Enable Application Insights site extensions. This will allow you to collect telemetry from your web app, including performance metrics, failed requests, and dependencies. D. Enable Profiler. The Application Insights Profiler will help you identify performance issues in your app's code by capturing telemetry about the app's slowest operations. F. Enable Snapshot debugger. The Snapshot Debugger takes snapshots of your in-production apps when exceptions occur, allowing you to see exactly what went wrong without affecting traffic of your production application.

yosbelsdOptions: BDE

You need to activate Profiler (D) and to do this, as prerequisites, Application Insights (B) and AlwaysOn (E) must be enabled

dy0917Options: BDE

Should be B D E F. Enable Snapshot debugger for debugging purposes. D. Profiler for monitoring performance.

KotsumeOptions: BDE

B: There is no need to discuss. D: from msLearn, > With Application Insights Profiler, you can capture, identify, and view performance traces for your application running in Azure, regardless of the scenario. The Profiler trace process occurs automatically, at scale, and doesn't negatively affect your users. https://learn.microsoft.com/en-US/azure/azure-monitor/snapshot-debugger/snapshot-debugger E: If you want to use Application Insights Profiler, you have to set Always on for App Services. https://learn.microsoft.com/en-US/azure/azure-monitor/profiler/profiler#verify-the-always-on-setting-is-enabled F: This is not the answer. from mslearn, > with Snapshot Debugger, you can automatically collect a debug snapshot when an EXCEPTION OCCURS in your live .NET application. https://learn.microsoft.com/en-US/azure/azure-monitor/snapshot-debugger/snapshot-debugger

FeriAZOptions: BDF

Enable Application Insights site extensions (B): To collect comprehensive telemetry and performance data. Enable Profiler (D): To capture detailed performance traces and call stacks for slow requests. Enable Snapshot debugger (F): To take snapshots of the app in production, capturing the state and call stack at specific points without heavily impacting users.

CarlosTheBoldestOptions: BDF

The alwayson option does not help us gathering the needed data, so should be BDF

DianahuOptions: DEF

D) Enable profiler With Application Insights Profiler, you can capture and view performance traces for your application in all these dynamic situations. The process occurs automatically at scale and doesn't negatively affect your users. Profiler captures the following information so that you can easily identify performance issues while your app is running in Azure (https://learn.microsoft.com/en-us/azure/azure-monitor/profiler/profiler-overview) E)enable always on (to enable profiler -> https://learn.microsoft.com/en-us/azure/azure-monitor/profiler/profiler ) F)Snapshot debugger - to collect call stacks for your application - https://learn.microsoft.com/en-us/azure/azure-monitor/snapshot-debugger/media/snapshot-debugger/enablement-ui.png

damianadalidOptions: BDE

I think it should be B,E,D : -B and E make the system able to use Application Insights via setting the App Serviced to always On and enabling Application Insights extensions. -D: Profiler is the most suitable one regarding finding performance issues instead of Snapshot debugger, which is more related to exceptions and source code state when errors.

L____LOptions: BDF

BDF - 「You must minimize cost and impact to users on the web app.」 E. Enable the Always On setting for the app service. Enhances user experience, ensuring the web app does not enter a sleep or stop state due to inactivity - Yes May increase the cost of the web app since it will always remain active and not enter a sleep state - No F. Enable Snapshot debugger. Will not impact users - Yes Will not increase the cost of the web app - Yes

mathunit1

Oh goody, it's one of those questions where no one can agree on a definite answer. Greaaaat.

CiupazOptions: BDF

For me: - Enable Application Insights site extensions - Enable Profiler - Enable Snapshot debugger

Paolo12

Always On is available from Standard tier

NPE_

No it is available from Basic tier

Dreamer999Options: BDF

I think "Always On" is an option to fix the issue. But the question is about collecting metrics. So I think "Always On" should not be selected. I would choose Profiler, Snapshot debugger, Enable application Insights site extensions

alpha1mOptions: BDE

BDE F Snapshot debugger is to capture information in case of a failure. This is only about performance issues.

kakajosOptions: BDE

BDE is the correct answer. Profiler capture data automatically without negatively affecting users.