exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 5 question 16 discussion

Actual exam question from Microsoft's AZ-204
Question #: 16
Topic #: 5
[All AZ-204 Questions]

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?

  • A. Create a URL ping test.
  • B. Create a timer triggered function that calls TrackAvailability() and send the results to Application Insights.
  • C. Create a timer triggered function that calls GetMetric("Request Size") and send the results to Application Insights.
  • D. Add a new diagnostic setting to the Azure Function app. Enable the FunctionAppLogs and Send to Log Analytics options.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
mlantonis
Highly Voted 3 years, 6 months ago
Based on the doc, I believe B is correct. https://docs.microsoft.com/en-us/azure/azure-monitor/app/availability-azure-functions
upvoted 27 times
...
qzrkfrcglkzzvfrcro
Highly Voted 3 years, 4 months ago
I think the answer should be URL Ping Test. It can send an alert when the website is unavailable or unresponsive. See test timeouts and alerts in the link. https://docs.microsoft.com/en-us/azure/azure-monitor/app/monitor-web-app-availability
upvoted 21 times
troy89
2 years, 9 months ago
But you need a URL test per endpoint, so one URL test wouldn't be enough.
upvoted 2 times
...
Knightie
2 years, 3 months ago
Ping Test only check for response code 200, it will not give you any info after the initial 200 ok code, contents and information will keep loading after the 200 code recieved, so if the 200 there but the page not responsing or the background not processing or not completing, then the ping test will not be able to know...it will still be 200 but the response might be incomplete.
upvoted 2 times
Knightie
2 years, 3 months ago
"responsiveness of the functions"<=== this one will need more than the ping test
upvoted 3 times
...
...
ks321
1 year, 4 months ago
Note that the API is protected by SSL. Does URL ping test support auth?
upvoted 1 times
...
...
cmmr
Most Recent 2 weeks, 3 days ago
The URL Ping will only log the response time if the timeout is reached. To always monitor it, the trackavailability method shall be used. It's nuanced, but I think this is the differentiator.
upvoted 1 times
cmmr
4 days, 7 hours ago
After more thought, the URL ping test seems better suited. The Track availability will not work if the function is down altogether. the URL ping allows a timeout setting, which is the response time threshold. Below that it will fail and generate an alert. And the ping works independently from the function, so it'll alert even if the function is down.
upvoted 1 times
...
...
Ciupaz
1 year ago
Selected Answer: B
Based on the information, creating a timer triggered function that calls TrackAvailability() and sends the results to Application Insights is the best option for monitoring the availability and responsiveness of the functions.
upvoted 1 times
...
uffuchsi
1 year, 9 months ago
It has to be C - The URL ping test uses advanced HTTP request functionality to validate whether an endpoint is responding. They measure the performance associated with that response. They also add the ability to set custom success criteria, coupled with more advanced features like parsing dependent requests and allowing for retries. https://docs.microsoft.com/en-us/azure/azure-monitor/app/monitor-web-app-availability#actions-if-you-see-failures
upvoted 2 times
uffuchsi
1 year, 9 months ago
Apologies - I meant A, not C
upvoted 3 times
...
...
Sriniv
1 year, 9 months ago
Adding a new diagnostic setting (Option D) can enable logging for the Azure Function app, but it will not provide the ability to monitor the availability and responsiveness of the REST API endpoints or generate an alert when they are unavailable or responding too slowly.
upvoted 2 times
...
Sriniv
1 year, 9 months ago
Creating a timer triggered function (Option B or C) can also be used to call the REST API endpoints and report the results to Application Insights. However, this approach requires additional development effort and maintenance overhead, which is not necessary for this scenario. Moreover, it will not provide an immediate alert when the function endpoints are unavailable or responding too slowly.
upvoted 1 times
...
Sriniv
1 year, 9 months ago
the best option is to create a URL ping test to monitor the availability and responsiveness of the REST API endpoints. This can be easily configured in Azure Application Insights with minimal effort and can provide immediate alerts when the endpoints are unavailable or responding too slowly.
upvoted 2 times
...
Dhanishetty
2 years ago
Selected Answer: B
its B........
upvoted 1 times
...
OPT_001122
2 years, 1 month ago
Selected Answer: B
B is correct
upvoted 1 times
...
AZAdam22
2 years, 4 months ago
Selected Answer: A
A - Because the URL ping test automatically measures availability and response times.
upvoted 2 times
...
Eltooth
2 years, 5 months ago
Selected Answer: B
B is correct answer. https://docs.microsoft.com/en-us/azure/azure-monitor/app/availability-azure-functions
upvoted 3 times
...
yohannvf
2 years, 6 months ago
Selected Answer: B
"You need to monitor the availability and responsiveness of the functions." You want it to be on application insights
upvoted 2 times
...
yohannvf
2 years, 6 months ago
"You need to monitor the availability and responsiveness of the functions." You want it to be on application insights
upvoted 1 times
...
iamstudying
2 years, 9 months ago
Selected Answer: A
I would go with A - URL Ping satisfy all the requirements. It does not check SSL validity BUT there is no requirement to do so, buddies https://docs.microsoft.com/en-us/azure/azure-monitor/app/availability-standard-tests
upvoted 3 times
...
adone
2 years, 10 months ago
This scenario does not make any sense. Consumption plans are not intended for high availability because the app may scale to zero when idle which may will leads to cold start of some minute(s) so it makes no sense to monitor it for availability. With URL Ping, you will pay for the compute resources generated by your monitoring request to your URL Ping which makes this option ridiculous with consumption plan. But monitoring your application with an URL Ping might keep your function app up and running if this is what you expect :D The option B is the less worse but keep in mind that consumption plan are not intended for high availability (does not need to be monitored). They are intended for asynchronous executions, even high workloads and parallel executions, which does not require to be highly available. For high availability, choose Premium/Dedicated plans.
upvoted 9 times
...
leonidn
2 years, 11 months ago
Selected Answer: B
I guess an SSL validity check is required. URL ping does not provide this feature. There is no Standard test option. So then, option B is the only one that is viable.
upvoted 3 times
ScubaDiver123456
2 years, 10 months ago
I'm confused. I dont see a requirement to test SSL validity. It only says the API is protected by SSL.
upvoted 2 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago