Microsoft Azure Fundamentals (AZ-900)Describe Azure architecture and servicesMedium

A company is developing a new serverless application that needs to execute custom code in response to various events, such as HTTP requests, database changes, or messages arriving in a queue. They require a compute service that scales automatically, only charges for the time the code is executing, and requires no server management. Which Azure service fits these criteria?

  1. AAzure Virtual Machines
  2. BAzure Functions
  3. CAzure Container Instances
  4. DAzure App Service
Show answer & explanation

Correct answer: B. Azure Functions

Azure Functions is a serverless compute service that allows you to run event-driven code without provisioning or managing infrastructure, scaling automatically and charging only for execution time.

Why the other options are wrong

  • A. Azure Virtual Machines require manual server management and don't inherently provide event-driven scaling or consumption-based billing for short-lived functions.
  • C. Azure Container Instances run containers without managing VMs, but they are not inherently event-driven or optimized for short-lived, consumption-based functions like Azure Functions.
  • D. Azure App Service hosts web applications and APIs, requiring some level of server planning, and isn't purely event-driven serverless in the same way as Functions.

Azure Functions

A serverless compute service that enables you to run small pieces of code (functions) in response to events without explicitly provisioning or managing infrastructure.

  • Serverless compute.
  • Event-driven execution.
  • Automatic scaling.
  • Consumption-based billing (pay per execution).
  • No server management.

Memory trick: Functions are like tiny, powerful robots that wake up only when needed.

More Describe Azure architecture and services questions