Soru

Zorluk: OrtaCreate and Configure Azure Functions

You are configuring an Azure Function App that runs on a Consumption hosting plan. You need to increase the execution timeout limit for all functions in the app to the maximum allowable duration under this hosting plan.

Which configuration should you apply to the host.json file?

  1. A
    Set the "functionTimeout" property to "00:30:00" in the host.json file.
  2. B
    Set the "functionTimeout" property to "-1" in the host.json file.
  3. Set the "functionTimeout" property to "00:10:00" in the host.json file.Cevap
  4. D
    Set the "functionTimeout" property to "00:05:00" in the host.json file.

Cevap

Set the "functionTimeout" property to "00:10:00" in the host.json file.
The configuration setting the property to 10 minutes ('00:10:00') is correct. Under the Consumption hosting plan, Azure Functions are limited to a maximum execution duration of 10 minutes, up from the default of 5 minutes.

Adım Adım Çözüm

1
Identify the hosting plan constraints.
The function app runs on the Consumption plan, which has a default timeout of 5 minutes and a maximum hard limit of 10 minutes.
Knowing hosting plan limits is necessary to determine the maximum value that can be successfully configured.
2
Determine the host.json property used for configuring timeouts.
The correct property to configure function timeouts globally is "functionTimeout".
This property controls execution timeout behavior for all functions within the function app.
3
Format the timeout duration correctly.
The duration must be specified in a timespan format (HH:MM:SS), resulting in "00:10:00".
Azure Functions configuration parser requires timespan formatting for duration properties.

Anahtar Kavram

Azure Functions Consumption plan timeout configuration
Bu soruyu puanla