Exam AZ-204 All QuestionsBrowse all questions from this exam
Question 93

HOTSPOT

-

You plan to develop an Azure Functions app with an Azure Blob Storage trigger. The app will be used infrequently, with a limited duration of individual executions.

The app must meet the following requirements:

• Event-driven scaling

• Support for deployment slots

• Minimize costs

You need to identify the hosting plan and the maximum duration when executing the app.

Which configuration setting values should you use? To answer, select the appropriate values in the answer area.

NOTE: Each correct selection is worth one point.

    Correct Answer:

Discussion
Ciupaz

Correct. "used infrequently" -> Consumption And 10mins is a good choice.

Schwopak

Agree though my reasoning for Consumption stems from "minimize cost". Max timeout (computation time) for consumption plan azure functions is 10 min. https://learn.microsoft.com/en-us/azure/azure-functions/functions-scale

1CY1

Consumption supports : - 2 deployment slots. - minimizes costs for infrequent use. - event driven scaling. Timeout: Consumption max : 10 minutes Answer => Consumption, 10 minutes.

1CY1

Sorry that should be execution time not timeout.

AlbertoBT

Right Answer: Premium - 230 Event-Driven requirement: Is only souported by Consumption and Premium https://learn.microsoft.com/en-us/azure/azure-functions/functions-scale#scale Slot requirement: Is only souported by Dedicated and Premium "Function apps running under the Apps Service plan may have multiple slots, while under the Consumption plan only one slot is allowed." https://learn.microsoft.com/en-us/azure/azure-functions/functions-deployment-slots Minimize costs: Is not relevant because there is just one service plan that meets the previous requirements

AlbertoBT

Timeout: Premium and Dedicated max -> unbounded Consumption max -> 10 minutes https://learn.microsoft.com/en-us/azure/azure-functions/functions-scale#service-limits 230 seconds is the maximum amount of time that an HTTP triggered function https://learn.microsoft.com/en-us/azure/azure-functions/functions-scale#timeout Premium unlimited could be a good choice for a Durable Function but is for "a limited duration of individual executions" so the minimun valio can fit.

130nk3r5

No HTTP one here...? I'll go with Premium and unlimited here. Minimizing costs here is the issue ?!? This is a stupid question.

SSR999

Consumption plan also supports 2 slots..https://learn.microsoft.com/en-us/azure/azure-functions/functions-scale#service-limits Answer; Consumption - 10 min

raymond_abcd

Function apps running in a Consumption plan have a single extra slot for staging.

1CY1

2 deployment slots are supported on a consumption plan. https://learn.microsoft.com/en-us/azure/azure-functions/functions-scale#service-limits

FeriAZ

Hosting Plan: Consumption Maximum Execution Time: 10 minutes

dino_co

Hosting Plan: Consumption - The Consumption plan automatically scales based on demand, supports deployment slots, and you only pay for compute resources when your functions are running. This makes it a cost-effective choice for applications that are used infrequently. Maximum Execution Time: 10 minutes. In the Consumption plan, function executions time out after five minutes by default, but this can be set to a maximum of ten minutes.

raymond_abcd

Consumption plan has 2 slots, see: https://learn.microsoft.com/en-us/azure/azure-functions/functions-scale#service-limits Max Timeout is 10 minutes (when HTTP triggered 230 secs)

kumarts

Consumption - 10 minutes is right...Event driven is supported in Consumption and Premium. Consumption plan also supports 2 slots. Refer weblink - https://learn.microsoft.com/en-us/azure/azure-functions/functions-scale