You are deploying a new Azure Function App (V4 runtime) to process background tasks. You must configure the environment to meet the following requirements:
1. Automatically scale instances to handle variable workloads, and scale down to zero instances during periods of inactivity to minimize costs.
2. Ensure that telemetry data is successfully captured and sent to an existing Application Insights instance.
3. Keep the configuration aligned with modern Azure security and SDK guidelines by avoiding deprecated settings.
Which of the following configuration actions should you perform? (Select TWO.)
- Choose the Consumption hosting plan for the Function App.Cevap
- Add an application setting named APPLICATIONINSIGHTS_CONNECTION_STRING containing the connection string of the Application Insights instance.Cevap
- CChoose the Dedicated (App Service) hosting plan with the Basic tier for the Function App.
- DDeploy the Function App on an App Service plan and configure custom CPU-based autoscale rules.
- EAdd an application setting named APPINSIGHTS_INSTRUMENTATIONKEY containing only the instrumentation key to enable telemetry.
Cevap
To meet the requirements, you should choose the Consumption hosting plan for the Function App and add an application setting named APPLICATIONINSIGHTS_CONNECTION_STRING with the connection string of the Application Insights instance.
To satisfy the requirements, the Function App must be deployed on the Consumption plan, which automatically scales instances and shuts down all instances when idle to avoid charges. In addition, the modern Azure Functions V4 runtime requires using the APPLICATIONINSIGHTS_CONNECTION_STRING app setting to configure telemetry integration with Application Insights.
Adım Adım Çözüm
Anahtar Kavram
Azure Functions hosting plans and monitoring configuration