nerdexam
Microsoft

AZ-204 · Question #250

You develop and add several functions to an Azure Function app that uses the latest runtime host. The functions contain several REST API endpoints secured by using SSL. The Azure Function app runs…

The correct answer is B. Create a timer triggered function that calls TrackAvailability() and send the results to Application. You can create an Azure Function with TrackAvailability() that will run periodically according to the configuration given in TimerTrigger function with your own business logic. The results of this test will be sent to your Application Insights resource, where you will be able…

Submitted by suresh_in· Mar 30, 2026Monitor, troubleshoot, and optimize Azure solutions

Question

You develop and add several functions to an Azure Function app that uses the latest runtime host. The functions contain several REST API endpoints secured by using SSL. The Azure Function app runs in a Consumption plan. You must send an alert when any of the function endpoints are unavailable or responding too slowly. You need to monitor the availability and responsiveness of the functions. What should you do?

Options

  • ACreate a URL ping test.
  • BCreate a timer triggered function that calls TrackAvailability() and send the results to Application
  • CCreate a timer triggered function that calls GetMetric("Request Size") and send the results to
  • DAdd a new diagnostic setting to the Azure Function app. Enable the FunctionAppLogs and Send

How the community answered

(42 responses)
  • A
    2% (1)
  • B
    81% (34)
  • C
    12% (5)
  • D
    5% (2)

Explanation

You can create an Azure Function with TrackAvailability() that will run periodically according to the configuration given in TimerTrigger function with your own business logic. The results of this test will be sent to your Application Insights resource, where you will be able to query for and alert on the availability results data. This allows you to create customized tests similar to what you can do via Availability Monitoring in the portal. Customized tests will allow you to write more complex availability tests than is possible using the portal UI, monitor an app inside of your Azure VNET, change the endpoint address, or create an availability test even if this feature is not available in Standard tests are a single request test that is similar to the URL ping test but more advanced. In addition to validating whether an endpoint is responding and measuring the performance, Standard tests also includes SSL certificate validity, proactive lifetime check, HTTP request verb (for example GET,HEAD,POST, etc.), custom headers, and custom data associated with your URL Ping doesn't support checking SSL certificate. https://docs.microsoft.com/en-us/azure/azure-monitor/app/availability-azure-functions https://docs.microsoft.com/en-us/azure/azure-monitor/app/monitor-web-app-availability

Topics

#Application Insights#TrackAvailability#availability monitoring#Consumption plan

Community Discussion

No community discussion yet for this question.

Full AZ-204 Practice