Azure Fundamentals AZ-900 · Describe Azure Architecture and Services · medium

An application team needs a managed, serverless event-driven compute service in Azure that executes a small piece of C# or Python code only when triggered by an HTTP request or a new Queue message, billing strictly for execution time. Which service should they choose?

Published · Last updated · checked before publication — how we verify questions

Options

  • AAzure Virtual Machine Scale Sets (VMSS) with manual OS image patching
  • BAzure Dedicated Host reserving an entire physical server blade
  • CAzure Functions executing serverless event-triggered code on demandCorrect answer
  • DAzure Blob Storage Archive tier storing offline long-term backups

Answer: C. Azure Functions executing serverless event-triggered code on demand

Azure Functions is the Azure serverless compute service built for event-driven code. You write a small unit of code, for example in C# or Python, and attach a trigger such as an HTTP request, a timer, or a new Azure Queue Storage message. The platform runs the code only when the trigger fires, scales automatically, and on the Consumption plan bills only for execution time and resources used, so there is no charge while idle. Azure manages the underlying servers and operating system, so the team has no infrastructure to patch. The common trap is choosing a compute service just because it runs code. Virtual machines and scale sets, even when automated, still require you to manage operating systems and pay for allocated capacity whether or not work is happening. The words serverless, triggered, and billed for execution time point directly to Azure Functions.

Why the other options are wrong

  • A. Azure Virtual Machine Scale Sets (VMSS) with manual OS image patching — Virtual Machine Scale Sets manage a group of load-balanced, identical VMs that can autoscale. You still own the guest OS, including patching, and you pay for running instances, so it is neither serverless nor billed strictly per execution.
  • B. Azure Dedicated Host reserving an entire physical server blade — Azure Dedicated Host provides a physical server dedicated to your organization's VMs, mainly for compliance or licensing needs. It is the opposite of a pay-per-execution serverless model and has no event triggers.
  • D. Azure Blob Storage Archive tier storing offline long-term backups — The Blob Storage Archive tier is the lowest-cost, offline tier for rarely accessed data that needs long retention. It stores objects and cannot execute code in response to HTTP requests or queue messages.

All Describe Azure Architecture and Services questions and the topic overview →

Microsoft and Azure are trademarks of Microsoft Corporation. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Microsoft Corporation.