D4 · Infrastructure

Compute Selection

The most repeated question on the AZ-305: where does this workload run? VM, , , Container Apps, Container Instances or . Each has clear signals the exam uses to point you to the answer.

The compute decision tree

Each question mirrors exactly the logic the exam uses. Answer in order — the first signal that matches is the answer.

🌿Árbol de decisión — ¿Dónde corre este workload?

Responde las preguntas siguiendo el flujo del examen

Interactivo

Pregunta 1

¿El workload necesita control total del SO, drivers, software legacy, o es lift-and-shift sin cambios en el código?

💡 Señal: "acceso al registro de Windows", "agentes propietarios", "licencias por socket"

The services, one by one

ServiceSignals in favorSignals against
Virtual MachinesFull control, licensed software/agents, specific GPU, literal lift-and-shiftYou manage patches, HA, scale — maximum operational responsibility
App ServiceHTTP web/API, deployment slots, managed certificates/custom domains, built-in CI/CDOnly HTTP/S (no arbitrary TCP), non-web workloads
AKSNeed the Kubernetes API: helm charts, operators, sidecars, multi-cloud portabilityOperational overhead of the cluster; if K8s isn't explicitly requested, there's usually a simpler option
Container Apps"Containers without managing Kubernetes", scale-to-zero, events (KEDA), microservices with DaprNo access to the K8s API — if operators/CRDs are requested, it's AKS
Container InstancesEphemeral/one-off container, virtual nodes for AKS burst, no orchestrationNo native autoscaling or load balancing — not for serving apps in production
FunctionsEvent-driven, short executions, "pay only when it runs" (Consumption), bindings to Storage//Long processes (timeout limit on Consumption), complex state (→ Durable Functions)
Logic AppsIntegration between systems with connectors (SAP, O365, Salesforce), visual workflows, B2BCompute-intensive logic — that's code (Functions)
Azure BatchHPC, rendering, simulations — VM pools for massive parallel jobsNot for serving applications

Functions hosting — a frequent sub-decision

Consumption: pay per execution, scales to zero, cold starts, limited timeout. Flex Consumption: mitigated cold start + VNet. Premium: no cold start (pre-warmed instances), VNet integration, no practical duration limit. Dedicated (App Service plan): reuse an existing plan. Signal "no cold starts" or "VNet access" → Premium/Flex.

Icon-compute-21

When it is IaaS: VM families and pricing

Families (recognizing them is enough)

  • • B burstable (dev, intermittent loads) · D general purpose · E memory · F CPU
  • • M massive memory (SAP HANA) · L local storage · N GPU · H HPC

Cost levers (they drop a lot)

  • • Reserved Instances / Savings Plans: 1-3 years, up to ~72% off — STABLE 24/7 workloads
  • • Spot VMs: up to ~90% less, but EVICTABLE — interruption-tolerant batch, never critical production
  • • Azure Hybrid Benefit: your own Windows/SQL licenses with SA
  • • Auto-shutdown for dev/test; right-sizing with Azure Advisor

Decision table

The scenario says...Answer
Legacy app that requires access to the Windows registryVirtual Machine
REST API with slots for blue/green and managed certificatesApp Service
Microservices with existing helm charts and operatorsAKS
Event-driven containers that scale to zero, without managing clustersContainer Apps
Containerized job that runs for 2h once a monthContainer Instances (or CA Jobs)
Process each message arriving in a queue, pay per useFunctions (Consumption)
Functions with VNet and no cold startFunctions Premium
Orchestrate approval → SAP → email with no codeLogic Apps
Video rendering across 500 parallel nodesAzure Batch (+ Spot)
Reduce the cost of stable 24/7 VMsReserved Instances + Hybrid Benefit
Interruption-tolerant batch at minimum costSpot VMs

Did you get this topic?

Test what you just learned

A team is going to deploy microservices in containers. Requirements: scale to zero outside business hours, scale based on Service Bus queue length, service-to-service communication with built-in discovery, and the team does NOT want to manage Kubernetes clusters. What service do you recommend?

Ready to test "Compute Selection"?

Put what you learned to the test with original AZ-305 exam questions.

Start AZ-305 mock exam

Unlimited mock exams with the Pro plan

Log in to track your progress.