You are developing a document migration solution using Azure Durable Functions. The workflow uses a Fan-out/Fan-in pattern to process documents concurrently. One of the activity functions performs optical character recognition (OCR) on large PDF files; this task is CPU-intensive and can take up to 20 minutes to complete. The function app must also access files stored in an Azure Storage account that is secured behind a private endpoint inside an Azure Virtual Network.
You need to choose the most cost-effective hosting plan and configuration that meets these requirements.
Which hosting plan and configuration should you select?
- AThe Azure Functions Consumption plan, because it scales to zero to minimize costs and supports virtual network integration through service endpoints.
- BThe Azure App Service plan (Shared tier), because it offers a low-cost dedicated instance and supports execution timeouts of up to 30 minutes.
- The Azure Functions Premium plan, because it supports virtual network integration to access the private endpoint and allows for unbounded function execution timeouts.Answer
- DThe Azure Functions Premium plan, while refactoring the OCR task to execute directly within the orchestrator function to ensure state persistence.
Answer
The Azure Functions Premium plan, because it supports virtual network integration to access the private endpoint and allows for unbounded function execution timeouts.
The Azure Functions Premium plan is the correct choice because it supports outbound virtual network integration, enabling access to resources behind private endpoints, and allows for unbounded execution times (guaranteed up to 60 minutes and configuration-unbounded), which is necessary for the 20-minute OCR activity function.
Step-by-Step Solution
Key Concept
Selecting hosting plans based on execution limits and network requirements, while maintaining orchestrator determinism.