Soru

Zorluk: OrtaCreate and Configure Azure Functions

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.)

  1. Choose the Consumption hosting plan for the Function App.Cevap
  2. Add an application setting named APPLICATIONINSIGHTS_CONNECTION_STRING containing the connection string of the Application Insights instance.Cevap
  3. C
    Choose the Dedicated (App Service) hosting plan with the Basic tier for the Function App.
  4. D
    Deploy the Function App on an App Service plan and configure custom CPU-based autoscale rules.
  5. E
    Add 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

1
Select the appropriate Azure Functions hosting plan.
The Consumption plan is selected because it dynamically scales and scales down to zero instances when idle, minimizing costs.
This satisfies the requirement to scale dynamically and avoid paying for idle instances.
2
Configure telemetry logging integration.
The APPLICATIONINSIGHTS_CONNECTION_STRING application setting is added to the Function App configuration with the resource's connection string.
This complies with modern Azure SDK security practices and enables Application Insights integration for the V4 runtime.

Anahtar Kavram

Azure Functions hosting plans and monitoring configuration
Bu soruyu puanla