注:この質問は、同じシナリオを提示する一連の質問の一部です。シリーズの各質問には、述べられた目標を達成する可能性のある独自の解決策が含まれています。一部の質問セットには複数の正しい解決策がある場合がありますが、他の質問セットには正しい解決策がない場合があります。
このセクションの質問に回答した後は、その質問に戻ることはできません。その結果、これらの質問はレビュー画面に表示されません。
Azure StorageBLOBデータを処理するためのHTTPトリガーAzureFunctionアプリを開発します。アプリは、blobの出力バインディングを使用してトリガーされます。
アプリは4分後もタイムアウトし続けます。アプリはBLOBデータを処理する必要があります。
アプリがタイムアウトせず、BLOBデータを処理しないようにする必要があります。
解決策:App Serviceホスティングプランを使用するようにアプリを構成し、AlwaysOn設定を有効にします。
ソリューションは目標を達成していますか?
正解:B
Always On enables waking up on HTTP trigger, but does not prevent the exceeding the max time out time of 230 seconds.
If you run on an App Service plan, you should enable the Always on setting so that your function app runs correctly. On an App Service plan, the functions runtime goes idle after a few minutes of inactivity, so only HTTP triggers will "wake up" your functions. The Always on setting is available only on an App Service plan. On a Consumption plan, the platform activates function apps automatically.
Reference:
https://docs.microsoft.com/en-us/azure/azure-functions/dedicated-plan#always-on