Microsoft Azure Services and Architecture Questions
Microsoft Azure's core service catalog and architectural patterns: Virtual Machines, managed Kubernetes (AKS), App Service and Azure Functions, Storage accounts and managed disks, Azure SQL and Cosmos DB, VNets with hybrid connectivity and global load balancing, Microsoft Entra ID and RBAC, and Key Vault secrets and encryption. Covers Azure service selection, infrastructure as code (ARM, Bicep, Terraform), observability with Azure Monitor and Kusto queries, cost governance and Azure Policy, the Azure Well-Architected design principles, and hybrid management via Azure Arc, common in enterprise Azure estates. For provider-agnostic trade-offs, see the cross-cloud entries.
Design a secure Azure Container Registry (ACR) strategy for multiple teams requiring private access, geo-replication, automated image scanning, lifecycle cleanup, and CI integration. Include Private Link, role assignments, retention policies, replication costs, and how to support air-gapped regions.
Sample Answer
Direct answer
Run one Premium-tier Azure Container Registry (ACR) per organization (not per team), because Premium is the tier that unlocks geo-replication, Private Link, and content-trust features together, and multiple registries would fragment RBAC, vulnerability scanning coverage, and image provenance instead of centralizing it. Give each team its own repository namespace inside that one registry (e.g., team-a/service-x) and scope RBAC at the repository level, not the registry level, so teams get isolation without needing separate infrastructure.
Design
- Tier: Premium is required, non-negotiably, for geo-replication and for Private Link; there's no way to add those to a Basic or Standard registry later without effectively recreating it as Premium.
- Private access: a Private Endpoint per region the registry is geo-replicated into, each with its own private DNS zone entry, so pulls from AKS (Azure Kubernetes Service) or App Service in each region stay off the public internet. Disable the public data endpoint once private access is validated.
- Geo-replication: ACR geo-replication is active-active, every geo-replica accepts pushes and pulls, not a primary/secondary model, and consistency between replicas is eventual (a push in one region can take a short time to appear in another). That has a real operational consequence for CI/CD: a pipeline that pushes an image in region A and immediately deploys from region B can hit "manifest unknown" before replication catches up. Mitigate with retry-with-backoff on the pull side, or by pinning a given pipeline run to one regional endpoint end-to-end so the push and the deploy-time pull always hit the same replica.
- RBAC: use repository-scoped tokens or Entra ID role assignments scoped to a resource path (
AcrPull/AcrPushat the repository level via scope maps) so team A's pipeline identity can push toteam-a/*and pull from shared base images, but cannot push toteam-b/*. - Automated image scanning: enable Microsoft Defender for Containers' registry scanning (or a third-party scanner wired into the same pipeline) so every pushed image is scanned for known CVEs before it's allowed to deploy; gate the CD pipeline on scan results for anything above a defined severity, rather than scanning after the fact with no enforcement.
- Lifecycle/retention: ACR Tasks or a scheduled cleanup (the built-in retention policy for untagged manifests, plus a custom purge command for tagged-but-stale images past an age threshold) so the registry doesn't grow unbounded; untagged manifests left behind by CI overwrites are the most common source of registry bloat.
- CI integration: pipeline identities authenticate via managed identity or a service principal with a scope map, never the registry's admin account (which should be disabled entirely once real RBAC is in place).
Worked example: cost and the replication/consistency trade-off
Storage cost under geo-replication is per-replica, not shared: pushing a 1 GiB image that replicates to 3 regions is billed as 3 GiB of storage, and the registry's storage quota for its SKU tier counts each replica separately too. So a team choosing "5 regions for lowest possible pull latency everywhere" versus "2 regions, one per major user cluster" isn't just a latency decision, it's roughly a 2.5x storage and cross-region transfer cost difference for the same image set; the right number of geo-replicas is however many regions actually run AKS/App Service consuming this registry, not "as many as possible for safety." On the consistency side: because replication is eventual, teams that need strict push-then-immediately-pull-elsewhere guarantees (a release pipeline that pushes and deploys to another region in the same run) should either add a short explicit wait-and-verify step (poll for the image manifest's presence in the target region before deploying) or target a single regional endpoint for that pipeline run end to end, rather than relying on the global endpoint's automatic routing to happen to land on an already-synced replica.
Air-gapped regions
Geo-replication and the global endpoint only work within one Azure cloud (public commercial cloud, Azure Government, Azure China, etc.); it cannot replicate across those sovereign-cloud boundaries, and it obviously cannot reach an environment with no network connectivity at all. For a genuinely air-gapped or sovereign-boundary region, the pattern is disconnected import/export rather than replication: build the image once, export it to a portable artifact (docker save/skopeo copy to a tarball, or an OCI artifact bundle), physically or via a one-way transfer mechanism move it across the boundary, then docker load/az acr import (from a reachable source) into a separate registry instance that lives inside the air-gapped environment. That separate registry needs its own scanning, retention, and RBAC configuration since it is, operationally, a different registry, not a replica of the main one.
Trade-offs and pitfalls
The most common mistake is standing up a separate ACR per team "for isolation," which actually produces worse isolation in practice: RBAC, vulnerability scanning policy, and retention rules now have to be maintained N times and drift apart, while repository-scoped RBAC on one shared Premium registry gives the same team-level isolation with one place to enforce policy consistently. The second common mistake is enabling geo-replication to every region "just in case" without accounting for the per-replica storage cost, which quietly becomes one of the larger line items in the Azure bill for a registry with a large image estate.
Kusto Query task: Using Log Analytics table 'AzureDiagnostics', write a Kusto Query to return the top 5 resources producing the most 'Error' level logs in the last 24 hours, with counts and percentage of total errors. Provide the query and explain how you'd convert it into an alert rule.
Sample Answer
Direct answer
The query below finds the top 5 resources by Error-level log count in the AzureDiagnostics table over the last 24 hours, with each resource's count and its percentage of the total error volume in that window. Grouping is done by the _ResourceId column (the resource's full ARM ID), which is the column that actually uniquely identifies a specific resource in this table; the more commonly guessed ResourceId is not the real column name.
Structured elaboration: approach and query
let window = 24h;
let errors = AzureDiagnostics
| where TimeGenerated >= ago(window)
| where Level == "Error";
let totalErrors = toscalar(errors | count);
errors
| summarize ErrorCount = count() by _ResourceId
| top 5 by ErrorCount desc
| extend PercentOfTotal = round(100.0 * ErrorCount / totalErrors, 2)
| project _ResourceId, ErrorCount, PercentOfTotal
Key points. The query computes totalErrors once with toscalar() over the whole 24-hour error set before grouping, so the percentage column is a true share of all errors in the window, not a share of just the top 5's combined count (a subtle but common mistake: computing the denominator only from the already-filtered top-5 rows instead of the full population). Level == "Error" is the correct filter for AzureDiagnostics because AzureDiagnostics is a shared table across many resource types that use "Azure Diagnostics mode" (Key Vault, Application Gateway, Azure Firewall, and others among them) and Level is one of the common columns present across that shared schema.
Edge cases. Not every resource that logs to AzureDiagnostics populates Level consistently; some resource types express severity differently (for example through a ResultType or a resource-specific status column instead), so this query only sees error volume for resource types that do populate Level, and a resource type that logs errors under a different column would silently show zero here rather than erroring out, which is worth checking with a quick AzureDiagnostics | where isnotempty(Level) | distinct ResourceType before relying on this query for a resource type you have not already confirmed uses Level. Also note that many Azure resource types have since moved to "resource-specific" diagnostic log tables instead of the shared AzureDiagnostics table (Microsoft's newer, recommended collection mode); a resource on resource-specific mode will not appear in AzureDiagnostics at all, so this query is scoped to whichever resources are still configured for Azure Diagnostics mode.
Worked example: converting this into an alert rule
- Create a scheduled query rule (
Microsoft.Insights/scheduledQueryRules) using this query (or a variant without thetop 5, since an alert usually should not silently cap itself to 5 resources and miss a 6th one also spiking). - Set the evaluation frequency and lookback window much shorter than 24 hours for an alert (e.g. evaluate every 15 minutes over a 15-minute window), since a 24-hour rolling window is good for a daily report but far too slow to catch an emerging problem for paging purposes; keep the 24-hour version as a scheduled report/Workbook, not the live alert.
- Configure the rule with "split by dimension" on
_ResourceIdso one rule definition fires a separate alert instance per resource that crosses the threshold, rather than one alert for "some resource somewhere is over threshold" that then requires a human to go re-run the query to find out which one. - Set the threshold as a count comparison, for example "number of rows with
ErrorCountgreater than a defined threshold, per resource, is greater than 0," and route the resulting alert to an action group scoped by resource type or owning team so the right people get paged. - Add a suppression window or a slightly higher threshold for any resource type known to log a noisy-but-harmless error pattern periodically, to avoid the alert becoming background noise the team starts ignoring.
Trade-offs and pitfalls
Because AzureDiagnostics is a shared, wide table across many resource types, a naive count() grouped only by _ResourceId conflates very different kinds of "errors" (a Key Vault access-denied event and an Application Gateway backend-health error look completely different in severity) into one ranked list; for anything beyond a first-pass triage view, also group by ResourceType or Category so the top-5 list distinguishes "many low-severity Key Vault throttling events" from "a handful of serious Application Gateway backend failures" rather than ranking them purely by raw count.
Describe the core components of Azure Monitor: metrics, logs, Application Insights, Log Analytics workspaces, diagnostic settings, and alerting. Explain which telemetry belongs in metrics vs logs vs distributed traces, and where you would store platform diagnostics versus application-specific logs for a microservices architecture.
Sample Answer
Direct answer
Azure Monitor is the umbrella platform built on two foundational data stores: metrics (lightweight, numeric, automatically collected time-series data) and logs (structured, queryable records sent to a Log Analytics workspace), with Application Insights as the application-performance-monitoring layer built on that same log store, diagnostic settings as the plumbing that routes a resource's own telemetry into logs, and alerting as the layer that turns a metric or a log query result into an action.
Structured elaboration
Metrics. Numeric values collected at regular intervals, such as CPU percent, request count, or queue length, stored in a dedicated time-series database, retained for a fixed window (typically 93 days), cheap to query, near real-time, and best for dashboards and fast-firing alerts, since metric alerts can evaluate in as little as one minute.
Logs. Structured event and text data, a specific HTTP request's trace, an exception stack, an audit trail entry, stored in a Log Analytics workspace and queried with Kusto Query Language (KQL). Richer and more flexible than metrics but higher latency, typically a few minutes before ingested data is queryable, and priced per gigabyte ingested plus a retention charge.
Application Insights. The application-performance-monitoring (APM) product built on the Log Analytics data platform, auto-instrumenting requests, dependencies (outbound calls to a database or another service), exceptions, and custom events from inside application code. It also provides distributed tracing, following one logical request as it crosses multiple microservices, correlated by an operation ID, so you can see the whole call chain for one slow request rather than one service's local view of it.
Log Analytics workspaces. The storage and query engine underneath both platform diagnostic logs and Application Insights telemetry. A workspace is also a security and cost boundary, since role-based access control (RBAC) controls who can query it and ingestion volume drives cost, so workspace topology, one central workspace versus one per team versus one per environment, is itself a design decision.
Diagnostic settings. The configuration on an individual Azure resource specifying which of its own log categories and metrics get exported, and to where: a Log Analytics workspace, a storage account for cheap long-term archive, or an Event Hub for streaming to a third-party security tool. Without a diagnostic setting, most platform resource logs are not retained anywhere at all.
Alerting. Metric alerts (fast, numeric threshold or dynamic anomaly detection), log alerts (a scheduled KQL query, evaluated on an interval as short as one minute, that fires when the result set meets a condition), and activity log alerts (fire on control-plane events, such as a resource being deleted). All three route through Action Groups, which fan out to email, SMS, a webhook, a function, or an incident-management tool.
Metrics versus logs versus distributed traces, and where telemetry belongs. Use metrics for anything you need to graph or alert on with sub-minute latency and low cost, such as CPU or request rate. Use logs for anything you need to search, correlate, or reconstruct after the fact, such as one failed request or a security event. Use distributed traces, a specific kind of log data correlated by operation ID, when the question is "why was this one request slow," which requires seeing every hop it took, not just an aggregate number from a single service. For a microservices architecture, route platform-level diagnostics (Kubernetes, a container-orchestration platform, control-plane logs; Application Gateway access logs; Key Vault audit logs; network security group flow logs) to a central, security-team-owned workspace shared by every service, since these are infrastructure-owned and need tenant-wide correlation. Route each application's own logs to a workspace its owning team controls day to day, but connect it into the same Azure Monitor backend so a single KQL query can still join a platform-level event with the application trace it affected, when needed.
Worked example
A checkout microservice's Application Insights trace shows a call to the orders database taking 4,200 ms against a normal baseline of 40 ms. The correlated distributed trace, same operation ID, shows this happened during a window when the platform-level Kubernetes node-pool logs, in the central workspace, show a node under memory pressure that evicted and rescheduled the pod mid-request. Neither stream alone explains it: a metrics dashboard alone would only show a P99 (99th-percentile, meaning 99% of requests were faster than this) latency spike with no cause, and the platform logs alone would show a pod eviction with no evidence of which request it affected. Joining the application trace and the platform log by timestamp and node name in one KQL query is what makes the root cause traceable.
Trade-offs and pitfalls
Application Insights applies adaptive sampling by default once ingestion volume crosses a threshold, keeping cost bounded but meaning some percentage of individual traces are simply never recorded, so a rare intermittent bug can be sampled out of existence. For anything needed for compliance or for reconstructing a specific incident, raise the sampling rate for that operation, or use an ingestion-time transformation to keep all of a narrow, high-value log category while sampling the rest. Retention is a similar trade-off: the default 30 to 90 day windows are usually fine for operational debugging but too short for a security investigation that starts months later, so security-relevant categories need an explicit, deliberately longer retention or archive policy, never left on the default by omission. On the incident-response side, an alert that only fires on a raw metric threshold with no linked runbook or query forces the on-call engineer to rebuild the diagnosis from scratch; a mature setup attaches the specific KQL query or workbook that answers "what to check first" directly to the alert, so the alert is the first step of the playbook, not just a notification.
Design an observability strategy for a globally distributed microservices platform on Azure: central vs local collection of telemetry, tracing and context propagation, sampling strategies to limit ingestion cost, metric/alert design, storage and retention policies, and per-team access controls. Discuss trade-offs between fidelity and cost and how you'd debug a cross-service latency spike.
Sample Answer
Direct answer
For a globally distributed microservices platform, collect broadly but selectively at the edge (each region keeps a short-lived, high-fidelity local copy of its own telemetry) and forward a deliberately reduced stream to a central store for cross-region analysis and alerting: 100% of metrics (they are cheap and small), a sampled slice of traces (full fidelity is not affordable at global scale), and only the log volume that earns its ingestion cost. Propagate trace context (W3C Trace Context / OpenTelemetry) end to end so a cross-service latency spike can be root-caused by following one trace across regions, not by manually correlating timestamps across separate logging systems.
flowchart TB
subgraph RegionA[Region: East US]
SvcA[Services] --> OtelA[OTel Collector local]
end
subgraph RegionB[Region: West Europe]
SvcB[Services] --> OtelB[OTel Collector local]
end
subgraph RegionC[Region: Southeast Asia]
SvcC[Services] --> OtelC[OTel Collector local]
end
OtelA -->|sampled traces + all metrics| Central[Central Log Analytics workspace]
OtelB -->|sampled traces + all metrics| Central
OtelC -->|sampled traces + all metrics| Central
OtelA -->|100pct traces, short retention| LocalLA_A[Regional workspace]
OtelB -->|100pct traces, short retention| LocalLA_B[Regional workspace]
OtelC -->|100pct traces, short retention| LocalLA_C[Regional workspace]
Central --> Workbooks[Workbooks and cross-region dashboards]
Central --> Alerts[Alert rules]
Structured elaboration
Central vs. local collection. Deploy an OpenTelemetry Collector (or the Azure Monitor Application Insights agent where OpenTelemetry is not yet standard across the fleet) in each region, writing full-fidelity telemetry to a regional Log Analytics workspace with short retention (7-14 days, enough for local on-call triage) and forwarding a filtered, sampled stream to a central workspace for cross-region correlation and longer retention. This avoids two failure modes at once: sending every byte cross-region (expensive egress, and a regional network partition takes down your ability to see that very region's telemetry) and keeping everything purely local (no way to see a pattern that spans regions, like a shared dependency degrading everywhere at once).
Tracing and context propagation. Standardize on OpenTelemetry's API/SDK across every service regardless of language, since a genuinely global platform is rarely single-language; a Go service, a Java service, and a .NET service must all emit and forward the same W3C traceparent/tracestate headers so a trace started in one region's edge service and continued through three more services in two other regions remains one logical trace. Anything that does not forward the header (an old service, a message queue hop without manual propagation, a third-party API gateway that strips unknown headers) breaks the chain at that point, so context propagation needs to be verified per hop, not assumed.
Sampling. Head-based sampling (deciding to keep or drop a trace at its start, before you know the outcome) is simple and cheap but risks dropping the rare, expensive, error-carrying traces you most want; tail-based sampling (buffering a trace briefly and deciding after seeing the outcome, keeping a much higher fraction of errors and high-latency traces than of routine fast successes) preserves the signal that matters at a much lower total volume, at the cost of running collectors that buffer spans, which itself uses memory and adds a small amount of latency to export. A common workable split: 100% of error traces, 100% of traces above a latency threshold (e.g. P95, the 95th-percentile latency: 95% of requests are faster than this value), and a small flat percentage (1-5%) of routine successful traces for baseline visibility, rather than one flat sampling rate applied uniformly.
Metric and alert design. Keep metrics unsampled (their volume is orders of magnitude smaller than trace/log volume) so alerting always has complete data; alert on customer-facing symptoms (error rate, latency percentiles) computed per region and cross-region, not only on a single global aggregate that can hide one region's problem inside a healthy global average.
Storage, retention, and access control. Tier retention by value: interactive-query retention (fast, more expensive) for the recent window operators actually query during an incident, a cheaper archive/basic tier for older data kept only for audit or rare historical investigation, and explicit deletion once even audit value expires. Per-team access control matters at genuinely global scale for two reasons beyond the obvious security one: cost accountability (a team can see and be measured on its own ingestion volume) and blast-radius containment (a misconfigured query or export job in one team's workspace should not be able to touch another team's data or budget).
Related scenario: cross-region Log Analytics workspace placement and egress cost. Where you place the central workspace is itself a cost and latency decision: co-locating it in one of the busier regions minimizes egress for that region's own forwarded data but means every other region pays cross-region egress to reach it; a genuinely global platform sometimes justifies two or three regional aggregation points feeding a smaller, more selective global rollup, rather than one single global workspace every region's collector writes to directly, trading a bit of query complexity (querying across a few workspaces) for materially lower cross-region bandwidth cost at scale.
Related scenario: OpenTelemetry and cross-language instrumentation. Because OpenTelemetry is vendor-neutral, this same collection layer exports to Azure Monitor today without locking every future choice to Azure: the OpenTelemetry Collector can fan out to Azure Monitor and, if a later requirement calls for it, to another backend simultaneously, which matters for a platform that expects to operate across cloud boundaries or simply wants to avoid being unable to leave.
Worked example: debugging a cross-service latency spike
- An alert fires on P95 latency for the public API exceeding its threshold in the APAC region specifically (not globally), because per-region alerting was configured rather than only a global aggregate.
- Open the Application Map / trace search filtered to that region and time window; tail-based sampling means the slow traces from that exact window are very likely present (they exceeded the latency threshold that guarantees retention), not lost to a flat 1% sample.
- Follow one representative slow trace end to end: it shows the APAC edge service calling a regional cache (fast), which calls a shared central pricing service in a different region (slow, high latency consistent with cross-region round-trip time), which calls a database (fast). The trace's span durations immediately localize the delay to the cross-region hop, not to any single service's own processing time.
- Cross-check with metrics: the shared pricing service's own regional health metrics are normal from its own region's point of view, confirming this is a network/topology problem (a service that should have a regional replica but does not) rather than a code-level regression in the pricing service itself.
- Root cause: a service was deployed as single-region when the platform's growth had made it a cross-region dependency for two other regions; the fix is architectural (regional replicas or a regional cache in front of it), not a code fix, and the trace is what made that visible in minutes rather than requiring a multi-day cross-team investigation.
Trade-offs and pitfalls
The central fidelity-vs-cost trade-off has no single right answer: more sampling and shorter retention save real money (ingestion is billed per GB) but the exact incident you need forensic detail for is the one an aggressive sampling policy most likely dropped, unless the tail-based/error-priority sampling described above is actually implemented rather than just a flat rate. The most common real-world failure is not choosing badly here; it is choosing well on paper and then discovering in an incident that trace context was silently broken at one hop months ago (a library upgrade stopped propagating the header, or a new message queue integration was never wired for propagation), so validate context propagation continuously (a synthetic canary transaction traced end to end on a schedule) rather than assuming a one-time integration stays correct forever.
How would you configure Azure Monitor alerts to minimize alert fatigue while ensuring that critical incidents surface immediately? Discuss alert grouping, dynamic thresholds, severity levels, suppression windows, action groups, and automated runbook playbooks for common problems.
Sample Answer
Direct answer
Reduce alert fatigue by making most alerts adaptive and grouped instead of static per-metric thresholds, reserving immediate, ungrouped, high-severity paging for the small set of signals that truly mean "a human must act right now." Concretely: use dynamic thresholds instead of hardcoded numbers wherever the metric has a predictable pattern, group related alerts so one incident produces one notification instead of twenty, assign a real severity scale and route only the top severities to paging, add suppression windows around known noisy periods (deploys, scheduled batch jobs), and attach an automated runbook to the alerts that have a known, safe first response so a human is only paged after automation has already tried the obvious fix.
Structured elaboration
Severity levels. Azure Monitor alerts carry a Sev0-Sev4 severity (0 = critical, 4 = verbose). The discipline that actually prevents fatigue is deciding, in advance and in writing, what each severity means operationally: Sev0/Sev1 pages a human immediately (production down, data loss risk); Sev2 opens a ticket and can wait for business hours; Sev3/Sev4 are dashboard-only or feed a weekly review. The failure mode this discipline avoids is a team that assigns everything Sev1 "to be safe," which is functionally identical to no severity scheme at all.
Dynamic thresholds. For metrics with daily/weekly seasonality (request rate, queue depth, checkout volume), a static "alert if over 1000/min" either fires constantly during normal peak traffic or misses a real anomaly during a normal trough. Azure Monitor's dynamic threshold alert type learns the metric's normal pattern over a rolling window and alerts on statistically significant deviation from that pattern, which tracks the metric's own seasonality automatically instead of requiring a human to keep tuning a fixed number every time traffic grows.
Alert grouping. A single root cause (a downstream dependency outage, a bad deploy) commonly trips many independent alert rules at once (elevated latency, elevated 5xx rate, elevated queue depth, a health-probe failure) which, ungrouped, is 4+ separate pages for one incident. Configure action group-level or alert-processing-rule grouping so correlated alerts within a short window collapse into one notification, and prefer designing alerts around symptoms a human would act on (elevated customer-facing error rate) over every internal signal that could theoretically indicate a problem.
Suppression windows. Alert processing rules can suppress notifications for a defined window (a deployment, a planned maintenance activity, a known-noisy nightly batch job) without disabling the underlying alert rule, so you keep the historical signal (useful for post-incident review) without paging anyone for a change you already know is happening.
Action groups and escalation. An action group should route by severity and by time (business hours vs. on-call), not send every alert to every channel; a Sev1 goes to the on-call phone/SMS/Teams incident channel, a Sev3 goes to a ticket queue nobody's phone buzzes for.
Automated runbook playbooks. For alerts with a known, safe, scriptable first response (restart an unhealthy instance, scale out a queue-backed worker pool, clear a specific cache), wire the alert's action group to an Azure Automation runbook or a Logic App that performs that response automatically and only escalates to a human if the automated remediation does not resolve the condition within a defined window. This converts a class of pages from "wake someone up" to "self-heals, and only pages if self-healing failed," which is the single biggest lever for reducing 3am pages for a well-understood, recurring problem.
Related scenario: multi-resource alert routing across AKS (Azure Kubernetes Service), SQL, and Storage. In a real environment with dozens of resources across several resource types, avoid one alert rule per resource; instead scope alert rules to a resource group or a subscription with dimension splitting (alert per Resource or ResourceId dimension from a single rule definition) so adding a new AKS node pool, database, or storage account is covered automatically rather than requiring someone to remember to clone another alert rule. Route by resource type and severity into distinct action groups (a SQL deadlock spike and an AKS pod crash-loop rarely need the same responder), but keep the escalation and suppression policy consistent across resource types so the on-call experience does not depend on which resource happened to break.
Worked example
A checkout API's 5xx rate normally sits under 0.5% except during two known nightly batch windows where it briefly spikes to 2% due to a maintenance job pausing a downstream cache. Static threshold "alert if 5xx rate > 1%" pages the on-call every night for a known, harmless spike. Fix: a dynamic-threshold alert on 5xx rate (learns the nightly pattern as normal), a suppression window during the documented maintenance job for the one static alert that must remain (a hard SLA, or service-level agreement, breach threshold at, say, 10%, which should still fire even during maintenance because a 10% breach is not "known noise"), and an automated runbook attached to the queue-depth alert for that same cache that pre-warms it before the maintenance job starts, addressing the root cause rather than just muting the symptom.
Trade-offs and pitfalls
Dynamic thresholds need a few weeks of representative history to learn a pattern; applying them to a brand-new resource or right after a major traffic-pattern change (a new marketing campaign, a new customer segment) produces worse alerting than a static threshold until the model relearns, so pin a temporary static threshold during that window rather than trusting a dynamic threshold with no real history. Over-aggressive suppression is the opposite failure: a suppression window broad enough to cover "any time we might be deploying" can hide a real incident that happens to coincide with a routine deploy; keep suppression windows as narrow and specific as the known-noisy event actually is. Automated runbooks that retry or restart without a cap can mask a worsening problem (a service that needs restarting every 10 minutes and never escalates because the runbook always "fixes" it) so every automated remediation needs an escalation trigger if it has fired more than N times in a period, not just a success/failure branch.
Unlock Full Question Bank
Get access to all 15 Microsoft Azure Services and Architecture interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.