Soru

Zorluk: ZorServerless and Web Application Hosting

You are designing the hosting infrastructure for a new reporting solution in Azure that consists of two distinct workloads:

* Workload 1: A REST API frontend that receives metadata and writes it to a database. It experiences highly unpredictable, infrequent traffic spikes. Minimizing idle costs is a critical requirement, and the hosting environment must scale to zero when there is no traffic.
* Workload 2: A PDF generation engine triggered by queue messages. The report generation process can take up to 20 minutes to complete. The service must access an image library hosted on an on-premises server connected via an Azure Virtual Network.

You need to select the compute options that meet the requirements while minimizing both administrative overhead and cost.

Which hosting configuration should you recommend?

  1. Workload 1 hosted on Azure Functions (Consumption plan); Workload 2 hosted on Azure Functions (Premium plan)Cevap
  2. B
    Workload 1 hosted on Azure Functions (Consumption plan); Workload 2 hosted on Azure Functions (Consumption plan)
  3. C
    Workload 1 hosted on Azure Functions (Premium plan); Workload 2 hosted on Azure Functions (Premium plan)
  4. D
    Workload 1 hosted on Azure Functions (Consumption plan); Workload 2 hosted on Azure Kubernetes Service (AKS)

Cevap

Workload 1 hosted on Azure Functions (Consumption plan); Workload 2 hosted on Azure Functions (Premium plan)
The configuration using the Consumption plan for the REST API frontend and the Premium plan for the PDF generation engine meets all constraints. The REST API frontend requires scaling to zero to minimize idle costs during periods of no traffic, which is a native feature of the Azure Functions Consumption plan. The PDF generation engine requires an execution time of up to 20 minutes and virtual network connectivity; the Premium plan supports virtual network integration and has a maximum execution limit of 30 minutes (or can be configured to be unbounded), making it the ideal choice while maintaining low administrative overhead.

Adım Adım Çözüm

1
Analyze the requirements for Workload 1.
Workload 1 requires scaling to zero to minimize idle costs due to infrequent and unpredictable traffic.
Azure Functions Consumption plan is serverless and scales to zero, charging only for active executions, which fits this requirement.
2
Analyze the requirements for Workload 2.
Workload 2 requires a timeout threshold of at least 20 minutes and virtual network integration to access the on-premises file server.
Azure Functions Premium plan supports virtual network integration and offers configurable execution timeouts of up to 30 minutes (or unbounded), satisfying both requirements.
3
Evaluate the administrative overhead of the options.
Using Azure Functions (Premium plan) for Workload 2 offers a fully managed platform as a service (PaaS) with low administrative overhead compared to containers hosted on Azure Kubernetes Service (AKS).
Azure Kubernetes Service requires managing cluster nodes, upgrades, and complex networking, which increases administrative overhead.

Anahtar Kavram

Selecting Azure serverless hosting plans based on execution limits, virtual network integration, and scaling-to-zero capabilities.
Bu soruyu puanla