Microsoft Certified: Azure Developer Associate (AZ-204)Develop Azure compute solutionsEasy

A company is deploying a new web application that requires a highly scalable and fault-tolerant backend. The application processes user-uploaded images, which are then stored in Azure Blob Storage. The image processing is a CPU-intensive task and can take varying amounts of time. The company wants to minimize operational overhead and only pay for compute resources when the processing is actively running. Which Azure compute solution is most appropriate for the image processing workload?

  1. AAzure Container Instances (ACI)
  2. BAzure Virtual Machines (VMs)
  3. CAzure Kubernetes Service (AKS)
  4. DAzure Functions
Show answer & explanation

Correct answer: D. Azure Functions

Azure Functions provide a serverless compute service that allows you to run event-driven code without provisioning or managing infrastructure. This perfectly matches the requirement to only pay for compute when processing is active and minimizes operational overhead.

Why the other options are wrong

  • A. ACI allows running containers without managing VMs but still incurs costs for the container instance's uptime, not just execution time.
  • B. Azure VMs offer full infrastructure control but require constant management and incur costs even when idle, which doesn't meet the 'pay only when active' requirement.
  • C. AKS is for orchestrating large-scale containerized applications and requires significant operational overhead for cluster management, which is overkill for this specific task.

Azure Functions

A serverless compute service that enables you to run small pieces of code (functions) in the cloud without managing infrastructure, triggered by various events.

  • Event-driven execution model
  • Pay-per-execution billing
  • Automatic scaling
  • Supports multiple programming languages

Memory trick: Serverless Functions handle events, Containers package apps, VMs give control, AKS orchestrates many.

More Develop Azure compute solutions questions