Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft Exam AZ-204 Topic 19 Question 45 Discussion

Actual exam question for Microsoft's AZ-204 exam
Question #: 45
Topic #: 19
[All AZ-204 Questions]

You are developing an Azure function that connects to an Azure SQL Database instance. The function is triggered by an Azure Storage queue.

You receive reports of numerous System.InvalidOperationExceptions with the following message: ''Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.''

You need to prevent the exception.

What should you do?

Show Suggested Answer Hide Answer
Suggested Answer: C

With the Premium plan the max outbound connections per instance is unbounded compared to the 600 active (1200 total) in a Consumption plan.

Note: The number of available connections is limited partly because a function app runs in a sandbox environment. One of the restrictions that the sandbox imposes on your code is a limit on the number of outbound connections, which is currently 600 active (1,200 total) connections per instance. When you reach this limit, the functions runtime writes the following message to the logs: Host thresholds exceeded: Connections.


https://docs.microsoft.com/en-us/azure/azure-functions/manage-connections

https://docs.microsoft.com/en-us/azure/azure-functions/functions-scale#service-limits

Contribute your Thoughts:

Currently there are no comments in this discussion, be the first to comment!


Save Cancel