AZ-204 Develop Azure compute solutions Practice Question
A company has an Azure App Service web app that occasionally returns 500 errors. You need to diagnose the root cause without impacting production traffic. Which feature should you use?
⚠ Common exam trap
The trap here is that candidates might consider deployment slots for isolating issues, but while slots are excellent for safe deployments and testing new code, they are not the primary tool for *diagnosing the root cause* of *existing, occasional 500 errors* in a live production application. Application Insights is specifically designed for passive monitoring and detailed telemetry collection to identify such root causes without direct interaction or reproduction efforts.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Application Insights
Application Insights is a powerful diagnostic tool that provides detailed telemetry and performance monitoring for your web app. It can automatically detect and analyze 500 errors, showing stack traces, request details, and dependencies. This allows you to identify the root cause without impacting production traffic, as it works passively by collecting data.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Kudu console
Why it's wrong here
The Kudu console, also known as the SCM site, offers low-level access to the App Service file system, process explorer, and basic diagnostic tools like memory dumps. While useful for inspecting deployment artifacts or troubleshooting specific process issues, it is not an efficient or safe tool for real-time diagnosis of intermittent HTTP 500 errors in a production environment. Directly interacting with a production instance via Kudu for deep error analysis can be disruptive and lacks the comprehensive, aggregated telemetry needed for effective root cause analysis.
- ✗
Deployment slots
Why it's wrong here
Deployment slots allow you to swap staging and production environments, but they do not provide the deep diagnostic telemetry needed to analyze the root cause of errors. They are more for safe deployment and testing.
- ✓
Application Insights
Why this is correct
Application Insights provides comprehensive Application Performance Monitoring (APM) by collecting telemetry such as requests, exceptions, dependencies, and performance counters directly from your application. It offers end-to-end transaction tracing, allowing developers to visualize the flow of requests and pinpoint the exact code path and dependencies causing HTTP 500 errors, complete with stack traces and contextual data. This non-intrusive monitoring solution is ideal for diagnosing production issues without impacting user experience or requiring manual intervention.
- ✗
Autoscaling rules
Why it's wrong here
Autoscaling rules are designed to dynamically adjust the number of web app instances based on predefined metrics like CPU usage or HTTP queue length, ensuring performance and cost efficiency. While they react to increased load that might correlate with errors, they do not provide the detailed application-level telemetry, stack traces, or dependency maps necessary to pinpoint the root cause of an HTTP 500 error within the application code itself. Their primary function is resource management and scaling, not deep code diagnostics.
Go deeper
Related to this question
Learn chapter
Azure Functions Development
Key term
Azure Monitor Metrics
Azure Monitor Metrics is a feature of Azure Monitor that collects, stores, and analyzes numerical data from Azure resources to track performance, health, and usage over time.
Key term
Application Insights
Application Insights is an Azure monitoring service that helps developers detect, diagnose, and understand issues in live web applications by collecting telemetry data like requests, exceptions, and performance counters.
About these practice questions
This AZ-204 question is part of Courseiva's 881-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AZ-204 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-204 exam.