exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 2 question 33 discussion

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

HOTSPOT
-

You have an Azure web app named webapp1 that uses the .NET Core runtime stack. You have an Azure Application Insights resource named AppInsights1 that collects telemetry data generated by webapp1.

You plan to deploy webapp1 by using an Azure DevOps pipeline.

You need to modify the sampling rate of the telemetry data processed by AppInsights1 without having to redeploy webapp1 after each modification.

What should you do? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Show Suggested Answer Hide Answer
Suggested Answer:

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
zellck
Highly Voted 11 months ago
1. Disable adaptive sampling 2. Modify usage and estimated costs settings https://learn.microsoft.com/en-us/azure/azure-monitor/app/sampling#types-of-sampling 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 doesn't apply when any other types of sampling are in operation. https://learn.microsoft.com/en-us/azure/azure-monitor/app/sampling#ingestion-sampling Ingestion sampling doesn't operate while adaptive or fixed-rate sampling is in operation. Adaptive sampling is enabled by default when the ASP.NET SDK or the ASP.NET Core SDK is being used, or when Application Insights is enabled in Azure App Service or by using Application Insights Agent.
upvoted 19 times
zellck
10 months, 3 weeks ago
Gotten this in Jun 2023 exam.
upvoted 9 times
...
...
lugia4000
Highly Voted 1 year, 2 months ago
applicationinsights.config is not available on .NET Core, as this link says: https://learn.microsoft.com/en-us/azure/azure-monitor/app/configuration-with-applicationinsights-config "The ApplicationInsights.config and .xml instructions don't apply to the .NET Core SDK. To configure .NET Core applications, follow the instructions in Application Insights for ASP.NET Core applications." If you follow the link on the text above, the next article says: "The Application Insights SDK for ASP.NET Core supports both fixed-rate and adaptive sampling. By default, adaptive sampling is enabled." Therefore you need to disable adaptive sampling, so the first box is incorrect
upvoted 17 times
Tyler2023
9 months, 1 week ago
The second box is not necessary of .NET Core applications, and yeah disable adaptive sampling through code based on that link
upvoted 2 times
...
MSlave
1 year ago
Verified the link, thats correct
upvoted 1 times
...
...
yana_b
Most Recent 8 months, 3 weeks ago
Following the URL provided by @zellck: 1. https://learn.microsoft.com/en-us/azure/azure-monitor/app/sampling#types-of-sampling 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 doesn't apply when any other types of sampling are in operation. => we have to disable adaptive sampling, because it is set by default -> Adaptive sampling is enabled by default when you use the ASP.NET SDK or the ASP.NET Core SDK, and is also enabled by default for Azure Functions. Scrolling down on this page to title Ingestions sampling we will see that ingestions sampling rate is set in the Usage and estimated costs page. Correct answers are: 1. Disable adaptive sampling 2. Modify usage and estimated costs settings
upvoted 4 times
...
master9
9 months ago
Fixed-rate sampling is available in recent versions of the Application Insights SDKs for ASP.NET, ASP.NET Core, Java (both the agent and the SDK), JavaScript, and Python. https://learn.microsoft.com/en-us/azure/azure-monitor/app/sampling
upvoted 1 times
...
renzoku
9 months, 3 weeks ago
from your code repository of webapp1. Disable adaptive sampling, then you can set a fixed sampling percentage of telemetry data collected by Azure Application Insights. You can do it modifying sampling rate telemetry: 1. appsettings.json -> .NET core applications 2. ApplicationInsights.config -> .NET Framework application 3. set up configuration on Azure Application Insights from AppInsights1. Modify the Usage and estimated costs settings, modify the sampling rate of telemetry data.
upvoted 1 times
...
codename0007
11 months, 1 week ago
Yes for the first box we need to disable adaptive sampling. and for the second box it would be configure dynamic export for .Net Core application. https://learn.microsoft.com/en-us/azure/azure-app-configuration/enable-dynamic-configuration-dotnet-core
upvoted 2 times
...
Pamban
11 months, 1 week ago
1st box should be disable adaptive sampling.. please see the note from MS site about adaptive sampling.. 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. Source: https://learn.microsoft.com/en-us/azure/azure-monitor/app/sampling?tabs=net-core-new
upvoted 1 times
...
adityagoel26
1 year, 1 month ago
Modify ApplicationInsights.config: You can modify the ApplicationInsights.config file to adjust the sampling rate as needed without having to redeploy webapp1. Modify the Usage and estimated costs settings: You can modify the sampling rate of the telemetry data processed by AppInsights1 from the Usage and estimated costs settings. This will allow you to adjust the sampling rate without having to redeploy webapp1
upvoted 1 times
...
AlexeyG
1 year, 1 month ago
got this in 02 March 2023 exams. scored 870 marks.
upvoted 4 times
Liriano
1 year, 1 month ago
Do you got any Lab question?
upvoted 2 times
...
Surendra88
10 months, 3 weeks ago
what answer did you select? first one is kind of confusing??
upvoted 1 times
...
...
mohiniu
1 year, 2 months ago
ApplicationInsights.config is a xml file. This file can be used to configure sampling rate. One of the reason of sampling is reducing cost involved in storing metrics data.By sampling instead of storing large data that can be costly, we are actually storing samples of data , which can be a cheaper option. And when we want to sample data , it means we are reducing usage and estimated cost
upvoted 3 times
...
Ak1009
1 year, 2 months ago
Pretty confusing question, Ingestion sampling can help us modify sampling rate without modifying/redeploying app. So we can disable adaptive sampling which will in turn enable ingestion sampling, Moreover, .NET Core does not have ApplicationInsights.config, it has appsettings.json-->Startup.cs But I believe most of us would disable adaptive sampling through the portal and not through web app repo, correct me if I'm wrong
upvoted 2 times
...
nikipediaa
1 year, 2 months ago
Got this Feb 2023
upvoted 6 times
armvch
1 year, 2 months ago
what should we do with this information? we're very happy that you got this question
upvoted 12 times
Henrylgch2
1 year, 1 month ago
I found very useful this information, now you know that you need to pay attention to this question
upvoted 6 times
armvch
1 year, 1 month ago
I think all the questions are here because they were on someone's exam. So this comment is pointless
upvoted 6 times
zellck
11 months ago
This comment will help because you will know which questions are the latest. There are many questions here that are outdated and on someone's exam long time ago, and may not be relevant already since Microsoft updates their exams frequently.
upvoted 9 times
...
...
...
...
...
vxl
1 year, 2 months ago
came up in my exam (febr 2023)
upvoted 3 times
kay000001
1 year, 2 months ago
Most of the question from here would appear in the exam. It would be more beneficial if you can tell us if the answer is correct or not!?
upvoted 4 times
...
Yunus
1 year, 2 months ago
whats the right answer ?
upvoted 2 times
...
...
imanonion
1 year, 2 months ago
As this is a .NET Core app, all the options for the first blank seems to be invalid because .NET Core apps do not have ApplicationInsights.config files. Instead, the settings have to be changed in Program.cs file or appsettings.json. Reference: https://learn.microsoft.com/en-gb/azure/azure-monitor/app/sampling?tabs=net-core-new#types-of-sampling
upvoted 2 times
...
[Removed]
1 year, 3 months ago
I agree with AzureJobsTillRetire. If you want to change the sampling rate without having to redeploy the app, then you have to enable Ingestion Sampling (see https://learn.microsoft.com/en-gb/azure/azure-monitor/app/sampling?tabs=net-core-new#types-of-sampling), and to enable Ingestion Sampling you must disable all other forms of sampling (see the chart at https://learn.microsoft.com/en-gb/azure/azure-monitor/app/sampling?tabs=net-core-new#brief-summary). Hence you must disable Adaptive Sampling.
upvoted 1 times
...
AzureJobsTillRetire
1 year, 3 months ago
Data sampling is to be configured in Usage and estimated costs in Application Insights.
upvoted 4 times
AzureJobsTillRetire
1 year, 3 months ago
I think the first box is Disable adaptive sampling. Adaptive sampling must be disabled for sampling ingestion in Application Insights to happen. You can also modify ApplicationInsights.config on the fixed sampling rate. https://learn.microsoft.com/en-gb/azure/azure-monitor/app/configuration-with-applicationinsights-config But there is requirement as below. You need to modify the sampling rate of the telemetry data processed by AppInsights1 without having to redeploy webapp1 after each modification. Hence Disable adaptive sampling in the code repository is the way to go.
upvoted 3 times
...
AzureJobsTillRetire
1 year, 3 months ago
Select the fraction of data received from your app that the Application Insights service will retain using ingestion sampling. There may be additional sampling also happening by the SDK before data is sent to the Application Insights servers. If your SDK has adaptive sampling enabled or you have manually added code to enable sampling, no ingestion sampling will be applied regardless of the setting above. https://learn.microsoft.com/en-gb/azure/azure-monitor/app/sampling?tabs=net-core-new
upvoted 1 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