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) | Example | Multiple-Choice Options |
|---|---|---|---|---|
| 1 | Which 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. |
|
| 2 | Why 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. |
|
| 3 | What 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. |
|
| 4 | Compare 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. |
|
| 5 | What 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`. |
|
| 6 | How 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. |
|
| 7 | In 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). |
|
| 8 | In 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). |
|
| 9 | Compare 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. |
|
| 10 | What 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. |
|
| 11 | Compare 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. |
|
| 12 | Is 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). |
|
| 13 | Compare 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. |
|
| 14 | In 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. |
|
| 15 | How 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`. |
|
| 16 | What 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. |
|
| 17 | When 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. |
|
| 18 | In 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). |
|
| 19 | When 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. |
|
| 20 | What 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. |
|
| 21 | Compare 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. |
|
| 22 | When 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`. |
|
| 23 | Compare 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. |
|
| 24 | What 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. |
|
| 25 | When 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. |
|
| 26 | How 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. |
|
| 27 | In 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. |
|
| 28 | Compare 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. |
|
| 29 | Compare 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. |
|
| 30 | How 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. |
|
| 31 | Compare 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. |
|
| 32 | In 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. |
|