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

A developer needs to deploy a Python-based web API to Azure. The API is stateless and receives frequent HTTP requests. The company prefers a Platform-as-a-Service (PaaS) offering that minimizes operational overhead for server management and patching, while providing built-in scaling and integration with other Azure services. Which Azure compute solution is MOST appropriate?

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

Correct answer: C. Azure App Service

Azure App Service is a fully managed PaaS offering designed for hosting web applications and APIs. It abstracts away server management, provides built-in scaling, and integrates well with other Azure services, making it ideal for stateless web APIs with minimal operational overhead.

Why the other options are wrong

  • A. Azure Container Instances (ACI) are suitable for single container deployments but lack the comprehensive PaaS features like integrated scaling, deployment slots, and direct API management that App Service provides for web APIs.
  • B. Azure Functions with an HTTP trigger is a serverless option, typically for event-driven, short-lived code snippets. While it minimizes overhead, for a full 'web API' with frequent requests that might not be purely event-driven and could have longer execution times, App Service is generally more robust and feature-rich as a dedicated API hosting platform.
  • D. Azure Virtual Machines (VMs) are IaaS, requiring significant operational overhead for OS management, patching, and scaling, which contradicts the 'minimize operational overhead' requirement.

Azure App Service

A fully managed Platform-as-a-Service (PaaS) for building, deploying, and scaling web apps and APIs.

  • Supports multiple languages (Python, .NET, Node.js, Java, etc.)
  • Built-in autoscaling and load balancing
  • Integrated with Azure DevOps and other Azure services
  • Minimal operational overhead (no server management)

Memory trick: App Service is the Perfect PaaS for APIs

More Develop Azure compute solutions questions