Microsoft Azure Fundamentals (AZ-900)Describe Azure architecture and servicesMedium
A company is developing a new serverless application in Azure. They need a service that can execute small pieces of code in response to events, such as HTTP requests, database changes, or messages in a queue, without provisioning or managing any servers. Which Azure service should they use?
- AAzure Logic Apps
- BAzure Functions
- CAzure Virtual Machines
- DAzure App Service
Show answer & explanationAnswer & explanation
Correct answer: B. Azure Functions
Azure Functions is a serverless compute service that allows you to run small pieces of code (functions) in response to various events without needing to provision or manage infrastructure. It's ideal for event-driven architectures and microservices.
Why the other options are wrong
- A. Azure Logic Apps is a serverless workflow orchestration service for integrating systems, not for executing custom code in response to events.
- C. Azure Virtual Machines require full server management and are not a serverless compute option.
- D. Azure App Service is a PaaS for hosting web apps and APIs, which can be serverless in some configurations, but Azure Functions is specifically designed for event-driven, small code execution without server management.
Azure Functions
A serverless compute service that enables you to run event-driven code without provisioning or managing servers.
- Pay-per-execution model (consumption plan).
- Supports multiple programming languages.
- Scales automatically based on demand.
Memory trick: Functions are 'Fast and Flexible' for events.