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?
- Azure Functions to execute the Python script for route calculation, and Azure Logic Apps to orchestrate the multi-step integration workflow.Cevap
- BAzure Logic Apps to execute the Python script for route calculation, and Azure Functions to orchestrate the multi-step integration workflow.
- CAzure Functions to execute the Python script for route calculation, and Microsoft 365 as a PaaS platform to host the multi-step integration workflow.
- DAzure Functions for both workloads, while requiring the customer to manage and perform operating system patching on the underlying serverless compute host.
Cevap
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.
Adım Adım Çözüm
Anahtar Kavram
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.
Tahmini Süre:1m 30s