Question

Difficulty: EasyAzure Serverless Compute (Functions and Logic Apps)

A smart home device manufacturer wants to run a custom Node.js script that automatically processes telemetry data whenever a new sensor reading is received. The solution must execute code only in response to these events, scale automatically, and charge only for the compute time consumed. Which Azure service meets these requirements?

  1. A
    Azure Logic Apps
  2. B
    Azure Virtual Machines
  3. Azure FunctionsAnswer
  4. D
    Microsoft 365

Answer

Azure Functions is the correct choice because it is a code-first, serverless compute service designed to run custom code in response to events.
Azure Functions is a code-first, serverless compute service that allows developers to run custom code (like Node.js, C#, or Python) in response to events. It abstracts away the underlying infrastructure, scales automatically, and uses a consumption-based pricing model where you only pay for the time the code is actively executing.

Step-by-Step Solution

1
Analyze the requirement to run a custom Node.js script in response to telemetry events without managing any servers.
Identify that the solution must support custom developer code (code-first) and offer a serverless hosting model.
This helps narrow the choice down to services that support custom code and hide server management.
2
Compare Azure Functions and Azure Logic Apps based on the need to execute custom code.
Determine that Azure Functions is code-first and supports Node.js scripts, whereas Azure Logic Apps is a visual workflow orchestrator designed around pre-built connectors.
This differentiates the two main serverless services in Azure.
3
Evaluate the other options against the serverless and cost requirements.
Confirm that Azure Virtual Machines requires server management (IaaS) and Microsoft 365 is a SaaS product, making Azure Functions the only correct match.
This ensures the final recommendation meets all constraints of the scenario.

Key Concept

Azure Functions is an event-driven, serverless compute service that runs custom code without requiring server management.
Estimated Time:45s
Rate this question