Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Exam AZ-104 topic 6 question 20 discussion

Actual exam question from Microsoft's AZ-104
Question #: 20
Topic #: 6
[All AZ-104 Questions]

You have an Azure web app named webapp1.
Users report that they often experience HTTP 500 errors when they connect to webapp1.
You need to provide the developers of webapp1 with real-time access to the connection errors. The solution must provide all the connection error details.
What should you do first?

  • A. From webapp1, enable Web server logging
  • B. From Azure Monitor, create a workbook
  • C. From Azure Monitor, create a Service Health alert
  • D. From webapp1, turn on Application Logging
Show Suggested Answer Hide Answer
Suggested Answer: A ūüó≥ÔłŹ

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
mlantonis
Highly Voted 2 years ago
Correct Answer: A Raw HTTP request data is provided by Web server logging and the question mentions 500 error codes. You need to catch connection error. When the connection fails it happens on web server, not within application. You can do it opening the web application -> Application Service logs -> Web server logging (there are multiple switches there). You can also see the errors live going to "Log stream" pane. Web server logging Windows App Service file system or Azure Storage blobs Raw HTTP request data in the W3C extended log file format. Each log message includes data such as the HTTP method, resource URI, client IP, client port, user agent, response code, and so on.
upvoted 100 times
Spooky7
2 months ago
No, 500 error code means "Internal Server Error" and usually is caused by the application itself. So application logging seems right here and will provide more useful information to developers than web server logs
upvoted 4 times
...
...
zyta
Highly Voted 2 years, 10 months ago
I think A as well. You need to catch connection error. When the connection fails it happens on web server, not within application. You can do it openining the web application >> Application Service logs >> Web server logging (there are multiple switches there) You can also see the errors live going to "Log stream" pane
upvoted 48 times
...
er101q
Most Recent 4 months ago
D. From webapp1, turn on Application Logging. To provide the developers with real-time access to the connection errors, you should first enable Application Logging for the web app. This will enable the logging of detailed information about the application, including any connection errors, to the file system, which the developers can then access to troubleshoot the issue. After Application Logging has been enabled, you may also consider additional monitoring and alerting solutions, such as Azure Monitor or Service Health alerts, to provide ongoing visibility into the health and performance of the web app.
upvoted 2 times
...
Muffay
5 months ago
I don't like this question. HTTP 500 is an internal server error, not really a connection error. In my world this is mostly caused by the application code, so I would look into the application logs first. But as this question explicitly asks about connection errors, I am just confused.
upvoted 3 times
Muffay
4 months, 4 weeks ago
Second thought: Application logging here means *Windows Application Logs*. Ok, those do not contain the logging from my custom application code - thus, WebServer logging is correct.
upvoted 2 times
AbleApe
4 months ago
Since they're using an Azure Web App those logs are stored on the Web App platform. I don't think they mean Windows application logs here. 500 errors you can find in an IIS application log.
upvoted 1 times
...
...
...
SGKN
5 months ago
i think answer should be "D" 'Application Log' How do I check my 500 error in Azure portal? Check logs Open your bot in the Azure portal. Open the App Service Settings / All App service settings page to see all service settings. Open the Monitoring / Diagnostics Logs page for the app service. Ensure that Application Logging (Filesystem) is enabled. ... Switch to the Monitoring / Log Stream page.
upvoted 1 times
...
Aanandan
5 months, 2 weeks ago
Answer is D.. Application logging... have checked there is no option like web server logging in the application service..
upvoted 2 times
_fvt
5 months ago
Here it is: https://learn.microsoft.com/en-us/azure/app-service/troubleshoot-diagnostic-logs
upvoted 1 times
...
...
klexams
7 months, 1 week ago
out of the four options, realtime error details will be: A. From webapp1, enable Web server logging
upvoted 2 times
...
matejka
7 months, 1 week ago
500 error can be pretty much anything either on a webserver or within the app itself. Webserver logs are good to investigate but definitely does not provide all error logs that are needed. There is no correct answer here, but A + D is the closest.
upvoted 2 times
...
Raj70
7 months, 1 week ago
Think D is right. HTTP 500 is more of an application error than a web server connectivity error
upvoted 1 times
dc2k79
7 months, 1 week ago
HTTP 500 is a Layer 7 (Application Layer) error. Should be checked at Web Server level.
upvoted 2 times
...
...
EmnCours
9 months, 1 week ago
Selected Answer: A
Correct Answer: A
upvoted 1 times
...
Lazylinux
11 months, 2 weeks ago
Selected Answer: A
Web server logging is correct
upvoted 2 times
...
dasEnder
1 year ago
Selected Answer: A
Correct
upvoted 1 times
...
barcellos
1 year, 10 months ago
Correct Answer: A Raw HTTP request data is provided by Web server logging and the question mentions 500 error codes. the error 500 is proved form web server, The error 500 is proved from web server. the application do not response. Error 500 is an Internal Server Error (HTTP) status. It indicates that some type of issue is affecting the performance of the server of the site you are trying to access. does not mention for windows or linux. however Correct Answer A
upvoted 4 times
...
ZUMY
2 years, 3 months ago
A is correct
upvoted 6 times
...
Merma
2 years, 3 months ago
Final answer A is correct. For more insight on web server logging vs. application logging: https://stackify.com/azure-app-service-log-files/
upvoted 4 times
barry12
2 years, 2 months ago
indeed, this explanation shows that weblogging is more or less the only option to help with real-time troubleshooting
upvoted 2 times
...
...
toniiv
2 years, 3 months ago
Answer is correct. Web server logging to see HTTP logs, App logging if it were App logs
upvoted 3 times
...
waterzhong
2 years, 4 months ago
Web server logging Raw HTTP request data in the W3C extended log file format. Each log message includes data such as the HTTP method, resource URI, client IP, client port, user agent, response code, and so on.
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 ...