Question

Difficulty: MediumAzure Serverless Compute (Functions and Logic Apps)

A wildlife monitoring project uses IoT cameras to capture images of animals in remote areas. The project team needs to run a custom Python script that analyzes each uploaded image to identify the species. The analysis must execute only when a new image is uploaded, and the compute resources must scale automatically based on the volume of incoming images. Which Azure service is best suited for executing the image analysis script?

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

Answer

Azure Functions is the correct choice because it is a serverless, event-driven compute service that can run custom code (such as a Python script) and automatically scale resources to meet demand.
Azure Functions is a code-first, event-driven serverless compute service. It allows you to run custom code (such as a Python script) in response to events (such as an image upload to storage) without managing underlying infrastructure. It automatically scales compute resources based on demand, which matches the project requirements.

Step-by-Step Solution

1
Identify the primary requirement: running custom code (a Python script) in response to event triggers (uploads) with automatic scaling.
The solution must be a serverless compute service capable of custom code execution.
To minimize management overhead and ensure resources scale dynamically.
2
Evaluate Azure serverless compute options.
Azure Functions is code-first (runs custom code); Azure Logic Apps is designer-first (orchestrates workflows).
To select the tool designed specifically for running custom code scripts.
3
Confirm the service recommendation.
Azure Functions perfectly matches the requirements for custom script execution, event-driven triggers, and automatic scaling.
It handles the underlying infrastructure and scales compute resources automatically.

Key Concept

Distinction between Azure serverless compute services (Functions) and workflow orchestrators (Logic Apps).
Estimated Time:1m 0s
Rate this question