Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.
Suggested Answer:C🗳️
Scenario: Users of the ContentUploadService report that they occasionally see HTTP 502 responses on specific pages. "502 bad gateway" and "503 service unavailable" are common errors in your app hosted in Azure App Service. Microsoft Azure publicizes each time there is a service interruption or performance degradation. The az monitor activity-log command manages activity logs. Note: Troubleshooting can be divided into three distinct tasks, in sequential order: 1. Observe and monitor application behavior 2. Collect data 3. Mitigate the issue Reference: https://docs.microsoft.com/en-us/cli/azure/monitor/activity-log
az container attach only gives STDOUT and STDERR, not web server log ...
web server log can have option to see STDOUT / STDERR as well as all other possible log files
Correct. If one will take a look at "CS09" line, it's clear that "ContentUploadService" is a container, so the first step should be "az container attach"
A web app can be deployed both as source code and as a docker container.
C it's correct see link https://docs.microsoft.com/en-us/azure/app-service/troubleshoot-http-502-http-503
It is not A. "az webapp log" by itself is not a command. It would need to be "az webapp log tail" or "az webapp log download".
https://docs.microsoft.com/en-us/cli/azure/webapp/log?view=azure-cli-latest
D - Scenario: The ContentAnalysisService is deployed with Azure Container Instances from a private Azure Container Registry named AmyImages. The solution will use eight CPU cores.
When you have a misbehaving container in Azure Container Instances, start by viewing its logs with az container logs, and stream its standard out and standard error with az container attach.
https://docs.microsoft.com/en-us/azure/container-instances/container-instances-get-logs
Without knowing what Microsoft thinks it is difficult to answer this question.
* az monitor activity-log alert create can be used to create an alert. If you follow the page then that is the first step. Monitor the service health and for that create alerts. Thi tool can be used for that. https://learn.microsoft.com/en-us/azure/app-service/troubleshoot-http-502-http-503
* az container attach : To get the current log output, but that is not a good option to debug this issue.
I will bet on az monitor activity-log. And I'm changing my original answer from the first iteration of looking at the options
But it asks which you will use first then I guess Microsoft wants me to follow that step exactly like a machine and reading their manuals as soon as I face an issue. So it is definitely alerts in the first step; Observe and monitor. This is a horrible question to ask what I will do first. I will go get a coffee first, microsoft
ContentUploadService is a container, see line CS06-CS09. Ref: https://docs.microsoft.com/en-us/azure/container-instances/container-instances-get-logs#attach-output-streams
ConentCotainerService is hosted in container services. Hense, the correct answer is az container attach.
https://docs.microsoft.com/en-us/azure/container-instances/container-instances-get-logs#attach-output-streams
My two cents...
Based on info on 502 and 503 on page https://docs.microsoft.com/en-us/azure/app-service/troubleshoot-http-502-http-503
It is possible that the root cause is "our" app or unavailability of Azure service
For Azure services: Microsoft Azure publicizes each time there is a service interruption or performance degradation. Which leads to answer C
For your own applications: A or D. A has no info which command it is using. If using DOWNLOAD it will give us some history info. If using TAIL it will give us real time info similar to D.
So if this happens occasionally, there is a small chance that it will happen right when we are watching so I would rather go and check the history info - A.
Now between A and C - both are correct because the problem could be caused by Azure also since it is occasionally occuring.
So we need more info to decide if the problem is A or C.
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.
Whirly
Highly Voted 2 years, 11 months agomaukaba
2 years, 4 months agoZidimirite
2 years, 11 months agoclarionprogrammer
2 years, 11 months agoning
2 years, 7 months agosomenkr
2 years, 8 months agoKingChuang
1 year, 3 months agoray01
2 years, 11 months agomaukaba
2 years, 4 months agoclarionprogrammer
Highly Voted 2 years, 11 months agojames2033
Most Recent 2 weeks, 1 day agoBaoNguyen2411
8 months agoNightshadeRC
8 months agoJH81
9 months, 1 week agoadilkhan
11 months, 3 weeks agouffuchsi
1 year, 1 month agoAlexeyG
1 year, 1 month agohubekpeter
1 year, 4 months agoOPT_001122
1 year, 4 months agoTheExamMaster2020
1 year, 4 months agogmishra88
1 year, 5 months agogmishra88
1 year, 5 months agogmishra88
1 year, 5 months agogmishra88
1 year, 5 months agoEltooth
1 year, 9 months agoheisenberg33
2 years, 1 month agoleonidn
2 years, 1 month agolugospod
2 years, 2 months ago