Microsoft Certified: Azure Developer Associate (AZ-204)Develop Azure compute solutionsEasy
A company is developing a new serverless application that processes incoming telemetry data from IoT devices. The application needs to execute small, event-driven code snippets in response to data arrival, scale automatically based on demand, and incur costs only when the code is actively running. Which Azure compute solution is BEST suited for this scenario?
- AAzure Kubernetes Service (AKS)
- BAzure Functions
- CAzure Virtual Machines (VMs)
- DAzure App Service
Show answer & explanationAnswer & explanation
Correct answer: B. Azure Functions
Azure Functions is a serverless compute service that enables you to run event-driven code without provisioning or managing infrastructure. It automatically scales and you only pay for the compute resources consumed during execution, aligning perfectly with the requirements.
Why the other options are wrong
- A. Azure Kubernetes Service is a container orchestration service, requiring more management overhead and not inherently providing the consumption-based billing model of serverless functions.
- C. Azure Virtual Machines provide IaaS, requiring manual management and incurring costs even when idle, which doesn't fit the serverless and cost-effective requirements.
- D. Azure App Service is a PaaS for hosting web apps and APIs, but it's not primarily designed for event-driven, short-lived code snippets with consumption-based billing like Azure Functions.
Azure Functions
A serverless compute service that enables you to run event-driven code without provisioning or managing infrastructure.
- Event-driven execution
- Automatic scaling
- Consumption-based billing (pay-per-execution)
- Supports multiple programming languages
Memory trick: Serverless Functions Scale Automatically and Save Cents