exam questions

Exam AZ-305 All Questions

View all questions & answers for the AZ-305 exam

Exam AZ-305 topic 4 question 81 discussion

Actual exam question from Microsoft's AZ-305
Question #: 81
Topic #: 4
[All AZ-305 Questions]

You are developing an app that will use Azure Functions to process Azure Event Hubs events. Request processing is estimated to take between five and 20 minutes.

You need to recommend a hosting solution that meets the following requirements:

• Supports estimates of request processing runtimes
• Supports event-driven autoscaling for the app

Which hosting plan should you recommend?

  • A. Dedicated
  • B. Consumption
  • C. App Service
  • D. Premium
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
NotMeAnyWay
Highly Voted 1 year, 5 months ago
Selected Answer: D
D. Premium The Premium plan is the best fit for this scenario. It supports both longer execution times and event-driven scaling, which are the requirements specified in the question. Azure Functions on a Premium plan can run for a longer period, up to 60 minutes (or indefinitely if the host.json "functionTimeout" setting is null), making it suitable for the estimated request processing times of five to 20 minutes. The Premium plan also supports event-driven autoscaling. The Consumption plan supports event-driven autoscaling but only allows functions to run for up to 10 minutes, so it wouldn't support the estimated request processing times of five to 20 minutes. The Dedicated and App Service plans can run for a longer period, but they do not support event-driven autoscaling. The Dedicated plan is also the most costly option and should be used when you need the most control over the function app environment.
upvoted 23 times
...
azkumar305
Highly Voted 1 year, 7 months ago
Got this on 14-Apr-2023
upvoted 15 times
...
SeMo0o0o0o
Most Recent 3 weeks, 1 day ago
Selected Answer: D
D is correct
upvoted 1 times
...
Lazylinux
7 months, 2 weeks ago
Selected Answer: D
Given Answer D is correct as per Scale-in behaviors Event-driven scaling automatically reduces capacity when demand for your functions is reduced. It does this by draining instances of their current function executions and then removes those instances. This behavior is logged as drain mode. The grace period for functions that are currently executing can extend up to 10 minutes for Consumption plan apps and up to 60 minutes for Premium plan apps. Event-driven scaling and this behavior don't apply to Dedicated plan apps. The following considerations apply for scale-in behaviors: For Consumption plan function apps running on Windows, only apps created after May 2021 have drain mode behaviors enabled by default. To enable graceful shutdown for functions using the Service Bus trigger, use version 4.2.0 or a later version of the https://learn.microsoft.com/en-us/azure/azure-functions/event-driven-scaling?tabs=azure-cli
upvoted 1 times
...
BShelat
11 months, 4 weeks ago
Selected Answer: D
https://learn.microsoft.com/en-us/azure/azure-functions/functions-scale#scale D is the answer.
upvoted 1 times
...
zellck
1 year, 9 months ago
Selected Answer: D
D is the answer. https://learn.microsoft.com/en-us/azure/event-hubs/compare-tiers#features Premium Dynamic Partition scale out - Yes
upvoted 6 times
zellck
1 year, 9 months ago
https://learn.microsoft.com/en-us/azure/azure-functions/functions-scale#timeout Premium plan - default timeout: 30 mins - max timeout: Unlimited
upvoted 3 times
...
zellck
1 year, 9 months ago
https://learn.microsoft.com/en-us/azure/azure-functions/functions-scale#scale Premium plan - Event driven. Scale out automatically, even during periods of high load. Azure Functions infrastructure scales CPU and memory resources by adding additional instances of the Functions host, based on the number of events that its functions are triggered on.
upvoted 3 times
...
...
VBK8579
1 year, 9 months ago
Selected Answer: D
App timeout duration for Comsumption plan is 5 mins default and Maximum is 10 mins. For dedicated and Premimum, it is 30 mins default and maximum is unlimited. Dedicated supports Autoscaling but cannot support event driven. Only Consumption and Premium supports Event driven autoscaling. So best suitable option is Premium
upvoted 2 times
...
OPT_001122
1 year, 10 months ago
Selected Answer: D
D. Premium
upvoted 2 times
...
Jzx
1 year, 10 months ago
Selected Answer: D
D it is...
upvoted 1 times
...
janvandermerwer
1 year, 10 months ago
Selected Answer: D
Let's go with D - Mostly due to time based limits.
upvoted 2 times
...
vldt
1 year, 10 months ago
Selected Answer: D
Only Dedicated and Premium have the matching timeout so we need to choose between A and D. Then as usual they let us guess what is hidden in the "Supports estimates of request processing runtimes". If it is "Predictive scaling and costs are required" then the correct answer is D as per https://learn.microsoft.com/en-us/azure/azure-functions/functions-scale#overview-of-plans
upvoted 2 times
...
RandomNickname
1 year, 10 months ago
Selected Answer: D
D looks like as per article provided by jose https://learn.microsoft.com/en-us/azure/azure-functions/functions-scale#timeout
upvoted 1 times
...
rolmisha
1 year, 10 months ago
Premium - consumption time is up to 30 minutes.
upvoted 1 times
...
[Removed]
1 year, 10 months ago
Think this should be B, consumption: The Consumption Plan is a serverless hosting plan that automatically scales the number of instances of your function based on the number of incoming events, which can help to optimize costs and ensure that your app can handle varying loads. Additionally, the Consumption Plan supports the ability to set a timeout for your functions, which can help to ensure that your app can handle estimates of request processing runtimes.
upvoted 2 times
jose
1 year, 10 months ago
In consumption plan the maximum timeout is 10 minutes: https://learn.microsoft.com/en-us/azure/azure-functions/functions-scale#timeout
upvoted 6 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...