Courseiva
Monitor, troubleshoot, and optimize Azure solutionsmediumMultiple ChoiceObjective-mapped

AZ-204 Practice Question: Monitor, troubleshoot, and optimize Azure solutions

You are monitoring an Azure web application with Application Insights. You need to identify the top 5 slowest API endpoints over the last 7 days. The results should show the endpoint URL, average response time, and request count. Which feature or query should you use?

⚠ Common exam trap

It's easy for candidates to assume Log Analytics is always the best tool for any custom aggregation, overlooking that Application Insights provides purpose-built blades (like Performance) that offer the same functionality with zero query effort and faster results.

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

Use the 'Performance' blade under 'Investigate' in the Application Insights resource.

The 'Performance' blade in Application Insights provides a pre-built, optimized view that automatically aggregates request data by endpoint URL, displaying average response time and request count. It allows you to sort by average duration to quickly identify the top 5 slowest API endpoints over the last 7 days without writing any custom query.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Use Log Analytics and run a query on the 'requests' table to aggregate by URL and sort by avg(duration).

    Why it's wrong here

    While Kusto Query Language (KQL) in Log Analytics can certainly query the 'requests' table, aggregate by 'url' or 'name', and sort by 'avg(duration)', this approach requires manual query construction and understanding of the schema. The Application Insights Performance blade offers a pre-built, interactive experience specifically designed for this common task, providing immediate insights without needing to write or debug a custom query, making it less efficient for a quick overview.

  • Use the 'Performance' blade under 'Investigate' in the Application Insights resource.

    Why this is correct

    The Performance blade within Application Insights is purpose-built to identify and analyze slow operations and dependencies. It automatically aggregates request telemetry, displaying a ranked list of operations (e.g., web requests, API calls) by their average duration, total duration, and request count. This provides an immediate, visual overview of performance bottlenecks, allowing users to quickly drill down into specific slow requests for detailed transaction diagnostics without writing any queries.

  • Use the 'Application Map' feature to visualize dependencies and endpoints.

    Why it's wrong here

    The Application Map feature provides a visual topology of all components in your distributed application, showing how they interact and their dependencies. While it can highlight general health issues and latency between components, its primary function is not to list and rank individual slow API endpoints by aggregated duration. It offers a high-level architectural view rather than detailed performance metrics for specific operations.

  • Configure Smart Detection to automatically identify slow API endpoints.

    Why it's wrong here

    Smart Detection in Application Insights proactively identifies performance anomalies, such as sudden degradations in response time or increased failure rates, and automatically alerts you. While it can detect changes in endpoint performance, it does not provide a persistent, ranked list of consistently slow API endpoints based on their average duration over a selected period. Its focus is on anomaly detection and alerting, not continuous performance ranking.

About these practice questions

Courseiva writes every AZ-204 question from scratch — 881 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

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.