Microsoft Azure (AZ-104 & AZ-305) — Compute, Virtual Networking, Cosmos DB & Enterprise Architecture

High-yield AZ-104 and AZ-305 flashcards covering Availability Sets vs. Availability Zones, VMSS, App Service slots, Container Apps vs. AKS, VNet Peering, NSGs/ASGs, Private vs. Service Endpoints, Load Balancers (ALB/AppGW/Front Door), ExpressRoute, Cosmos DB consistency levels, Azure SQL, and BCDR.

Category
Multi-Cloud & DevOps Architecture — Microsoft Azure (AZ-104 & AZ-305), Google Cloud (PCA & PDE), Kubernetes (CKA / CKAD) & HashiCorp Terraform Associate
Level
basic
Languages
en → en
Cards
32
Markdown
Microsoft Azure (AZ-104 & AZ-305) — Compute, Virtual Networking, Cosmos DB & Enterprise Architecture (.md)

Flashcards (32)

#Front (Term / Question)Back (Definition / Answer)ExampleMultiple-Choice Options
1Which Azure Network Watcher tool should an administrator use to diagnose why a VM cannot establish a TCP connection to a remote IP, vs. inspecting NSG traffic volume?Use 'IP Flow Verify' (NSG rule check) or 'Connection Troubleshoot' (end-to-end TCP check) for connectivity; use 'NSG Flow Logs' or 'Traffic Analytics' for volume.When a web VM cannot reach a backend SQL VM on port 1433, `IP Flow Verify` immediately pinpoints the exact custom NSG rule (`Deny-Subnet-CrossTalk`, priority 350) blocking the packet.
  • IP Flow Verify tests NSG rules quickly; Next Hop verifies UDR routing; Connection Troubleshoot tests end-to-end connectivity; NSG Flow Logs record 5-tuple flow records.
  • Use 'IP Flow Verify' (NSG rule check) or 'Connection Troubleshoot' (end-to-end TCP check) for connectivity; use 'NSG Flow Logs' or 'Traffic Analytics' for volume.
  • Next Hop shows whether traffic is routed to `VirtualAppliance`, `VNetPeering`, `Internet`, or `None` (blackholed).
2Why do VMs behind an Internal Standard Azure Load Balancer lose default outbound internet access unless explicitly configured?Standard SKU Load Balancers are secure by default and block outbound SNAT unless an outbound rule, Public IP, or Azure NAT Gateway is configured.To provide deterministic, high-scale outbound internet connectivity without SNAT port exhaustion for VMs behind an internal Standard Load Balancer, architects attach an Azure NAT Gateway to the subnet.
  • Standard SKU Load Balancers are secure by default and block outbound SNAT unless an outbound rule, Public IP, or Azure NAT Gateway is configured.
  • Standard Internal Load Balancers do not provide default outbound internet access; attach an Azure NAT Gateway or public IP/Outbound Rule.
  • Azure NAT Gateway provides up to 64,512 SNAT ports per public IP (up to 16 IPs) and is the recommended outbound mechanism.
3What is the architectural difference between Azure App Service 'Regional VNet Integration' and 'Private Endpoints'?Regional VNet Integration lets an App Service make outbound calls into a VNet, whereas a Private Endpoint restricts inbound traffic to a private IP.A web app uses Regional VNet Integration to query a private Azure SQL database over `10.1.2.5`, and exposes itself internally via a Private Endpoint so internet traffic is blocked.
  • VNet Integration = outbound traffic from App Service into a dedicated subnet; Private Endpoint = inbound private IP connectivity to the App Service.
  • Regional VNet Integration lets an App Service make outbound calls into a VNet, whereas a Private Endpoint restricts inbound traffic to a private IP.
  • Regional VNet Integration requires a delegated subnet (`Microsoft.Web/serverFarms`).
4Compare Azure Container Instances (ACI), Azure Container Apps (ACA), and Azure Kubernetes Service (AKS) for container workloads.ACI runs single isolated container groups; ACA runs serverless microservices with KEDA/Dapr/Envoy without cluster management; AKS provides full Kubernetes API and control-plane customization.Event-driven microservices that scale to zero based on Azure Service Bus queue depth use Azure Container Apps (ACA), while workloads needing custom CNI plugins or DaemonSets use AKS.
  • ACI = simple burst containers; ACA = serverless K8s-backed microservices with scale-to-zero; AKS = full managed Kubernetes cluster.
  • ACI runs single isolated container groups; ACA runs serverless microservices with KEDA/Dapr/Envoy without cluster management; AKS provides full Kubernetes API and control-plane customization.
  • ACA abstracts away nodes and Kubernetes manifests while providing built-in KEDA autoscaling and Dapr.
5What are Application Security Groups (ASGs) in Azure, and what architectural constraint applies to NICs assigned to an ASG?ASGs group VM NICs by logical application role (e.g., `WebServers`, `DbServers`) for NSG rules without hardcoding IPs; all NICs must share one VNet.Instead of updating CIDR ranges whenever a VM scales out, a single NSG rule allows TCP 1433 from source ASG `AppTier-ASG` to destination ASG `SqlTier-ASG`.
  • Logical tags for NICs used as Source or Destination in NSG rules; all member NICs must reside in the same Virtual Network.
  • ASGs group VM NICs by logical application role (e.g., `WebServers`, `DbServers`) for NSG rules without hardcoding IPs; all NICs must share one VNet.
  • Decouples NSG security policy from IP addresses and subnet boundaries within a VNet.
6How are Network Security Group (NSG) rules evaluated when an NSG is attached to both a Subnet and a VM's Network Interface (NIC)?Inbound traffic evaluates the Subnet NSG first, then the NIC NSG; outbound traffic evaluates the NIC NSG first, then the Subnet NSG.To allow inbound HTTPS (TCP 443) to a web VM when both the Subnet and NIC have NSGs attached, an explicit Allow rule (priority 100–4096) must exist in both NSGs.
  • Inbound traffic evaluates the Subnet NSG first, then the NIC NSG; outbound traffic evaluates the NIC NSG first, then the Subnet NSG.
  • Inbound: Subnet NSG -> NIC NSG; Outbound: NIC NSG -> Subnet NSG; traffic must be allowed by both.
  • Within each NSG, rules are processed in ascending numeric priority order (100 to 65500) and stop at the first match.
7In Azure Cosmos DB, how do 'Strong' and 'Bounded Staleness' consistency levels differ regarding multi-region replication and RPO?Strong guarantees linearizability (RPO=0) but cannot span multi-region write accounts; Bounded Staleness lags by at most K versions or T seconds.If an enterprise requires a multi-region Cosmos DB deployment with a zero-data-loss guarantee (`RPO = 0`), it must select Single-Region Writes with Strong consistency—or accept Bounded Staleness (`K` updates / `T` time window).
  • Strong consistency requires synchronous replication across regions (RPO = 0, higher write latency); Bounded Staleness bounds lag to K prefixes or T seconds.
  • Strong guarantees linearizability (RPO=0) but cannot span multi-region write accounts; Bounded Staleness lags by at most K versions or T seconds.
  • Within the local write region, Bounded Staleness provides the same read guarantees as Strong consistency.
8In Azure SQL Database, what is the difference between the DTU purchasing model and the vCore purchasing model?DTU bundles compute, memory, and I/O into a single pre-configured unit (Basic/Standard/Premium); vCore lets you scale compute, memory, and storage independently.Only the vCore purchasing model supports Azure Hybrid Benefit (reusing on-premises SQL Server licenses), the Serverless auto-pause tier, and the Hyperscale storage tier (up to 100 TB).
  • DTU bundles compute, memory, and I/O into a single pre-configured unit (Basic/Standard/Premium); vCore lets you scale compute, memory, and storage independently.
  • vCore offers General Purpose (including Serverless), Business Critical, and Hyperscale tiers plus Azure Hybrid Benefit; DTU bundles resources into fixed ratios.
  • Serverless vCore automatically scales compute between min/max vCores and pauses during inactive periods.
9Compare Azure Service Endpoints and Azure Private Endpoints (Azure Private Link) for securing PaaS resources like Azure SQL or Storage.Service Endpoints route subnet traffic over the Azure backbone to the resource's public endpoint; Private Endpoints assign a private NIC IP inside your VNet.Because Service Endpoints cannot be traversed from on-premises over VPN/ExpressRoute and do not prevent data exfiltration to rogue accounts (without Service Endpoint Policies), regulated workloads use Private Endpoints with Private DNS Zones.
  • Private Endpoint creates a private IP in the subnet (`privatelink.*` DNS) reachable over VPN/ExpressRoute and Peering; Service Endpoint keeps the public IP.
  • Private Endpoints eliminate public internet exposure completely (`publicNetworkAccess: Disabled`) and prevent data exfiltration.
  • Service Endpoints route subnet traffic over the Azure backbone to the resource's public endpoint; Private Endpoints assign a private NIC IP inside your VNet.
10What are the five well-defined consistency levels in Azure Cosmos DB, ordered from strongest (lowest availability/highest latency) to weakest (highest throughput)?Strong, Bounded Staleness, Session (the default), Consistent Prefix, and Eventual.A global shopping cart service uses the default `Session` consistency level so a user always reads their own writes (`Read-Your-Writes`) with half the RU/s cost of Strong consistency.
  • Strong, Bounded Staleness, Session (the default), Consistent Prefix, and Eventual.
  • Strong -> Bounded Staleness -> Session -> Consistent Prefix -> Eventual.
  • Strong and Bounded Staleness consume 2x the Read Request Units (RUs) of Session, Consistent Prefix, and Eventual.
11Compare Active Geo-Replication and Failover Groups in Azure SQL Database for multi-region disaster recovery.Failover Groups build on Geo-Replication by providing stable read-write (`<group>.database.windows.net`) and read-only listener endpoints that automatically redirect traffic on failover.With a Failover Group configured across `eastus` and `westus`, applications never need to change their connection strings after an automatic or manual regional failover.
  • Active Geo-Replication replicates single databases without a virtual listener; Failover Groups manage one or more databases with automatic DNS listener redirection.
  • Failover Groups provide `<fg-name>.database.windows.net` (read/write) and `<fg-name>.secondary.database.windows.net` (read-only).
  • Failover Groups build on Geo-Replication by providing stable read-write (`<group>.database.windows.net`) and read-only listener endpoints that automatically redirect traffic on failover.
12Is Azure VNet Peering transitive by default, and how can Spoke VNets communicate through a central Hub VNet?VNet Peering is non-transitive; Spoke-to-Spoke traffic requires either direct peering or User-Defined Routes (UDRs) pointing to a Hub Azure Firewall/NVA with IP forwarding.In a Hub-and-Spoke topology (`SpokeA <-> Hub <-> SpokeB`), a route table on `SpokeA` sends `10.2.0.0/16` to next hop `Virtual Appliance` (`10.0.1.4`, the Hub Azure Firewall).
  • Non-transitive by default; requires a Hub NVA/Azure Firewall + UDRs, Azure Virtual WAN, or direct mesh peering.
  • Peering A-to-B and B-to-C does not allow A to talk to C without routing through a central appliance or VPN Gateway.
  • VNet Peering is non-transitive; Spoke-to-Spoke traffic requires either direct peering or User-Defined Routes (UDRs) pointing to a Hub Azure Firewall/NVA with IP forwarding.
13Compare Azure Site-to-Site VPN Gateway and Azure ExpressRoute regarding transport medium, bandwidth, and encryption.Site-to-Site VPN sends IPsec encrypted traffic over the public internet (<=10 Gbps); ExpressRoute provides private dedicated L2/L3 connectivity (50 Mbps–100 Gbps).Because standard ExpressRoute circuits are private but unencrypted by default, financial institutions needing end-to-end encryption configure either MACsec (on ExpressRoute Direct) or an IPsec VPN tunnel over ExpressRoute private peering.
  • VPN = encrypted IPsec over public internet; ExpressRoute = private MPLS/telco provider circuit with predictable latency and SLA, unencrypted by default.
  • Site-to-Site VPN sends IPsec encrypted traffic over the public internet (<=10 Gbps); ExpressRoute provides private dedicated L2/L3 connectivity (50 Mbps–100 Gbps).
  • ExpressRoute offers Local, Standard, and Premium SKUs plus ExpressRoute Direct (10 Gbps / 100 Gbps ports).
14In Azure App Configuration vs. Azure Key Vault, which service should store feature flags and non-sensitive settings versus cryptographic keys and secrets?Azure App Configuration manages centralized non-sensitive settings and feature flags across environments, while Key Vault stores secrets, keys, and TLS certificates.In a microservices architecture, App Configuration holds key-values and Key Vault References, allowing applications to read a unified configuration endpoint while sensitive secrets remain backed by Key Vault HSMs.
  • Azure App Configuration manages centralized non-sensitive settings and feature flags across environments, while Key Vault stores secrets, keys, and TLS certificates.
  • App Configuration = feature flags, dynamic settings, and Key Vault references; Key Vault = hardware-backed secrets, encryption keys, and certificates.
  • They are complementary: App Configuration links to Key Vault secrets via URI references.
15How is DNS resolution architected when an Azure Storage Account or SQL Database uses a Private Endpoint?The public FQDN CNAMEs to a `privatelink.<service>` alias, which resolves via an Azure Private DNS Zone linked to the VNet to the private IP.`mystorage.blob.core.windows.net` resolves via CNAME to `mystorage.privatelink.blob.core.windows.net`, which the VNet-linked Private DNS Zone `privatelink.blob.core.windows.net` resolves to `10.0.2.4`.
  • Link a Private DNS Zone (e.g., `privatelink.database.windows.net`) to the VNet; for hybrid DNS, use Azure DNS Private Resolver.
  • External clients still resolve the public IP, while VNet and on-premises clients using Private DNS Resolver get the private 10.x.x.x IP.
  • The public FQDN CNAMEs to a `privatelink.<service>` alias, which resolves via an Azure Private DNS Zone linked to the VNet to the private IP.
16What is the architectural difference between Azure Event Grid, Azure Event Hubs, and Azure Service Bus?Event Grid routes reactive discrete events (push model); Event Hubs ingests millions of streaming telemetry events/sec (pull/offset model); Service Bus handles enterprise transactional messaging.Blob creation triggers an Event Grid notification to an Azure Function; IoT sensors stream 500,000 events/sec into Event Hubs; payment orders use Service Bus queues with FIFO sessions and dead-lettering.
  • Event Grid = pub/sub event router; Event Hubs = big-data streaming pipeline (Kafka-compatible); Service Bus = high-value enterprise message broker (queues/topics, FIFO, transactions, DLQ).
  • Use Service Bus for financial/order messages requiring duplicate detection and guaranteed FIFO (`RequiresSession = true`).
  • Event Grid routes reactive discrete events (push model); Event Hubs ingests millions of streaming telemetry events/sec (pull/offset model); Service Bus handles enterprise transactional messaging.
17When backing up an Azure Virtual Machine using Azure Backup (Recovery Services Vault), what is the two-tier restore snapshot architecture?Azure Backup first takes a rapid local snapshot in the Operational Tier (Instant Restore, 1–5 days default) before transferring data to the Vault Standard/Archive Tier.Restoring a corrupted file or disk from yesterday's backup completes in minutes because the recovery point is pulled directly from the local Instant Restore snapshot without waiting for vault hydration.
  • Phase 1 creates an Instant Restore snapshot alongside the VM disks (1 to 30 days); Phase 2 copies data to the Recovery Services Vault.
  • Cross-Region Restore (CRR) can be enabled on GRS Recovery Services Vaults to restore VMs in the paired secondary region at any time.
  • Azure Backup first takes a rapid local snapshot in the Operational Tier (Instant Restore, 1–5 days default) before transferring data to the Vault Standard/Archive Tier.
18In Azure Monitor, what is the difference between Metrics, Activity Logs, Resource Diagnostic Logs, and Data Collection Rules (DCRs)?Metrics are lightweight numeric time-series; Activity Logs record subscription-level ARM control-plane events; Diagnostic Settings capture PaaS resource logs; DCRs configure Azure Monitor Agent (AMA) telemetry.To learn who deleted a Network Security Group (`Microsoft.Network/networkSecurityGroups/delete`), an administrator queries the Subscription Activity Log (retained for 90 days by default, or exported to Log Analytics).
  • Metrics are lightweight numeric time-series; Activity Logs record subscription-level ARM control-plane events; Diagnostic Settings capture PaaS resource logs; DCRs configure Azure Monitor Agent (AMA) telemetry.
  • Activity Log = control-plane ARM operations (Who/What/When); Diagnostic Settings = resource-plane logs; DCR + AMA = guest OS logs/metrics from VMs.
  • Azure Monitor Agent (AMA) with Data Collection Rules replaces the legacy Log Analytics MMA agent.
19When performing a Deployment Slot swap in Azure App Service, how do you prevent a staging database connection string or environment variable from moving to Production?Mark the configuration setting or connection string as a 'Deployment slot setting' (sticky to the slot) so it remains bound to its specific slot.During a Staging-to-Production swap, Azure warms up the Staging worker instances first and flips routing seamlessly, while `SQLCONNSTR_DB` marked as a slot setting stays pointed at the production database.
  • Mark the configuration setting or connection string as a 'Deployment slot setting' (sticky to the slot) so it remains bound to its specific slot.
  • Enable the 'Deployment slot setting' checkbox on the App Setting or Connection String.
  • Slot-sticky settings stay attached to the slot name (`staging` or `production`) while non-sticky settings travel with the swapped code.
20What is ExpressRoute 'FastPath', and when should an Azure Solutions Architect enable it?FastPath allows data-plane network traffic from on-premises to bypass the ExpressRoute Virtual Network Gateway and flow directly to VMs in the VNet.An UltraPerformance or ErGw3AZ ExpressRoute gateway with FastPath enabled still exchanges BGP routes on the control plane, while high-throughput storage and VM packets skip the gateway bottleneck.
  • Bypasses the ExpressRoute VNet Gateway for data-plane packets to improve throughput and lower latency between on-premises and VNet VMs.
  • Requires an UltraPerformance or ErGw3AZ gateway SKU.
  • FastPath allows data-plane network traffic from on-premises to bypass the ExpressRoute Virtual Network Gateway and flow directly to VMs in the VNet.
21Compare System-Assigned and User-Assigned Managed Identities in Azure regarding lifecycle and resource sharing.A System-Assigned Managed Identity is tied 1:1 to a single resource's lifecycle; a User-Assigned Managed Identity is a standalone resource shareable across multiple Azure resources.When 20 microservices in a VM Scale Set all need identical read access to a single Key Vault and Storage Account, attaching one User-Assigned Managed Identity avoids managing 20 separate RBAC role assignments.
  • System-Assigned is deleted automatically when the host resource is deleted; User-Assigned persists independently and can be attached to multiple VMs/App Services.
  • Managed Identities eliminate storing credentials in code by acquiring Entra tokens from the Azure Instance Metadata Service (`169.254.169.254`).
  • A System-Assigned Managed Identity is tied 1:1 to a single resource's lifecycle; a User-Assigned Managed Identity is a standalone resource shareable across multiple Azure resources.
22When configuring VNet Peering in a Hub-and-Spoke network to share a single VPN or ExpressRoute Gateway in the Hub, which two peering settings must be paired?Enable 'Allow gateway transit' on the Hub VNet peering link and 'Use remote gateways' on each Spoke VNet peering link.For `Spoke1` to use remote gateways in `HubVNet`, `Spoke1` must not already have its own Virtual Network Gateway deployed in a `GatewaySubnet`.
  • Hub VNet = 'Allow gateway transit' (or 'Allow VNet to access remote VNet's gateway'); Spoke VNet = 'Use remote gateways'.
  • Enable 'Allow gateway transit' on the Hub VNet peering link and 'Use remote gateways' on each Spoke VNet peering link.
  • Lets spoke VNets share the hub's ExpressRoute or VPN gateway without deploying duplicate gateways.
23Compare Azure Availability Sets and Availability Zones regarding physical isolation and composite Virtual Machine SLA.Availability Sets isolate VMs across racks (up to 3 Fault Domains and 20 Update Domains, 99.95% SLA); Availability Zones isolate across separate datacenters (99.99% SLA).Deploying two domain controller VMs across Availability Zones 1 and 2 in `eastus2` achieves a 99.99% uptime SLA and survives a complete datacenter power/cooling failure.
  • Availability Sets protect against rack/host hardware failure (99.95% SLA); Availability Zones protect against datacenter failure (99.99% SLA).
  • Fault Domains share power and network switches; Update Domains determine groups rebooted together during planned maintenance.
  • Availability Sets isolate VMs across racks (up to 3 Fault Domains and 20 Update Domains, 99.95% SLA); Availability Zones isolate across separate datacenters (99.99% SLA).
24What makes a good Partition Key in Azure Cosmos DB, and what are the storage and throughput limits of a single Logical Partition?A good Partition Key has high cardinality, distributes request volume evenly, and supports point reads; each Logical Partition holds up to 20 GB.For a multi-tenant SaaS telemetry table where a single enterprise tenant exceeds 20 GB of data, architects use Hierarchical Partition Keys (e.g., `[/TenantId, /UserId, /SessionId]`) to scale beyond 20 GB per tenant.
  • Logical partitions are capped at 20 GB and physical partitions at 50 GB / 10,000 RU/s; use high-cardinality keys or Hierarchical Partition Keys.
  • A good Partition Key has high cardinality, distributes request volume evenly, and supports point reads; each Logical Partition holds up to 20 GB.
  • Avoid low-cardinality keys (like `Status` or `Date`) that create hot partitions and HTTP 429 throttling.
25When designing an Azure API Management (APIM) deployment that must access internal VNet-only backend services AND only be callable from inside the VNet, which APIM tier and mode are required?Deploy API Management in the Developer or Premium tier (or v2 tiers with VNet support) configured in 'Internal' VNet mode.In `External` VNet mode, APIM can reach private backend services inside the VNet while its gateway remains internet-facing; in `Internal` VNet mode, both the gateway and backends are private.
  • Developer or Premium tier in Internal VNet mode (or Private Endpoint with inbound/outbound VNet integration on supported tiers).
  • Deploy API Management in the Developer or Premium tier (or v2 tiers with VNet support) configured in 'Internal' VNet mode.
  • Internal VNet mode hides the APIM gateway behind a private VNet IP, often fronted externally by Application Gateway WAF.
26How does Azure Site Recovery (ASR) differ from Azure Backup for Virtual Machine business continuity?Azure Backup creates periodic point-in-time recovery points for data restoration, whereas ASR continuously replicates VMs to another region for rapid disaster failover.For a mission-critical ERP VM requiring `RPO < 5 minutes` and `RTO < 15 minutes` during a regional disaster, architects configure Azure Site Recovery continuous block-level replication with automated Recovery Plans.
  • ASR provides continuous replication and orchestrated disaster recovery failover; Azure Backup provides scheduled daily/hourly snapshots for corruption or ransomware recovery.
  • Azure Backup creates periodic point-in-time recovery points for data restoration, whereas ASR continuously replicates VMs to another region for rapid disaster failover.
  • ASR Recovery Plans sequence multi-tier VM startup order and can execute Automation Runbooks during failover.
27In Azure Virtual Machine Scale Sets (VMSS), how does 'Flexible' orchestration mode differ from 'Uniform' orchestration mode?Flexible orchestration allows mixing VM SKUs, combining Spot and pay-as-you-go instances, and managing individual VMs with up to 1,000 instances across Fault Domains.A stateless web tier uses VMSS Flexible orchestration to run a baseline of 10 Standard VMs alongside 40 discounted Spot VMs while supporting manual attachment of standard IaaS disks.
  • Uniform uses identical VM templates optimized for stateless scale; Flexible supports heterogeneous VM sizes and standard Azure VM APIs.
  • Flexible orchestration allows mixing VM SKUs, combining Spot and pay-as-you-go instances, and managing individual VMs with up to 1,000 instances across Fault Domains.
  • Flexible orchestration is required for Fault Domain guarantees >=3 across Availability Zones.
28Compare the three Azure SQL deployment options: Azure SQL Database, Azure SQL Managed Instance (SQL MI), and SQL Server on Azure VMs.SQL Database is PaaS scoped to single/elastic databases; SQL Managed Instance offers ~100% instance-level compatibility inside a VNet; SQL on VM gives full OS control.When migrating a legacy on-premises SQL Server workload that relies on SQL Server Agent jobs, cross-database queries, linked servers, and CLR assemblies without OS administration, architects select Azure SQL Managed Instance.
  • SQL Database is PaaS scoped to single/elastic databases; SQL Managed Instance offers ~100% instance-level compatibility inside a VNet; SQL on VM gives full OS control.
  • SQL DB = modern cloud apps; SQL MI = lift-and-shift requiring SQL Agent, DB Mail, Service Broker, and cross-DB queries; SQL on VM = SSRS/SSIS/SSAS or legacy SQL versions.
  • SQL Managed Instance is always deployed into a dedicated VNet subnet.
29Compare Azure Bastion and Just-In-Time (JIT) VM Access in Microsoft Defender for Cloud for securing administrative RDP/SSH access to VMs.Azure Bastion provides browser-based TLS RDP/SSH over private IPs without public IPs; JIT dynamically opens NSG/Firewall ports for a time-limited window and source IP.Deploying Azure Bastion inside `AzureBastionSubnet` (`/26` or larger) lets administrators connect to private VMs over port 443 through the Azure Portal without ever assigning public IPs to the VMs.
  • Bastion eliminates public IPs and jump-box maintenance via HTML5/native client over TLS 443; JIT locks down NSG ports 22/3389 until an RBAC-authorized user requests temporary access.
  • Azure Bastion provides browser-based TLS RDP/SSH over private IPs without public IPs; JIT dynamically opens NSG/Firewall ports for a time-limited window and source IP.
  • Azure Bastion requires a dedicated subnet named `AzureBastionSubnet` with at least a `/26` CIDR prefix.
30How do Azure Queue Storage and Azure Service Bus Queues differ regarding message size, ordering guarantees, and maximum queue size?Queue Storage supports 64 KB messages and 500 TB queues (no FIFO); Service Bus supports up to 100 MB (Premium) with strict FIFO sessions.When an application must store 40 TB of simple background work items at lowest cost and can tolerate at-least-once unordered delivery, architects choose Azure Queue Storage over Service Bus.
  • Queue Storage supports 64 KB messages and 500 TB queues (no FIFO); Service Bus supports up to 100 MB (Premium) with strict FIFO sessions.
  • Queue Storage = up to 500 TB total capacity, 64 KB max message, HTTP/REST; Service Bus = up to 80 GB (or 1 TB partitioned), 256 KB Standard / 100 MB Premium message size, AMQP, FIFO sessions.
  • Service Bus provides dead-letter queues, duplicate detection, and transactional processing.
31Compare the four core Azure load-balancing services by OSI layer and geographic scope: Azure Load Balancer, Application Gateway, Azure Front Door, and Traffic Manager.Load Balancer is regional L4; Application Gateway is regional L7 (with WAF); Front Door is global L7 anycast/CDN/WAF; Traffic Manager is global DNS.An e-commerce platform uses Azure Front Door globally for TLS termination, WAF, and multi-region failover, routing regional HTTP traffic to Application Gateway ingress controllers in each region.
  • Load Balancer is regional L4; Application Gateway is regional L7 (with WAF); Front Door is global L7 anycast/CDN/WAF; Traffic Manager is global DNS.
  • Regional L4 = Azure Load Balancer; Regional L7 = Application Gateway; Global L7 HTTP/S = Azure Front Door; Global DNS = Traffic Manager.
  • Traffic Manager works at the DNS layer (no proxy), whereas Front Door proxies HTTP/HTTPS at global edge POPs with split-TCP.
32In Azure Key Vault, how do you protect against both accidental deletion and malicious permanent purging by a rogue administrator?Soft Delete (enabled by default for 7–90 days) protects against accidental deletion, while Purge Protection blocks anyone from permanently purging deleted objects before retention expires.For Customer-Managed Keys (CMKs) encrypting Azure Storage or SQL TDE, Azure requires both Soft Delete and Purge Protection to be enabled on the Key Vault to prevent irreversible cryptographic lockouts.
  • Enable Purge Protection alongside Soft Delete so deleted keys, secrets, and vaults cannot be purged until the retention period elapses.
  • Soft Delete (enabled by default for 7–90 days) protects against accidental deletion, while Purge Protection blocks anyone from permanently purging deleted objects before retention expires.
  • Microsoft also recommends migrating Key Vault access control from legacy Vault Access Policies to Azure RBAC for granular secret-level permissions.