Suggested Answer:A🗳️
Azure Functions offers built-in integration with Azure Application Insights to monitor functions. The following areas of Application Insights can be helpful when evaluating the behavior, performance, and errors in your functions: Live Metrics: View metrics data as it's created in near real-time.
Given answer is correct.
Live Metrics Stream:
when your function app is connected to Application Insights, you can view log data and other metrics in near real time in the Azure portal using Live Metrics Stream. Open below link for this statement.
https://docs.microsoft.com/en-us/azure/azure-functions/functions-monitoring
not a good option :- "If you enable Applications Insights during development, you might hit this limit during testing. Azure provides portal and email notifications when you're approaching your daily limit. If you miss those alerts and hit the limit, new logs won't appear in Application Insights queries. Be aware of the limit to avoid unnecessary troubleshooting time
"
Live Metrics Stream: when your function app is connected to Application Insights, you can view log data and other metrics in near real time in the Azure portal using Live Metrics Stream. Use this method when monitoring functions running on multiple-instances or on Linux in a Consumption plan. This method uses sampled data.. Answer is A
https://docs.microsoft.com/en-us/azure/azure-functions/functions-monitoring
by using Microsoft.Extensions.Logging to log locally we:
1) Minimize Storage costs on Azure
2) prevent Application Insights to reach limits
3) We can see the logs locally, we don't need to query anything or go to azure portal
Also there is this:
"Data storage costs must be minimized."
which means that if you can not throw data to azure from logs while you are developing you minimize costs.
This adding code to log locally from the Microsoft.Extensions.Logging is the way to go
If it is a timeout I might not go check the metrics but of course it depends on what I expect. I might want to see the application logs. But I wonder how can one question be so confusing and totally dependent on the person checking the issue and his knowledge on the application. It totally depends, Microsoft
Should not B happen before A happen? I would think correct answer is B then A ...
If there is no log analytics, nor application insights connected, how can live stream happens?
"when your function app is connected to Application Insights, you can view log data and other metrics in near real time in the Azure portal using Live Metrics Stream. " If there are no application insights, there cannot be any Live Steaming for A
The question specifically says "in a development environment". Live Metrics Stream is recommended for production applications. I would go for D.
https://docs.microsoft.com/en-us/azure/azure-monitor/app/live-stream
I think the answer should be (D) - Add new diagnostics settings.
https://docs.microsoft.com/en-us/azure/azure-functions/functions-monitor-log-analytics?tabs=csharp
"From the Monitoring section of your function app in the Azure portal, select Diagnostic settings, and then select Add diagnostic setting."
Live Metrics is used for monitoring a live system and should not be necessary in a development environment, because there are not that many events to use the "big canon".
https://docs.microsoft.com/en-us/azure/azure-monitor/app/live-stream
Streaming Logs
While developing an application, you often want to see what's being written to the logs in near real time when running in Azure.
There are two ways to view a stream of the log data being generated by your function executions.
Built-in log streaming: the App Service platform lets you view a stream of your application log files. This stream is equivalent to the output seen when you debug your functions during local development and when you use the Test tab in the portal. All log-based information is displayed. For more information, see Stream logs. This streaming method supports only a single instance, and can't be used with an app running on Linux in a Consumption plan.
Live Metrics Stream: when your function app is connected to Application Insights, you can view log data and other metrics in near real time in the Azure portal using Live Metrics Stream. Use this method when monitoring functions running on multiple-instances or on Linux in a Consumption plan. This method uses sampled data.
https://docs.microsoft.com/en-us/azure/azure-functions/functions-monitoring
I do not understand the explanation: CONNECT Live Metrics Stream from Application Insights TO THE AZURE FUNCTION app and filter the metrics... Functions have InSights integrated by default. I presume, I should check collected data somehow. But not connect anything... ?
upvoted 5 times
...
This section is not available anymore. Please use the main Exam Page.AZ-204 Exam Questions
Log in to ExamTopics
Sign in:
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.
Deep007
Highly Voted 4 years, 3 months agosatyadharma
3 years, 6 months ago27close
Highly Voted 4 years, 5 months agooverhill
Most Recent 5 months agooverhill
5 months agoRegex37
3 months agooverhill
5 months agooverhill
5 months ago1CY1
10 months agosurprise0011
2 years agoOPT_001122
2 years, 5 months agogmishra88
2 years, 6 months agogmishra88
2 years, 6 months agoning
3 years, 8 months agoDefaultName2
3 years, 5 months agoZidimirite
4 years agoning
3 years, 8 months agohstml
3 years, 7 months agoidrisfl
4 years, 1 month agorajwit
4 years, 3 months ago[Removed]
4 years, 3 months agoDeep007
4 years, 3 months agoJVTM
4 years, 5 months ago