exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 2 question 2 discussion

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

HOTSPOT -
You plan to create alerts that will be triggered based on the page load performance of a home page.
You have the Application Insights log query shown in the following exhibit.

Use the drop-down menus to select the answer choice that completes each statement based on the information presented in the graphic.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: percentile_duration_95 -

Box 2: success -
For example ג€"
requests
| project name, url, success
| where success == "False"
This will return all the failed requests in my App Insights within the specified time range.
Reference:
https://devblogs.microsoft.com/premier-developer/alerts-based-on-analytics-query-using-custom-log-search/

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
Krastt
Highly Voted 4 years, 1 month ago
I agree with the first answer, but the second one is not considering all scenarios. In App Insight you can check the Request resultCode property which will show '403' in case of authentication errors. The answer for the second question should be 'resultCode' instead of 'success', as this will ensure that the error is strictly related to authentication.
upvoted 82 times
Nilf
4 years ago
Not agree. On screenshot you can see only 1 Result Code - 200...
upvoted 8 times
prashanth364
2 years, 5 months ago
Based on your logic, it cant be success also, screenshot is not showing false for Success. So my answer is ResultCode as it clearly filters Authentication related errros
upvoted 5 times
...
...
nicksu
3 years, 10 months ago
It is also tracking 301 and 302, which aren't errors, obviously. But filtering on result oder would include them as well
upvoted 3 times
d0bermannn
3 years, 7 months ago
it depends how to write a filter
upvoted 1 times
...
...
...
monniq
Highly Voted 3 years, 12 months ago
I think the second answer should be resultCode. To detect authentication issue we're interested in 401 and 403. Success could be set to false not only due to authentication issue, but other issues like unhandled exceptions 500, and so on. The first one is correct.
upvoted 38 times
billycat
1 month, 2 weeks ago
Agree with you. ResultCode will be 40x in case of authentication problems. A 200 means that that page was delivered successfully without any issue.
upvoted 1 times
...
d0bermannn
3 years, 7 months ago
agreed, you may filter out all what to wish
upvoted 1 times
...
rdemontis
3 years, 1 month ago
agree with you
upvoted 3 times
...
...
Gooldmember
Most Recent 5 months, 3 weeks ago
1) percentile_duration_50 2) resultCode
upvoted 3 times
...
chloaus
1 year ago
Percentile_duration_95 - This 95th percentile is the highest value left when the top 5% of a numerically sorted set of collected data is discarded. Success - Failed requests (requests/failed) The count of tracked server requests that were marked as failed. By default, the Application Insights SDK automatically marks each server request that returned HTTP response code 5xx or 4xx as a failed request. https://learn.microsoft.com/en-us/azure/azure-monitor/essentials/app-insights-metrics
upvoted 2 times
...
saintnick
1 year, 4 months ago
Both answers are incorrect. Answer 1 cannot be 95th percentile. That means you are creating an alert based on the response time that 5% of your users experience. The correct answer is 50th percentile. The threshold line even serves as a clue. Answer 2 is not success because resultCode is a better option. The requirement is to identify authentication error and that information is held in the resultCode (401).
upvoted 1 times
...
sint822
1 year, 5 months ago
I think the second answer is wrong. Authentication error can be checked with Result Code (401 or 403 for example).
upvoted 1 times
...
WH16
1 year, 8 months ago
On exam 2023-09-06, choose percentile_duration95 and resultCode. Score 933
upvoted 12 times
...
yana_b
1 year, 8 months ago
Provided answer is correct
upvoted 3 times
...
all_cloud
1 year, 10 months ago
We need to return code to know why it has failed.
upvoted 3 times
...
mohiniu
2 years, 2 months ago
Answer should be result code , as we need alert only for authentication error only
upvoted 5 times
...
CaptainJameson
2 years, 2 months ago
Percentile has a good explanation on this page: https://stackoverflow.com/questions/64928045/what-is-percentile-in-azure-metrics-web-app-slow#:~:text=They%20are%20the%20response%20time,take%201.5%20seconds%20or%20more. In short: You want to base your alert on the load experience of most users. Percentile 95 is based on 95% of the data, which is more than 90% or 50%
upvoted 6 times
...
mmdex
2 years, 4 months ago
I see a lot of comments agreeing with the first answer, but no one cares to explain why. Is it really just a misunderstanding, as most (pun intended) people interpret the question as which query takes "the most" users into consideration (which is 95 of course)? But the question is actually about "most" users, that is, more than 50%. And the percentile_duration_50 answer is also supported by the graph itself in my opinion - if you took either 90 or 95 percentile, you would be receiving alerts all the time as the duration is constantly above threshold.
upvoted 6 times
Wengatz
2 years, 4 months ago
50, 90, and 95 would all be acceptable answers for an interpretation of "most users" as "at least 50% of users". If you interpret it as "most all users", 95 would be the best answer here. If I say "most people agree that the Earth is round", chances are, I mean to say that most everyone agrees this. It's a poorly worded question.
upvoted 3 times
FNog
2 years, 1 month ago
We shall not overthink it. 95% it is.
upvoted 1 times
...
...
Fal991l
2 years, 1 month ago
GPT: Percentile_duration_50 represents the median page load time, which is the value that separates the upper half from the lower half of the page load times. This means that 50% of the page loads are faster than the median value and 50% are slower. Therefore, using the median value as the basis for the alerting level would be a good indicator of the page load experience of most users. On the other hand, percentile_duration_95 represents the page load time for the 95th percentile of the users, which is the threshold at which only 5% of the users are experiencing longer page load times. While this can also be a useful metric to monitor, it may not be representative of the page load experience of most users.
upvoted 4 times
...
...
budha
2 years, 4 months ago
It was on my exam on December 7, 2022.
upvoted 4 times
hart232
2 years, 4 months ago
Which answer did you select?
upvoted 1 times
...
...
Atos
2 years, 7 months ago
Could not understand this question until i realised the purple line is meant to be 95. So top answer is correct. Bottom answer should be result code; then you can select codes such as 401.
upvoted 3 times
...
sindhu2693
2 years, 8 months ago
For second option, question clearly states to filter for authentication error, and the apt option would be based on result codes, but not success
upvoted 3 times
...
syu31svc
2 years, 8 months ago
Alert based on most users is 95th percentile is for sure Alert based on authentication is success; either pass or fail Answer to me is correct
upvoted 1 times
...
tjeerd
2 years, 9 months ago
On exam 20220727. Choose 95 percentile and resultCode.
upvoted 5 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