Microsoft Certified: Azure Developer Associate (AZ-204)Develop Azure compute solutionsHard

A data analytics company uses Azure Functions to process incoming telemetry data from IoT devices. The data arrives in batches and each batch needs to be processed within 5 minutes. However, some processing tasks can occasionally take up to 7 minutes due to large data volumes or external service delays. The function is configured with a default timeout. What is the MINIMUM timeout setting (in minutes) required for the Azure Function to ensure all batches are processed successfully without premature termination, assuming the function needs to handle the occasional 7-minute processing time?

  1. A5
  2. B7
  3. C10
  4. D1
Show answer & explanation

Correct answer: B. 7

Azure Functions have a default timeout of 5 minutes on the Consumption plan. To ensure that all processing tasks, including those that occasionally take up to 7 minutes, complete successfully, the function's timeout setting must be configured to at least 7 minutes. Setting it to 7 minutes directly addresses the longest expected execution time.

Why the other options are wrong

  • A. 5 minutes is the default and would prematurely terminate functions that occasionally take 7 minutes.
  • C. 10 minutes would also work, but the question asks for the MINIMUM required timeout, making 7 minutes the most precise answer.
  • D. 1 minute is too short; it would terminate functions that exceed 1 minute.

Azure Functions Timeout

The Azure Functions timeout setting defines the maximum duration a function execution can run before it is terminated by the host.

  • Default timeout is 5 minutes for Consumption plan.
  • Can be configured up to 10 minutes for Consumption plan.
  • Premium and Dedicated plans can have longer/unlimited timeouts.
  • Important for long-running tasks to prevent premature termination.

Memory trick: Timeout: 'T'erminate 'O'ver 'U'sage 'T'ime.

More Develop Azure compute solutions questions