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

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

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?

⚠ Common exam trap

A common mix-up: candidates confuse Azure Monitor (which monitors application metrics and can trigger automated actions) with Azure Service Health (which only monitors Azure platform health, not your application's error rate).

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

Azure Monitor

Azure Monitor, specifically Application Insights, can be configured with alert rules that trigger on metrics like server error rate. When the error rate exceeds a threshold, an Azure Monitor alert can invoke an Azure Automation runbook or a webhook to initiate a Kubernetes rollback via `kubectl rollout undo` or a Helm rollback. This provides automated, event-driven rollback without manual intervention.

Answer analysis

Option-by-option breakdown

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

  • Azure Service Health

    Why it's wrong here

    Azure Service Health provides personalized alerts and guidance when Azure service issues, planned maintenance, or health advisories affect your resources. It focuses on the underlying Azure platform's health and availability, not application-level deployment failures or performance degradation within your deployed Kubernetes cluster. Therefore, it cannot directly detect or trigger rollbacks for issues specific to a new application deployment.

  • Azure Monitor

    Why this is correct

    Azure Monitor is the comprehensive observability platform for collecting, analyzing, and acting on telemetry data from your Azure resources, including AKS. It can ingest metrics like HTTP error rates, CPU utilization, and pod restart counts, allowing you to define alert rules that trigger when deployment health degrades. These alerts can then invoke webhooks or Azure Functions, which an Azure DevOps pipeline can use as a signal to automatically initiate a rollback to a previously stable version of your application.

  • Azure Traffic Manager

    Why it's wrong here

    Azure Traffic Manager is a DNS-based global load balancer that distributes user traffic across multiple service endpoints, typically for geographic routing or high availability across regions. Its function is to direct incoming requests to the most appropriate endpoint based on configured routing methods, not to monitor the internal health of an application deployment within a Kubernetes cluster. Consequently, it cannot detect application-specific deployment failures or initiate a rollback process.

  • Azure Policy

    Why it's wrong here

    Azure Policy enforces organizational standards and assesses compliance for Azure resources at scale, ensuring configurations adhere to defined rules and governance requirements. It operates at the management plane, evaluating resource properties during creation or modification, but does not monitor runtime application behavior or performance metrics. Therefore, Azure Policy cannot detect a faulty application deployment within AKS or trigger an automated rollback based on operational issues.

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 →

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.