exam questions

Exam AZ-203 All Questions

View all questions & answers for the AZ-203 exam

Exam AZ-203 topic 5 question 1 discussion

Actual exam question from Microsoft's AZ-203
Question #: 1
Topic #: 5
[All AZ-203 Questions]

You develop an Azure web app. You monitor performance of the web app by using Application Insights.
You need to ensure the cost for Application Insights does not exceed a preset budget.
What should you do?

  • A. Implement ingestions sampling using the Application Insights SDK.
  • B. Set a daily cap for the Application Insights instance.
  • C. Implement ingestion sampling using the Azure portal.
  • D. Implement adaptive sampling using the Azure portal.
  • E. Implement adaptive sampling using the Application Insights SDK.
Show Suggested Answer Hide Answer
Suggested Answer: E 🗳️
Sampling is an effective way to reduce charges and stay within your monthly quota.
You can set sampling manually, either in the portal on the Usage and estimated costs page; or in the ASP.NET SDK in the .config file; or in the Java SDK in the
ApplicationInsights.xml file, to also reduce the network traffic.
Adaptive sampling is the default for the ASP.NET SDK. Adaptive sampling automatically adjusts to the volume of telemetry that your app sends. It operates automatically in the SDK in your web app so that telemetry traffic on the network is reduced.
Incorrect Answers:
B: You can use the daily volume cap to limit the data collected.
To change the daily cap, in the Configure section of your Application Insights resource, in the Usage and estimated costs pane, select Daily Cap.
References:
https://docs.microsoft.com/en-us/azure/azure-monitor/app/sampling

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
Regimiento
Highly Voted 5 years, 4 months ago
The answer should be B: setting daily cap will prevent exceeding predefined limit. E is incorrect, as it only reduces the amount of data, but not limits it to specific max amount.
upvoted 35 times
cbn
4 years, 2 months ago
Agree. Website is 'being developed' and need to monitor performance while not exceeding the preset budget.
upvoted 1 times
...
...
KK_uniq
Highly Voted 5 years, 1 month ago
Sorry it wil be E only. You can use the daily volume cap to limit the data collected. However, if the cap is met, a loss of all telemetry sent from your application for the remainder of the day occurs. It is not advisable to have your application hit the daily cap. You can't track the health and performance of your application after it reaches the daily cap. Instead of using the daily volume cap, use sampling to tune the data volume to the level you want. Then, use the daily cap only as a "last resort" in case your application unexpectedly begins to send much higher volumes of telemetry.
upvoted 16 times
pieixoto
4 years, 11 months ago
While your answer is best practice it does not meet the requirement. The requirement is to "ensure the cost for Application Insights does not exceed a preset budget." You cannot do this with adaptive sampling alone.
upvoted 5 times
...
[Removed]
4 years, 11 months ago
B & E seem right to me, together. Otherwise only B. E is good practice but doesn't keep the cost down which is what the question is asking.
upvoted 2 times
...
aftab7500
4 years, 5 months ago
https://docs.microsoft.com/en-us/azure/azure-monitor/app/pricing
upvoted 2 times
...
cbn
4 years, 2 months ago
Website is 'being developed' and need to monitor performance while not exceeding the preset budget. I will go with "B"
upvoted 1 times
...
...
AshwaniT
Most Recent 4 years ago
'B' is the correct answer here.
upvoted 1 times
...
ss22
4 years, 2 months ago
Answer should be B
upvoted 1 times
...
priyankareddy
4 years, 4 months ago
Reason for choosing B. https://docs.microsoft.com/en-us/azure/azure-monitor/platform/manage-cost-storage#understand-your-usage-and-estimate-costs. The daily cap is intended to be used as a way to manage an unexpected increase in data volume from your managed resources and stay within your limit, or when you want to limit unplanned charges for your workspace.
upvoted 2 times
Cornholioz
4 years, 4 months ago
Once Daily cap is reached, it will stop pumping info. Loss. Ingestion sampling is for server side. Adaptive Sampling seems right. To be done using SDK. I'll go with E.
upvoted 1 times
...
...
novice25
4 years, 6 months ago
Why not D an option here, pls suggest?
upvoted 1 times
rcisz
4 years, 5 months ago
I think D. You can implement after observation of volume of metrics, how to set sampling .. as stated in documentation
upvoted 1 times
...
...
MAzureLearner2020
4 years, 6 months ago
There is no information about the web app. Adaptive sampling is only available for ASP.NET applications. Ingestion sampling available if no other sampling is in effect. However I guess it should be B, since it is the only way to ensure it.
upvoted 3 times
...
Larry616
4 years, 8 months ago
Why not A? A can control the quota Ingestion sampling happens at the Application Insights service endpoint. It discards some of the telemetry that arrives from your app, at a sampling rate that you set. It doesn't reduce telemetry traffic sent from your app, but helps you keep within your monthly quota. The main advantage of ingestion sampling is that you can set the sampling rate without redeploying your app. Ingestion sampling works uniformly for all servers and clients, but it does not apply when any other types of sampling are in operation.
upvoted 1 times
Larry616
4 years, 7 months ago
Sorry, A is wrong coz it happens on server side, only can be configued in portal rather than SDK on client side.
upvoted 2 times
...
...
harry973
4 years, 8 months ago
With the ASP.NET SDK's adaptive sampling, the data volume is adjusted automatically to keep within a specified maximum rate of traffic for default Application Insights monitoring. If the application produces a low amount of telemetry, such as when debugging or due to low usage, items won't be dropped by the sampling processor as long as volume is below the configured events per second level. For a high volume application, with the default threshold of five events per second, adaptive sampling will limit the number of daily events to 432,000. Using a typical average event size of 1 KB, this corresponds to 13.4 GB of telemetry per 31-day month per node hosting your application (since the sampling is done local to each node.) https://docs.microsoft.com/en-us/azure/azure-monitor/app/pricing so, cost limit can be decided using adaptive sampling also. Also, the questions says we need to monitor the web app which wont be possible if daily cap is met.
upvoted 1 times
...
jw_duke
4 years, 9 months ago
I would go with E due to the operational impact when setting a cap on the Application Insight. During the high traffic volume, the cap limit would be easily reached and application insight would stop collecting data.
upvoted 1 times
...
brajen
4 years, 9 months ago
Answer is B: You can set a daily cap to ensure that the cost does not exceed a budget. You can go to “Usage and estimated costs” for your Application Insights resource and then hit on Daily cap.
upvoted 1 times
...
pranay
4 years, 9 months ago
The main advantages of sampling are: 1.Application Insights service drops ("throttles") data points when your app sends a very high rate of telemetry in a short time interval. Sampling reduces the likelihood that your 2.application will see throttling occur. 3.To keep within the quota of data points for your pricing tier. 4.To reduce network traffic from the collection of telemetry. https://docs.microsoft.com/en-us/azure/azure-monitor/app/sampling As per 3rd point sampling has to be used to keep data withing limit and preferred sampling is always adaptive. So answer should be E
upvoted 1 times
...
oxaytol
4 years, 10 months ago
This one is tricky, i'm pretty sure that given answer is correct, since it's described in best practices as follows: "Sampling is a feature in Azure Application Insights. It is the recommended way to reduce telemetry traffic, data costs, and storage costs, while preserving a statistically correct analysis of application data"
upvoted 2 times
...
AK89
4 years, 11 months ago
The answer should be B
upvoted 2 times
...
riley5
5 years ago
"Adaptive sampling is enabled by default in all the latest versions of the Application Insights ASP.NET and ASP.NET Core Software Development Kits (SDKs). It is also used by Azure Functions." https://docs.microsoft.com/en-us/azure/azure-monitor/app/pricing If its enabled by default, then it's already implemented, which begs the question if the default answer is correct for this question.
upvoted 1 times
...
riley5
5 years ago
here are the steps given in the documentation for dealing with the issue: A. Review your data volume for the month. This includes all the data that's received and retained (after any sampling) from your server and client apps, and from availability tests. B. A separate charge is made for multi-step web tests. (This doesn't include simple availability tests, which are included in the data volume charge.) C. View data volume trends for the past month. D. Enable data ingestion sampling. E. Set the daily data volume cap. https://docs.microsoft.com/en-us/azure/azure-monitor/app/pricing From this, both ingestion sampling and setting a daily cap volume seem to be correct.
upvoted 1 times
Ananas
4 years, 8 months ago
From this, they seem to be correct when used together
upvoted 1 times
...
...
realbart
5 years ago
Types of sampling There are three different sampling methods: Adaptive sampling automatically adjusts the volume of telemetry sent from the SDK in your ASP.NET/ASP.NET Core app, and from Azure Functions. This is the default sampling when you use the ASP.NET or ASP.NET Core SDK. Adaptive sampling is currently only available for ASP.NET server-side telemetry, and for Azure Functions. Fixed-rate sampling reduces the volume of telemetry sent from both your ASP.NET or ASP.NET Core or Java server and from your users' browsers. You set the rate. The client and server will synchronize their sampling so that, in Search, you can navigate between related page views and requests. Ingestion sampling happens at the Application Insights service endpoint. It discards some of the telemetry that arrives from your app, at a sampling rate that you set. It doesn't reduce telemetry traffic sent from your app, but helps you keep within your monthly quota. The main advantage of ingestion sampling is that you can set the sampling rate without redeploying your app. Ingestion sampling works uniformly for all servers and clients, but it does not apply when any other types of sampling are in operation.
upvoted 5 times
riley5
5 years ago
From this, are you saying ingestion sampling is correct?
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago