Question

Difficulty: EasyServerless and Web Application Hosting

Your company needs to host a serverless API endpoint that generates PDF reports. Each PDF generation request is CPU-intensive and takes up to 12 minutes to complete. The solution must scale dynamically and minimize administrative overhead. Which hosting option should you recommend?

  1. Azure Functions on a Premium planAnswer
  2. B
    Azure Functions on a Consumption plan
  3. C
    Azure Kubernetes Service (AKS)
  4. D
    Azure Virtual Machines scale set using Spot VMs

Answer

Azure Functions on a Premium plan
Azure Functions Premium plan provides serverless scaling and low administrative overhead while allowing execution durations up to 30 minutes (or unbounded), which easily accommodates the 12-minute requirement.

Step-by-Step Solution

1
Identify the execution duration requirement.
The requirement is 12 minutes of execution time.
Azure Functions Consumption plan has a 10-minute maximum limit, which rules it out.
2
Evaluate the administrative overhead constraints.
The solution must minimize administrative overhead and scale dynamically.
This rules out Azure Kubernetes Service (AKS) due to its high management complexity.
3
Evaluate workload reliability requirements.
API requests must run to completion reliably.
This rules out Spot VMs because they are subject to sudden eviction.

Key Concept

Selecting the appropriate serverless compute hosting model based on execution time limits, management overhead, and reliability.
Rate this question