Soru

Zorluk: KolayCreate and Configure Azure Functions

A developer needs to deploy an Azure Function that processes incoming sensor telemetry from a queue. The telemetry data arrives sporadically throughout the day. Each function execution takes less than 10 seconds to complete. The primary goal is to minimize costs by ensuring that billing occurs only when the function is actively running.

Which hosting plan should the developer select?

  1. Consumption planCevap
  2. B
    Premium plan
  3. C
    Dedicated plan
  4. D
    App Service Environment plan

Cevap

Consumption plan
The Consumption plan is the default hosting option that automatically scales resources based on the number of incoming events. With this plan, billing is calculated based on execution time and execution count, scaling down to zero when no executions are taking place. This fits the requirement of minimizing costs for sporadic workloads.

Adım Adım Çözüm

1
Analyze the workload requirements: sporadic execution throughout the day, execution time under 10 seconds, and the absolute requirement to minimize costs by paying only when executing.
Identified that the function executes occasionally, runs quickly, and has no requirements for VNet integration or pre-warmed instances.
This helps determine the scaling and cost structure required by the hosting plan.
2
Evaluate the cost and execution characteristics of the available Azure Functions hosting plans.
The Consumption plan billing is based on execution count and resource consumption (gigabyte-seconds), scaling to zero when idle. The Premium and Dedicated plans charge continuously for allocated instances.
Comparing plan properties highlights which one fits the zero-cost-when-idle requirement.
3
Select the hosting plan that matches the criteria.
The Consumption plan is the correct fit since it allows zero billing when the function is not running.
This fulfills all requirements of the scenario.

Anahtar Kavram

Azure Functions hosting plans and their billing/scaling characteristics.
Bu soruyu puanla