# Azure High Availability, Backup, Monitoring & Cost Management

> Intermediate Azure operations and architecture mastery for AZ-104 and AZ-305 covering composite SLA mathematics, Region Pairs, Azure Site Recovery (RTO/RPO), Azure Backup, Azure Monitor, Log Analytics (KQL), Application Insights, Network Watcher, Reservations/Savings Plans, Cosmos DB consistency, and Azure SQL options.

- **Canonical URL:** https://flashcards.world/flashcards/sets/80eab4d7-0a07-4d6c-aff3-6b060cb0815b/
- **Markdown URL:** https://flashcards.world/flashcards/sets/80eab4d7-0a07-4d6c-aff3-6b060cb0815b.md
- **Category:** Microsoft Azure (AZ-900 / AZ-104), Google Cloud (GCP ACE) & Terraform IaC
- **Level:** intermediate
- **Languages:** en → en
- **Total Cards:** 32

## Flashcards (32 Cards)

| # | Front (Term / Prompt) | Back (Definition / Answer) | Example | Multiple-Choice Options |
| :--- | :--- | :--- | :--- | :--- |
| 1 | Compare Azure Reservations (Reserved Instances), Azure Savings Plans for Compute, and Azure Spot VMs. | Azure Reservations (1 or 3 years): Up to 72% discount by committing to a SPECIFIC VM family/size and region (supports Instance Size Flexibility within the same VM series). Savings Plans for Compute (1 or 3 years): Up to 65% discount by committing to a fixed hourly spend ($/hr) across ANY compute service (VMs, Dedicated Host, Container Instances, App Service Premium, Functions Premium) in ANY region. Spot VMs: Up to 90% discount using unused capacity, but Azure can evict the VM with 30 seconds notice. |  |  |
| 2 | What is Azure Application Insights and what features do Live Metrics Stream, Availability Tests, and Application Map provide? | Application Insights is an OpenTelemetry-based Application Performance Monitoring (APM) service in Azure Monitor. Live Metrics Stream provides real-time (1-second latency) request/failure/CPU telemetry with zero ingestion cost. Availability Tests (URL Ping / Standard / Custom TrackAvailability) probe web endpoints from global locations. Application Map visualizes distributed dependency topologies and bottlenecks across microservices and databases. |  |  |
| 3 | Define Recovery Time Objective (RTO) and Recovery Point Objective (RPO) in Disaster Recovery planning. | RTO (Recovery Time Objective) is the maximum acceptable duration of downtime after a disaster before business operations must be restored (e.g., 2 hours to bring services back online). RPO (Recovery Point Objective) is the maximum acceptable age of data lost due to a disaster (e.g., an RPO of 15 minutes means backups/replication must occur at least every 15 minutes). |  |  |
| 4 | Compare the two stages of an Azure VM Backup in a Recovery Services Vault: Snapshot Tier vs. Vault Tier. | Stage 1 (Snapshot): Azure Backup takes an instant incremental snapshot stored locally alongside the VM's disks for up to 1–5 days, enabling 'Instant Restore' without waiting for data transfer from the vault. Stage 2 (Vault): The snapshot is transferred asynchronously into the Recovery Services Vault for long-term retention. |  |  |
| 5 | How does Azure Site Recovery (ASR) differ from Azure Backup? | Azure Backup creates periodic point-in-time recovery points (typically daily or multi-hour RPO) to protect against accidental deletion, corruption, or ransomware. Azure Site Recovery (ASR) provides continuous block-level replication (RPO of seconds/minutes) and automated orchestration runbooks to fail over and fail back entire running VMs across Azure regions or from VMware/Hyper-V to Azure. |  |  |
| 6 | Compare the three main Azure SQL deployment options: SQL on Azure VMs (IaaS), Azure SQL Managed Instance (PaaS), and Azure SQL Database (PaaS). | SQL on Azure VMs (IaaS): 100% SQL Server compatibility and full OS/instance control; best for lift-and-shift requiring OS-level agents or SSRS/SSAS. SQL Managed Instance (PaaS): Near-100% SQL Server engine compatibility (supports SQL Agent, cross-database queries, CLR, native VNet injection) with automated patching/backups. Azure SQL Database (PaaS): Database-scoped modern cloud apps, supports Serverless scale-to-zero, Hyperscale (up to 100 TB), and Elastic Pools. |  |  |
| 7 | How do Request Units (RUs) and Partition Keys work in Azure Cosmos DB? | A Request Unit (RU) is a normalized currency abstracting CPU, IOPS, and memory required to perform database operations (1 RU = reading a 1 KB item by its ID and Partition Key). Cosmos DB scales horizontally by distributing logical partitions across physical partitions using the Partition Key; choosing a high-cardinality Partition Key that distributes both storage (max 20 GB per logical partition) and request volume evenly is essential to avoid 'hot partitions' (HTTP 429). |  |  |
| 8 | Compare the three primary log categories in Azure Monitor: Activity Logs, Resource (Diagnostic) Logs, and Microsoft Entra Logs. | Activity Logs: Subscription-level control-plane events (WHO created, updated, or deleted an ARM resource and WHEN; retained 90 days free). Resource Logs (formerly Diagnostic Logs): Data-plane operations occurring INSIDE a specific resource (e.g., Key Vault secret reads, NSG flows, SQL queries; must be explicitly enabled via Diagnostic Settings). Entra Logs: Sign-in, Audit, and Provisioning logs for identity events. |  |  |
| 9 | What is Soft Delete in an Azure Recovery Services Vault and how long is deleted backup data retained? | When Soft Delete is enabled on a Recovery Services Vault (and can be locked as 'Always On'), if a malicious actor or admin deletes a VM's backup data, the backup items and recovery points are retained in a soft-deleted state for an additional 14 days (configurable up to 180 days) during which they can be undeleted with zero data loss. |  |  |
| 10 | How do you calculate the composite SLA for Azure services deployed in series (dependent chain) versus in parallel (redundant active-active/failover)? | In Series (both must be up): Multiply individual SLAs ($SLA_{\text{total}} = SLA_A \times SLA_B$). For example, Web App (99.95%) + SQL DB (99.99%) = $0.9995 \times 0.9999 = 99.94\%$. In Parallel (redundant, only one must be up): $SLA_{\text{total}} = 1 - (1 - SLA_A) \times (1 - SLA_B)$. Two 99.9% systems in parallel yield $1 - (0.001 \times 0.001) = 99.9999\%$. |  |  |
| 11 | What is the Azure Hybrid Benefit (AHB) and what workloads qualify for it? | Azure Hybrid Benefit allows customers to bring existing on-premises Windows Server and SQL Server licenses with active Software Assurance (or qualifying Red Hat Enterprise Linux / SUSE Linux subscriptions) to Azure VMs, Azure SQL Database, and Azure SQL Managed Instance, eliminating the OS/SQL software license component of the cloud hourly rate (saving up to 40–85% when combined with Reservations). |  |  |
| 12 | What is Azure Update Manager and how does it improve over the legacy Automation Update Management solution? | Azure Update Manager is a native, standalone Azure service (no longer dependent on Log Analytics Workspaces or Azure Automation accounts) that manages OS patching for Windows and Linux VMs across Azure and Azure Arc-enabled servers. It uses an Azure compute extension, supports customer-defined maintenance configurations, dynamic scopes, hotpatching on Windows Server Azure Edition, and one-click on-demand assessment/patching. |  |  |
| 13 | List the five consistency levels in Azure Cosmos DB from strongest to weakest. | 1. Strong (linearizability; reads are guaranteed to return the most recent committed write globally; highest latency/RU cost, cannot span multiple regions with lowest RPO); 2. Bounded Staleness (reads lag behind writes by at most $K$ versions or $T$ time interval); 3. Session (default; monotonic reads, monotonic writes, and read-your-own-writes within a client session); 4. Consistent Prefix (updates returned in order without gaps); 5. Eventual (lowest latency, out-of-order reads possible). |  |  |
| 14 | What language is used to query Azure Monitor Log Analytics, and what is the difference between `where`, `summarize`, `project`, and `extend`? | Kusto Query Language (KQL). `where` filters rows based on predicates (like SQL `WHERE`); `summarize` aggregates rows using functions like `count()`, `avg()`, `dcount()`, or `percentile()` grouped `by` columns; `project` selects, renames, or drops specific output columns (like SQL `SELECT`); `extend` calculates and appends new computed columns while keeping all existing columns. |  |  |
| 15 | What diagnostic tools are included in Azure Network Watcher for troubleshooting VNet connectivity? | 1. IP Flow Verify: Checks if a packet is allowed or denied to/from a VM by evaluating effective NSG rules and returns the exact blocking rule. 2. Next Hop: Shows the effective route (System or UDR) for a destination IP. 3. Connection Troubleshoot / Connection Monitor: Tests end-to-end TCP/ICMP connectivity and latency. 4. Packet Capture: Remotely captures `.cap` files on a VM via extension. 5. VNet / NSG Flow Logs: Logs 5-tuple traffic flows to Storage/Traffic Analytics. |  |  |
| 16 | What is the difference between Azure Service Health, Azure Status, and Azure Resource Health? | Azure Status (`status.azure.com`): Public global dashboard showing broad outages across all Azure regions and services. Azure Service Health: Personalized view of Azure platform incidents and planned maintenance affecting ONLY the subscriptions, regions, and services you actually use (supports Service Health Alerts). Azure Resource Health: Diagnoses the current and past health of an INDIVIDUAL resource instance (e.g., whether a specific VM stopped due to a user action vs. a host hardware failure). |  |  |
| 17 | What happens when an Azure Cost Management Budget threshold is exceeded? | By default, exceeding an Azure Budget threshold only triggers email notifications to configured recipients; it does NOT automatically stop or delete resources. To automate cost enforcement (such as shutting down dev/test VMs when a budget hits 100%), you must attach an Action Group to the budget threshold that triggers an Azure Automation Runbook, Logic App, or Azure Function. |  |  |
| 18 | What are the five categories of recommendations provided by Azure Advisor? | Aligned with the Azure Well-Architected Framework: 1. Reliability (High Availability); 2. Security (integrated with Defender for Cloud); 3. Performance; 4. Cost (e.g., right-sizing or shutting down idle VMs, buying Reservations); 5. Operational Excellence. |  |  |
| 19 | What is the difference between the Azure Backup MARS Agent, MABS (Azure Backup Server), and Azure VM Backup Extension? | VM Backup Extension (`VMSnapshot` / `VMSnapshotLinux`): Backs up entire Azure IaaS VMs directly at the fabric level without an OS agent. MARS (Microsoft Azure Recovery Services) Agent: Installed inside Windows OS (on-prem or Azure VM) to back up specific files, folders, and System State (up to 3 times/day). MABS: Application-aware backup server for on-prem VMware, Hyper-V, SQL, Exchange, and SharePoint. |  |  |
| 20 | Compare Azure Key Vault Standard vs. Premium vs. Managed HSM, and distinguish Keys, Secrets, and Certificates. | Standard Tier encrypts using software-protected keys; Premium Tier adds FIPS 140-2 Level 2/3 Hardware Security Module (HSM)-backed keys; Managed HSM provides single-tenant, dedicated FIPS 140-2 Level 3 HSMs. Secrets store arbitrary strings (<25 KB) like passwords, API keys, and connection strings; Keys store cryptographic keys (RSA/EC) for encryption/signing; Certificates manage x509 TLS/SSL certificates with auto-renewal. |  |  |
| 21 | What are the single-instance SLAs for an Azure VM depending on the Managed Disk tier used? | A single Azure VM (not in an Availability Set or Zone) still receives an SLA if all operating system and data disks use Managed Disks: 99.9% with Ultra Disk or Premium SSD; 99.5% with Standard SSD; and 95.0% with Standard HDD. |  |  |
| 22 | What is an Azure Region Pair and what operational benefits does it provide? | Most Azure Regions are paired with another region in the same geography (typically 300+ miles apart, e.g., East US & West US). Benefits include: sequential platform updates (only one region in a pair is updated at a time), prioritized recovery of at least one region during widespread outages, data residency compliance within the same legal jurisdiction, and built-in target for GRS/GZRS replication. |  |  |
| 23 | Why should you enables both Soft Delete and Purge Protection on an Azure Key Vault? | Soft Delete (enabled by default on all new Key Vaults, 7–90 day retention) retains deleted vaults and objects so they can be recovered after accidental deletion. However, without Purge Protection, an administrator or attacker with purge permissions can permanently destroy a soft-deleted vault or key immediately. Enabling Purge Protection forces the retention period to elapse before permanent deletion is possible, which is mandatory for Customer-Managed Keys (CMK). |  |  |
| 24 | Compare the Azure Pricing Calculator and the Total Cost of Ownership (TCO) Calculator. | Pricing Calculator: Estimates the monthly hourly/consumption cost of specific Azure cloud architectures and configurations. TCO Calculator: Compares the cost of running an existing on-premises datacenter infrastructure (servers, storage, networking, electricity, IT labor) over 1 to 5 years against migrating those workloads to Azure, producing an ROI/savings report for executives. |  |  |
| 25 | What is an Azure Monitor Action Group vs. an Alert Processing Rule? | An Action Group defines WHAT notifications (Email, SMS, Push, Voice) and automated actions (Webhook, Azure Function, Logic App, Automation Runbook, ITSM, Event Hub) are triggered when an alert fires. An Alert Processing Rule (formerly Action Rules) modifies fired alerts at scale—either adding an Action Group to matching alerts or suppressing notifications during planned maintenance windows. |  |  |
| 26 | Compare Active Geo-Replication and Auto-Failover Groups in Azure SQL Database. | Active Geo-Replication configures up to 4 readable secondary replicas per individual database, requiring manual failover and connection string updates per database. Auto-Failover Groups manage replication and automatic failover for a group of databases (or an entire Elastic Pool) simultaneously, providing stable read-write (`<group>.database.windows.net`) and read-only (`<group>.secondary.database.windows.net`) listener endpoints that do not change on failover. |  |  |
| 27 | How has the Azure Monitor Agent (AMA) with Data Collection Rules (DCRs) replaced the legacy Log Analytics (MMA/OMS) Agent? | The legacy MMA agent bound a VM directly to workspaces and collected all defined performance counters globally. AMA uses centralized Data Collection Rules (DCRs) as ARM resources, allowing you to filter events (via XPath queries for Windows Event Logs or facility/severity for Linux Syslog), transform data at ingestion time using KQL, and send different telemetry streams to multiple Log Analytics workspaces or Azure Monitor Metrics. |  |  |
| 28 | What is Azure Arc and how does it extend Azure governance to on-premises and multi-cloud environments? | Azure Arc projects non-Azure resources (Windows/Linux servers, Kubernetes clusters, SQL Server instances, VMware vSphere/Azure Stack HCI) into Azure Resource Manager as first-class ARM resources with Resource IDs. This allows managing them with Azure Policy (Guest Configuration), RBAC, tags, Azure Monitor (AMA), Defender for Cloud, and Update Manager. |  |  |
| 29 | Compare the four types of Azure Monitor Alert Rules and their trade-offs in speed and cost. | 1. Metric Alerts: Evaluate numeric time-series metrics (e.g., CPU > 85% over 5 mins); fastest (near real-time, <1 min) and lowest cost. 2. Log Search Alerts: Run KQL queries on a schedule against Log Analytics; flexible and stateful, higher cost. 3. Activity Log Alerts: Trigger on control-plane events (e.g., VM deleted) or Service Health events; free. 4. Smart Detection Alerts: Automated anomaly alerts in Application Insights. |  |  |
| 30 | What destinations can you route Azure Monitor Activity Logs and Resource Logs to using Diagnostic Settings? | 1. Log Analytics Workspace (for KQL querying and log alerts); 2. Azure Storage Account (for cheap long-term archival and compliance retention); 3. Azure Event Hubs (for streaming logs in real time to external SIEMs like Splunk, Datadog, or Microsoft Sentinel); 4. Partner solutions. |  |  |
| 31 | Compare the four core Azure messaging services: Event Grid, Event Hubs, Service Bus, and Queue Storage. | Service Bus: Enterprise transactional message broker (Queues and Pub/Sub Topics) supporting FIFO sessions, dead-lettering, duplicate detection, and AMQP transactions. Queue Storage: Simple, low-cost HTTP REST queue storing millions of messages (>80 GB) up to 64 KB each. Event Grid: Serverless reactive event router (push model, CloudEvents) for discrete state changes. Event Hubs: High-throughput big-data event streaming platform (millions of events/sec, partitioned log, Apache Kafka compatible). |  |  |
| 32 | Compare DTU-based and vCore-based purchasing models in Azure SQL Database. | DTU (Database Transaction Unit) model: Bundles compute, memory, and I/O into a single blended metric across Basic, Standard, and Premium tiers (simple, pre-configured). vCore (Virtual Core) model: Lets you independently choose compute generations, vCores, memory, and storage across General Purpose, Business Critical (in-memory OLTP, local SSD replicas), and Hyperscale tiers, and is required to apply Azure Hybrid Benefit or Reservations. |  |  |

---
Study this deck interactively with FSRS-6 spaced repetition, audio review, and multiple-choice mode at [Flashcards World](https://flashcards.world/flashcards/sets/80eab4d7-0a07-4d6c-aff3-6b060cb0815b/).
