Courseiva
Knowledge + Practice
CertificationsVendorsCareer RoadmapsLabs & ToolsStudy GuidesGlossaryPractice Questions
C
Courseiva

Free IT certification practice questions with explained answers for CCNA, CompTIA, AWS, Azure, Google Cloud, and more.

Certification Practice Questions

CCNA practice questionsSecurity+ SY0-701 practice questionsAWS SAA-C03 practice questionsAZ-104 practice questionsAZ-900 practice questionsCLF-C02 practice questionsA+ Core 1 practice questionsGoogle Cloud ACE practice questionsCySA+ CS0-003 practice questionsNetwork+ N10-009 practice questions
View all certifications →

Product

CertificationsCertification PathsExam TopicsPractice TestsExam Dumps vs Practice TestsStudy HubComparisons

Company

AboutContactEditorial PolicyQuestion Writing PolicyTrust Center

Legal

Privacy PolicyTerms of Service

Courseiva is a free IT certification practice platform offering original exam-style practice questions, detailed explanations, topic-based practice, mock exams, readiness tracking, and study analytics for Cisco, CompTIA, Microsoft, AWS, and other technology certifications.

© 2026 Courseiva. Courseiva is operated by JTNetSolutions Ltd. All rights reserved.

Courseiva is an independent certification practice platform and is not affiliated with, endorsed by, or sponsored by Cisco, Microsoft, AWS, CompTIA, Google, ISC2, ISACA, or any other certification vendor. Vendor names and certification marks are used only to identify the exams learners are preparing for.

← Monitor, troubleshoot, and optimize Azure solutions practice sets

AZ-204 Monitor, troubleshoot, and optimize Azure solutions • Complete Question Bank

AZ-204 Monitor, troubleshoot, and optimize Azure solutions — All Questions With Answers

Complete AZ-204 Monitor, troubleshoot, and optimize Azure solutions question bank — all 0 questions with answers and detailed explanations.

116
Questions
Free
No signup
Certifications/AZ-204/Practice Test/Monitor, troubleshoot, and optimize Azure solutions/All Questions
Question 1mediummultiple choice
Read the full network assurance explanation →

An e-commerce application emits a high volume of telemetry data to Azure Application Insights. You need to reduce the cost of data ingestion while preserving statistical accuracy for performance metrics. Which sampling technique should you use?

Question 2easymultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You need to monitor the real-time CPU utilization of an Azure virtual machine. Which Azure Monitor feature is designed for this purpose?

Question 3hardmultiple choice
Read the full NAT/PAT explanation →

You have an Azure App Service web app that experiences intermittent slowness. You enable Application Insights and notice that the "Failed Requests" metric is low, but "Server Response Time" is high for a subset of requests. You want to identify the specific code path causing the delay. Which feature should you use?

Question 4mediummultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

An Azure Function processes events from Event Hubs. You need to monitor the number of events that were successfully processed and those that were dropped due to processing errors. Which approach should you use?

Question 5mediummultiple choice
Read the full network assurance explanation →

Your e-commerce application sends telemetry to Application Insights. You need to reduce ingestion costs while preserving the ability to detect trends in performance metrics. Which sampling type should you configure?

Question 6easymultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You need to monitor the CPU utilization of an Azure VM in real-time and set up an alert when it exceeds 90%. Which Azure Monitor feature should you use?

Question 7mediummultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You need to diagnose a slow-performing Azure Function. Application Insights shows that the function's dependency calls to an external API take an unusually long time. Which Application Insights feature should you use to visualize the end-to-end request flow?

Question 8mediummultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

An Azure web app is experiencing high memory usage. You want to collect memory dumps periodically to analyze the issue without restarting the app. Which Azure App Service diagnostic feature should you use?

Question 9easymultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

An application uses Azure Application Insights for monitoring. You need to write a query to analyze the number of failed requests and exceptions over the past hour. Which query language should you use?

Question 10easymultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

Your web app hosted on Azure App Service is experiencing high memory usage. You need to capture a memory dump for analysis without restarting the app. Which diagnostic feature should you use?

Question 11easymultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You need to monitor the performance of an Azure web app. You want to track the average response time and the number of failed requests over the last hour. Which Azure service should you use?

Question 12mediummultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You are troubleshooting an Azure Function that intermittently throws exceptions. You have enabled Application Insights. You need to capture the exact line of code that caused the exception, even for exceptions that occur during high load. Which feature should you use?

Question 13mediummultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You are monitoring an Azure Web App with Application Insights. You notice that certain requests have high server response times. You need to identify which specific database queries are causing the delays. Which Application Insights feature should you use?

Question 14mediummultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

Your Azure web app is running in a production environment. Users report that the app is slow. You need to identify the root cause without impacting production traffic. Which approach should you use?

Question 15mediummultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You are using Application Insights to monitor a web app. You want to automatically analyze and alert on sudden increases in request failure rates, without manually setting static thresholds. Which Application Insights feature should you use?

Question 16hardmultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You are monitoring an Azure App Service using Application Insights. You notice that HTTP 500 errors are increasing, but the standard server response time metric remains normal. You suspect that the errors are occurring in an external API call made by the application. How can you identify the dependency that is failing?

Question 17easymultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You are monitoring an Azure Function app that processes messages from an Event Hub. You want to be alerted if the function is failing to process messages (e.g., exceptions) and automatically restart the function host. Which Azure service should you use?

Question 18mediummultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You are monitoring an Azure App Service using Application Insights. You notice that the server response time is high for certain requests. You need to drill down to see which external dependencies (like databases or APIs) are causing the delay. Which Application Insights feature should you use?

Question 19mediummultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You are monitoring an Azure Web App using Application Insights. You need to track the duration and status code of an external API call made by the app. Which Application Insights feature should you use?

Question 20easymultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You have enabled Application Insights on your Azure Web App. You notice that some server-side exceptions are not appearing in the Application Insights portal. What is the most likely reason?

Question 21easymultiple choice
Read the full NAT/PAT explanation →

You are monitoring an Azure Web App with Application Insights. You notice a sudden spike in failed requests. You need to quickly identify which specific URL path is causing the most failures. Which blade in the Application Insights portal should you use?

Question 22mediummultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You are monitoring an Azure Web App with Application Insights. You notice that the dependency duration for a SQL database call has significantly increased. You need to identify the specific SQL query that is causing the slowness. Which Application Insights feature should you use?

Question 23mediummultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You are running an Azure App Service web app on the Basic tier. Users report slow initial responses due to cold starts. You need to keep the app warm without upgrading the hosting plan. Which feature should you enable?

Question 24easymultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You are monitoring an Azure App Service with Application Insights. You need to create a custom dashboard that shows the number of requests over time and the average server response time. Which Application Insights feature should you use to create this dashboard?

Question 25mediummulti select
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You are monitoring an ASP.NET Core web API with Application Insights. You want to view the SQL queries being executed, including the command text and duration, in the Application Insights portal. Which actions must you take? (Select all that apply.) (Choose 2.)

Question 26easymultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You are using Application Insights to monitor a web application. You need to create an alert that triggers when the server response time exceeds 5 seconds for more than 10% of requests in a 5-minute window. Which type of Azure Monitor alert should you create?

Question 27easymultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You are monitoring an Azure web application with Application Insights. You notice a sudden increase in the number of failed requests. You want to be notified automatically when such anomalies occur, without manually setting static thresholds. Which Application Insights feature should you use?

Question 28mediummultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You are using Application Insights to monitor an ASP.NET Core web API. Users report that a specific endpoint is slow, but you cannot reproduce the issue in development. You need to identify which line of code is causing the delay in production. Which Application Insights feature should you use?

Question 29easymultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You are monitoring an Azure web application with Application Insights. You want to create a custom dashboard that shows the number of requests over time and the average server response time. Which Application Insights feature should you use to create this dashboard?

Question 30easymultiple choice
Read the full network assurance explanation →

You are using Application Insights to monitor a web application. The business team wants to track how many users click a specific button on the page. You need to send custom telemetry data from the client-side JavaScript. Which Application Insights JavaScript SDK method should you call?

Question 31mediummultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You are monitoring an e-commerce application with Application Insights. You need to analyze all exceptions that occurred in the last 24 hours, grouped by the exception type. You also need to include the URL where each exception was triggered and the number of times each type occurred. Which Log Analytics Kusto query should you use?

Question 32mediummultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You manage a web application hosted on Azure App Service. You need to monitor the application's availability from multiple geographic locations. The test should check that the homepage loads successfully and returns HTTP 200 within 5 seconds. You want to receive an alert if the test fails from any location. Which type of Application Insights test should you create?

Question 33easymultiple choice
Read the full network assurance explanation →

You are debugging a performance issue in a live web application monitored by Application Insights. You need to see real-time metrics such as request rate, response times, and any exceptions as they occur, without waiting for the usual telemetry pipeline. Which Application Insights feature should you use?

Question 34hardmultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You need to analyze all exceptions that occurred in the last 24 hours from an application monitored by Application Insights. You want to group them by exception type, and for each type show the URL where it occurred and the count. Which Log Analytics Kusto query should you use?

Question 35easymultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You manage a web application on Azure App Service. You need to monitor its availability from multiple geographic locations, checking that the homepage loads and returns HTTP 200 within 5 seconds. You want an alert if any location fails. Which type of Application Insights test should you create?

Question 36mediummultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

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?

Question 37mediummultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You are monitoring a web application with Application Insights. The application occasionally returns HTTP 500 errors. You want to be notified immediately when the error rate exceeds 5% of all requests in a rolling 5-minute window. Which feature of Application Insights should you configure?

Question 38mediummultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You are investigating a slow API call in your Azure web app. Application Insights shows that the request took 10 seconds. You need to view all the dependencies (database calls, external HTTP requests) that contributed to this request. What should you use?

Question 39hardmultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You need to emit a custom metric in Application Insights that tracks the number of page views per browser. You expect high volume (millions of events per day). Which API should you use to ensure efficient pre-aggregation and avoid performance issues?

Question 40easymultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You are using Application Insights to monitor a web application. You notice that a specific request is slow. You want to see the complete end-to-end transaction details, including all dependency calls and exceptions for that single request. Which feature should you use?

Question 41mediummultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You have a web application monitored by Application Insights. You want to receive an alert when the average server response time exceeds 2 seconds for a rolling 5-minute period. Which alert rule type should you create?

Question 42mediummultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You are monitoring an Azure web app using Application Insights. You need to create a query that returns the average duration of requests for each HTTP method (GET, POST, etc.) over the last hour, sorted by duration. Which Kusto query should you use?

Question 43mediummultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You have an App Service web app with Application Insights configured. You want to create an alert that fires when the server response time exceeds 2 seconds for a rolling 10-minute window. Which type of alert rule should you create?

Question 44mediummultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

An Azure App Service application has slow API requests. The developer needs distributed tracing across requests and dependencies. What should be enabled?

Question 45hardmultiple choice
Read the full network assurance explanation →

Application Insights ingestion cost is rising because a high-traffic app emits large telemetry volume. The team needs statistically useful telemetry while reducing ingestion. What should be configured?

Question 46mediummultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

A developer needs to run a Kusto query against application request data to identify 95th percentile latency by operation. Where should the query be run?

Question 47hardmulti select
Read the full Monitor, troubleshoot, and optimize solutions explanation →

A production API needs proactive alerting for unexpected exceptions. Which two elements are required for a useful Azure Monitor alert?

Question 48mediummultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

An Azure App Service application has availability failures. The developer needs distributed tracing across requests and dependencies. What should be enabled?

Question 49hardmultiple choice
Read the full network assurance explanation →

Application Insights ingestion cost is rising because a high-traffic app emits large telemetry volume. The team needs statistically useful telemetry while reducing ingestion. What should be configured? The design must avoid adding custom operational scripts.

Question 50mediummultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

A developer needs to run a Kusto query against application request data to identify 95th percentile latency by operation. Where should the query be run? The design must avoid adding custom operational scripts.

Question 51hardmulti select
Read the full Monitor, troubleshoot, and optimize solutions explanation →

A production API needs proactive alerting for failed dependency calls. Which two elements are required for a useful Azure Monitor alert?

Question 52mediummultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

An Azure App Service application has memory pressure. The developer needs distributed tracing across requests and dependencies. What should be enabled?

Question 53hardmultiple choice
Read the full network assurance explanation →

Application Insights ingestion cost is rising because a high-traffic app emits large telemetry volume. The team needs statistically useful telemetry while reducing ingestion. What should be configured? The architecture review board prefers a managed AWS-native control.

Question 54mediummultiple choice
Read the full NAT/PAT explanation →

A developer needs to run a Kusto query against application request data to identify 95th percentile latency by operation. Where should the query be run? The architecture review board prefers a managed AWS-native control.

Question 55hardmulti select
Read the full network assurance explanation →

A production API needs proactive alerting for high telemetry cost. Which two elements are required for a useful Azure Monitor alert?

Question 56mediummultiple choice
Read the full network assurance explanation →

A high-traffic API sends approximately 80,000 telemetry events per second to Application Insights. Monthly ingestion costs are too high. The team wants to reduce data volume by roughly 80 percent while still seeing representative samples of all request types. What should the developer configure?

Question 57easymultiple choice
Read the full NAT/PAT explanation →

The team needs to receive an email when an App Service's HTTP 5xx error rate exceeds 5 percent for more than five consecutive minutes. No custom code should be written. What combination of Azure Monitor features implements this requirement?

Question 58hardmultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

Three microservices collaborate on a single user transaction: an App Service API, an Azure Function that processes a Service Bus message, and a downstream storage service. Traces appear separately in Application Insights with no parent-child relationship. What is needed to correlate all three into a single end-to-end trace?

Question 59mediummultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

After deploying a new version to the staging slot and swapping to production, users report a 60-second spike in 503 errors. The application takes 45 seconds to initialize its connection pools and caches before it can serve traffic. What is the root cause, and what should the developer configure to prevent this?

Question 60mediummultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

Users of a web application hosted on App Service are randomly signed out when the app is scaled out to three instances. Investigation shows that session data stored in in-process memory is not available when subsequent requests hit a different instance. What is the recommended solution?

Question 61mediumdrag order
Read the full Monitor, troubleshoot, and optimize solutions explanation →

Arrange the steps to configure auto-scaling for an Azure App Service in the correct order.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4
5Step 5
Question 62mediumdrag order
Read the full Monitor, troubleshoot, and optimize solutions explanation →

Arrange the steps to create a CI/CD pipeline using Azure DevOps for an Azure App Service in the correct order.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4
5Step 5
Question 63mediummatching
Read the full Monitor, troubleshoot, and optimize solutions explanation →

Match each Azure container service to its primary use case.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Run containers on demand without orchestration

Managed Kubernetes cluster for orchestration

Serverless containers for microservices

Platform for building and managing microservices

Question 64mediummatching
Read the full Monitor, troubleshoot, and optimize solutions explanation →

Match each Azure monitoring tool to its purpose.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Collect, analyze, and act on telemetry data

Application performance monitoring (APM)

Query and analyze log data

Personalized recommendations for best practices

Question 65mediummultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You are developing a web app that experiences intermittent slow responses. You enable Application Insights and notice that the server-side request duration is normally under 200ms, but some requests take over 5 seconds. Which diagnostic tool should you use to identify the root cause?

Question 66hardmultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You have an App Service app that uses Azure SQL Database. Users report that some queries are slow. You need to monitor query performance and receive alerts when the average query duration exceeds 1 second. Which two Azure services should you use?

Question 67easymultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You are deploying a microservices application on Azure Kubernetes Service (AKS). You need to monitor the resource consumption of each pod and set up alerts when CPU usage exceeds 80% for 5 minutes. What should you use?

Question 68mediummultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You have an Azure Function app that processes messages from a Service Bus queue. Under high load, some messages are not processed within the expected time. You need to identify whether the function is throttling due to high CPU or due to a downstream dependency. Which Application Insights feature should you use?

Question 69hardmultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You are optimizing an Azure API Management instance that handles 10,000 requests per second. You notice that caching is not effective. The cache hit ratio is below 10%. You need to increase the cache hit ratio. What should you do?

Question 70mediummultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You have an Azure Front Door Premium instance with a Web Application Firewall (WAF) policy. The exhibit shows a custom rule. What is the effect of this rule?

Exhibit

Refer to the exhibit.
```json
{
  "properties": {
    "ruleSet": [
      {
        "rules": [
          {
            "matchConditions": [
              {
                "matchVariable": "RemoteAddr",
                "operator": "IPMatch",
                "negateCondition": true,
                "matchValue": ["192.168.1.0/24", "10.0.0.0/8"]
              }
            ],
            "action": "Block"
          }
        ]
      }
    ]
  }
}
```
Question 71hardmultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You have an Azure Logic App that processes orders. Occasionally, the Logic App fails due to a transient error from a downstream API. You want to automatically retry the failed action after 10 seconds, up to 3 times, with exponential backoff. Which configuration should you set on the action?

Question 72easymultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You have an Azure Cosmos DB container with a high number of physical partitions. You observe that some partitions are hitting the request unit (RU) limit while others are underutilized. What should you do to better distribute the workload?

Question 73mediummultiple choice
Read the full network assurance explanation →

You are troubleshooting an Azure App Service that runs a Node.js application. The application returns HTTP 500 errors intermittently. Application Insights is configured. Which telemetry item should you examine first to find the root cause?

Question 74hardmultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You query Application Insights with the KQL query in the exhibit. The chart shows a spike in 500 errors at 2:00 PM. What is the next step to diagnose the cause?

Exhibit

Refer to the exhibit.
```kql
requests
| where timestamp > ago(1d)
| summarize count() by bin(timestamp, 1h), resultCode
| where resultCode == 500
| render timechart
```
Question 75mediummultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You have an Azure Function app that uses Durable Functions. You notice that some orchestrations are taking longer than expected. You need to monitor the history of orchestration instances. What should you use?

Question 76easymultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You are using Azure Monitor to collect logs from multiple Azure resources. You need to query logs to find all error events from the last 24 hours. Which query language should you use?

Question 77hardmultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You have an Azure Policy as shown in the exhibit. The roleDefinitionId corresponds to the 'Contributor' role. What does this policy do?

Exhibit

Refer to the exhibit.
```json
{
  "properties": {
    "policyRule": {
      "if": {
        "field": "type",
        "equals": "Microsoft.Compute/virtualMachines"
      },
      "then": {
        "effect": "deny",
        "details": {
          "roleDefinitionIds": [
            "/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
          ]
        }
      }
    }
  }
}
```
Question 78mediummultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You have an Azure CDN profile that caches content from a storage account. Users in Europe report that images load slowly. You need to improve performance for European users. What should you do?

Question 79easymultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You are monitoring an Azure App Service using Application Insights. You want to alert when the average server response time exceeds 2 seconds over a 5-minute window. What should you create?

Question 80mediummulti select
Read the full Monitor, troubleshoot, and optimize solutions explanation →

Which TWO actions should you take to optimize costs for an Azure SQL Database that is underutilized? (Choose two.)

Question 81hardmulti select
Read the full Monitor, troubleshoot, and optimize solutions explanation →

Which THREE metrics should you monitor to determine if an Azure Kubernetes Service (AKS) cluster is running optimally? (Choose three.)

Question 82easymulti select
Read the full Monitor, troubleshoot, and optimize solutions explanation →

Which TWO actions can help you reduce latency for a globally distributed web application? (Choose two.)

Question 83hardmulti select
Read the full Monitor, troubleshoot, and optimize solutions explanation →

Which THREE tools can you use to diagnose performance issues in an Azure App Service? (Choose three.)

Question 84mediummulti select
Read the full Monitor, troubleshoot, and optimize solutions explanation →

Which TWO approaches can help you optimize the cost of Azure Storage accounts that store infrequently accessed data? (Choose two.)

Question 85mediummultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

Your team monitors Azure Functions with Application Insights. After a recent deployment, cold start latency increased. Which feature should you enable to mitigate this?

Question 86hardmultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You deploy a microservices architecture on Azure Kubernetes Service (AKS). Some pods report OOMKilled errors. Which diagnostic step should you take first?

Question 87easymultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You need to diagnose why an Azure App Service web app returns HTTP 503 errors during peak traffic. Which Application Insights feature should you use?

Question 88hardmultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You are optimizing an Azure SQL Database that runs a heavy reporting workload. Queries are slow due to high logical reads. Which index strategy should you recommend?

Question 89mediummultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

Your Azure Kubernetes Service (AKS) cluster experiences node failures. Which Azure service provides automated node repair?

Question 90easymultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You deploy a web app to Azure App Service. Users report intermittent 500 errors. How should you enable detailed error logging?

Question 91hardmultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You need to reduce costs for an Azure Functions app that runs intermittently. The current Consumption plan bills for execution time. Which change would be MOST cost-effective?

Question 92mediummultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

Your Azure Logic Apps workflow fails intermittently with timeout errors. What should you do to improve reliability?

Question 93easymultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You need to monitor the performance of an Azure App Service web app. Which metric indicates high CPU usage?

Question 94mediummulti select
Read the full Monitor, troubleshoot, and optimize solutions explanation →

Which TWO Azure services can be used to monitor and diagnose performance issues in an Azure Kubernetes Service (AKS) cluster?

Question 95hardmulti select
Read the full Monitor, troubleshoot, and optimize solutions explanation →

Which THREE actions should you take to optimize cost for an Azure Functions app that processes messages from a queue?

Question 96mediummulti select
Read the full Monitor, troubleshoot, and optimize solutions explanation →

Which TWO Azure Monitor features can help troubleshoot a web app that returns slow response times intermittently?

Question 97hardmultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

Refer to the exhibit. You deployed an Azure Storage account with this ARM template. Users outside the allowed IP range receive '403 Forbidden' errors. What is the MOST likely cause?

Exhibit

{
  "name": "mystorageaccount",
  "kind": "StorageV2",
  "properties": {
    "accessTier": "Cool",
    "supportsHttpsTrafficOnly": true,
    "minimumTlsVersion": "TLS1_2",
    "networkAcls": {
      "bypass": "AzureServices",
      "defaultAction": "Deny",
      "ipRules": [
        {
          "value": "203.0.113.0/24",
          "action": "Allow"
        }
      ],
      "virtualNetworkRules": []
    }
  }
}
Question 98mediummultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

Refer to the exhibit. You run this KQL query in Azure Monitor Logs. What does the timechart display?

Exhibit

requests
| where timestamp > ago(1h)
| summarize count() by bin(timestamp, 5m), resultCode
| render timechart
Question 99hardmultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

Refer to the exhibit. You run these Azure CLI commands for an Azure Function app. When the app is accessed from https://app.contoso.com, what is the expected behavior?

Network Topology
az functionapp config setname myFunctionAppresource-group myRGaz functionapp cors addftps-state AllAllowedallowed-origins https://app.contoso.com
Question 100mediummultiple choice
Read the full network assurance explanation →

Your application running on Azure App Service is experiencing intermittent timeouts. You have configured Application Insights to collect telemetry. Which metric should you analyze in the Azure portal to identify the slowest dependencies?

Question 101hardmultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You deploy a microservices application to Azure Kubernetes Service (AKS). The application uses Azure Cache for Redis to store session state. Users report that they are frequently logged out. You suspect that the session data is being evicted from the cache. Which configuration change should you make to reduce evictions?

Question 102easymultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You need to monitor the CPU and memory usage of an Azure Virtual Machine (VM) over the last 30 days. Which Azure service should you use?

Question 103hardmultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

Your team uses Azure DevOps to deploy a web app to Azure App Service. The deployment fails intermittently with a '500 Internal Server Error' after successful code upload. You want to capture a memory dump of the process when the error occurs. What should you configure?

Question 104mediummultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

Your Azure Functions app (running on the Consumption plan) processes messages from an Azure Storage queue. Occasionally, the function fails due to a timeout after 5 minutes. You need to increase the maximum execution time without changing the plan. What should you do?

Question 105easymultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You are using Azure Application Insights to monitor a web application. You need to create a custom dashboard that shows the number of failed requests per endpoint over the last 24 hours. Which query language should you use?

Question 106mediummultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

Your team is using Azure DevOps to deploy an Azure Kubernetes Service (AKS) cluster. You want to automatically roll back a deployment if the new version causes a high error rate. Which Azure service should you use to implement this?

Question 107hardmultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

Your application uses Azure Cosmos DB with the SQL API. You notice that read requests are being throttled (HTTP 429) during peak hours. You need to improve read performance without changing the application code. Which action should you take?

Question 108easymultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You are troubleshooting a slow web application hosted on Azure App Service. The application uses Azure SQL Database. You suspect that the database queries are taking too long. Which Azure Monitor feature should you use to identify slow queries?

Question 109hardmultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

Your Azure Functions app uses Durable Functions to orchestrate a workflow. The orchestration sometimes fails with a 'FunctionRuntimeException' due to a timeout. You need to increase the maximum orchestration time. What should you modify?

Question 110mediummulti select
Read the full Monitor, troubleshoot, and optimize solutions explanation →

Which TWO actions should you take to reduce the cost of an Azure App Service plan that is underutilized?

Question 111hardmulti select
Read the full Monitor, troubleshoot, and optimize solutions explanation →

Which THREE features of Azure Monitor can help you diagnose a performance issue in an Azure Virtual Machine?

Question 112hardmultiple choice
Read the full network assurance explanation →

You are a developer for a large e-commerce company. The company has a global customer base and runs a critical web application on Azure App Service (Premium v3 plan) deployed in multiple regions. The application uses Azure Cosmos DB (multi-region writes enabled) for product catalog and session state. Recently, the operations team reported that during peak shopping hours (e.g., Black Friday), the application becomes slow and some users experience timeouts. You have implemented Application Insights to collect telemetry. After analyzing the data, you find that the Cosmos DB write operations are experiencing high latency (average 200ms) and occasional throttling (429 errors). The read latency is acceptable. The App Service instances are scaled out to 20 instances during peak, and CPU usage is around 70%. You need to optimize the solution to reduce write latency and eliminate throttling without over-provisioning resources. The solution must be cost-effective and require minimal code changes. What should you do?

Question 113easymultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

Your application running on Azure App Service is experiencing intermittent high latency. You have enabled Application Insights and noticed that the 'Server response time' metric spikes during peak hours. What is the most likely cause of this issue?

Question 114mediummultiple choice
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You are developing a solution that uses Azure Functions with a consumption plan. The function processes messages from an Azure Service Bus queue. During a load test, you notice that the function takes a long time to start processing messages after a period of inactivity. What is the most likely cause of this cold start delay?

Question 115easymulti select
Read the full Monitor, troubleshoot, and optimize solutions explanation →

You are monitoring an Azure App Service web app that is experiencing intermittent high CPU usage. You need to configure alerts and troubleshoot the issue. Which TWO actions should you take? (Choose two.)

Question 116mediummultiple choice
Read the full NAT/PAT explanation →

You are a developer for a company that runs a critical e-commerce application on Azure. The application consists of an Azure App Service web app, an Azure SQL Database, and an Azure Cache for Redis. The web app experiences occasional performance degradation that you suspect is due to inefficient database queries caused by caching issues. You have enabled Application Insights on the web app. You need to identify the root cause of the performance issues and optimize the solution. The solution must minimize cost and administrative overhead. You have the following options:

Option A: Configure Azure SQL Database Intelligent Insights to automatically tune database queries. Option B: Use Application Insights Profiler to capture and analyze database query performance. Option C: Implement Redis cache-aside pattern and ensure that all database queries check the cache first. Option D: Enable Azure SQL Database Query Performance Insight to identify the most costly queries and then implement caching.

Which option should you recommend?

Practice tests

Scored 10-question sessions with instant feedback and explanations.

AZ-204 Practice Test 1 — 10 Questions→AZ-204 Practice Test 2 — 10 Questions→AZ-204 Practice Test 3 — 10 Questions→AZ-204 Practice Test 4 — 10 Questions→AZ-204 Practice Test 5 — 10 Questions→AZ-204 Practice Exam 1 — 20 Questions→AZ-204 Practice Exam 2 — 20 Questions→AZ-204 Practice Exam 3 — 20 Questions→AZ-204 Practice Exam 4 — 20 Questions→Free AZ-204 Practice Test 1 — 30 Questions→Free AZ-204 Practice Test 2 — 30 Questions→Free AZ-204 Practice Test 3 — 30 Questions→AZ-204 Practice Questions 1 — 50 Questions→AZ-204 Practice Questions 2 — 50 Questions→AZ-204 Exam Simulation 1 — 100 Questions→

Practice by domain

Each domain maps to a weighted exam section. Focus on the domain where you are weakest.

Develop Azure compute solutionsDevelop for Azure storageImplement Azure securityConnect to and consume Azure services and third-party servicesMonitor, troubleshoot, and optimize Azure solutions

Practice by scenario

Filter questions by type — troubleshooting, exhibit, drag-and-drop, PBQ, ACLs, OSPF, and more.

Browse scenarios→

Continue studying

All Monitor, troubleshoot, and optimize Azure solutions setsAll Monitor, troubleshoot, and optimize Azure solutions questionsAZ-204 Practice Hub