exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 16 question 2 discussion

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

You need to investigate the http server log output to resolve the issue with the ContentUploadService.
Which command should you use first?

  • A. az webapp log
  • B. az ams live-output
  • C. az monitor activity-log
  • D. az container attach
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
Whirly
Highly Voted 4 years ago
Answer is az container attach Ref: https://docs.microsoft.com/en-us/azure/container-instances/container-instances-get-logs
upvoted 60 times
maukaba
3 years, 5 months ago
C it's correct see link https://docs.microsoft.com/en-us/azure/app-service/troubleshoot-http-502-http-503
upvoted 3 times
...
Zidimirite
4 years ago
It's not deployed to a container. This is a regular webapp so A, az webapp log is the correct answer.
upvoted 3 times
clarionprogrammer
4 years ago
It is. Note the type in the ContentUploadService log.
upvoted 2 times
...
ning
3 years, 8 months ago
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
upvoted 1 times
...
somenkr
3 years, 9 months ago
It is , Read the question again.
upvoted 2 times
...
...
KingChuang
2 years, 4 months ago
On my exam 2022-12-26. Chose:D
upvoted 3 times
...
ray01
4 years ago
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"
upvoted 12 times
maukaba
3 years, 5 months ago
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
upvoted 1 times
1CY1
9 months, 2 weeks ago
Also, this is probably what MS wants you to say. -> Ans : C
upvoted 1 times
...
...
...
...
clarionprogrammer
Highly Voted 4 years ago
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
upvoted 14 times
...
Rhashik
Most Recent 9 months, 1 week ago
Selected Answer: C
C is the first step
upvoted 1 times
...
DamianSawula
11 months, 3 weeks ago
Selected Answer: D
On my exam 2024-05-16, answered D, 887/1000
upvoted 1 times
...
james2033
1 year, 1 month ago
az container attach --resource-group myResourceGroup --name mycontainer https://learn.microsoft.com/en-us/azure/container-instances/container-instances-quickstart#attach-output-streams
upvoted 1 times
...
BaoNguyen2411
1 year, 9 months ago
got this question on 29/06/2023
upvoted 1 times
...
NightshadeRC
1 year, 9 months ago
Had this question today: 2023-07-26
upvoted 1 times
...
JH81
1 year, 10 months ago
Selected Answer: C
Another wonderfully obtuse question. I'm not going to disagree that ContentUploadService is hosted in a container but I think MS wants answer C.
upvoted 3 times
...
adilkhan
2 years ago
A is the right answer. ContentUploadService has nothing to do with the CONTAINER!
upvoted 1 times
...
uffuchsi
2 years, 2 months ago
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
upvoted 3 times
...
AlexeyG
2 years, 2 months ago
Got this in 16/02/2023
upvoted 1 times
...
hubekpeter
2 years, 5 months ago
Selected Answer: D
https://learn.microsoft.com/en-us/azure/container-instances/container-instances-get-logs
upvoted 3 times
...
OPT_001122
2 years, 5 months ago
Selected Answer: D
az container attach
upvoted 2 times
...
TheExamMaster2020
2 years, 5 months ago
Did my exam on 15th November 2022. This test case and question was on it.
upvoted 1 times
...
gmishra88
2 years, 6 months ago
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
upvoted 2 times
gmishra88
2 years, 6 months ago
az monitor activity-log alert create -n {AlertName} -g {ResourceGroup} \ --condition category=ServiceHealth and level=Error
upvoted 1 times
...
gmishra88
2 years, 6 months ago
az container attach can be used in the second step of collect data (observer and monitor, collect data and mitigate) to get the log stream.
upvoted 1 times
...
gmishra88
2 years, 6 months ago
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
upvoted 1 times
...
...
Eltooth
2 years, 10 months ago
Selected Answer: D
D is correct answer. az container attach
upvoted 5 times
...
heisenberg33
3 years, 2 months ago
Selected Answer: D
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
upvoted 3 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