Question

Difficulty: MediumAzure Serverless Compute (Functions and Logic Apps)

A logistics company is designing a serverless solution to optimize its supply chain operations. The solution must support two workloads:

1. Run a custom Python script that calculates the most cost-effective shipping routes based on live traffic and weather data.
2. Automate a multi-step workflow that sends customer updates via Twilio, modifies records in a third-party CRM system, and sends confirmation emails through Office 365 without writing custom integration code.

Which Azure services should the company use to meet these requirements?

  1. Azure Functions to execute the Python script for route calculation, and Azure Logic Apps to orchestrate the multi-step integration workflow.Answer
  2. B
    Azure Logic Apps to execute the Python script for route calculation, and Azure Functions to orchestrate the multi-step integration workflow.
  3. C
    Azure Functions to execute the Python script for route calculation, and Microsoft 365 as a PaaS platform to host the multi-step integration workflow.
  4. D
    Azure Functions for both workloads, while requiring the customer to manage and perform operating system patching on the underlying serverless compute host.

Answer

Azure Functions should be used to run the custom Python script for calculating routes, and Azure Logic Apps should be used to orchestrate the multi-step integration workflow.
The correct recommendation is to use Azure Functions for executing the custom Python script and Azure Logic Apps for orchestrating the multi-step integration workflow. Azure Functions is a code-first serverless compute service that runs custom code on demand, which is suitable for executing a routing script. Azure Logic Apps is a designer-first orchestration service with pre-built connectors, matching the need to integrate third-party services without writing custom connection logic. Additionally, both services are serverless (PaaS) offerings, meaning that Microsoft fully manages host security and operating system patching.

Step-by-Step Solution

1
Identify the service requirements for the custom Python script running route calculations.
Determine that a code-first serverless compute service is required because custom programming logic needs to run dynamically.
Azure Functions is a serverless compute service that supports running custom code languages, including Python.
2
Identify the service requirements for orchestrating a workflow across Twilio, a CRM, and Office 365 without writing custom code.
Determine that a designer-first integration platform with out-of-the-box connectors is needed.
Azure Logic Apps provides a visual designer and hundreds of pre-built connectors to integrate external services without writing integration code.
3
Analyze the management model of the serverless services.
Confirm that serverless services are Platform as a Service (PaaS) offerings, meaning that OS patching and server maintenance are fully handled by Microsoft.
This rules out options that place the responsibility of OS patching on the customer or misidentify SaaS products as PaaS hosts.

Key Concept

Distinction between Azure Functions (code-first serverless compute) and Azure Logic Apps (connector-first serverless orchestration), along with their placement under the PaaS shared responsibility model.
Estimated Time:1m 30s
Rate this question