Microsoft Azure Developer Associate AZ-204 Practice Question
You operate a .NET 6 isolated-process Azure Functions app that already sends telemetry to Application Insights. Incoming traffic has grown sharply and you are now exceeding the daily data-ingestion limit. You must reduce the amount of telemetry sent but still guarantee that every exception is always stored in Application Insights. Which host.json configuration meets these requirements?
Sampling can be configured for Azure Functions in the host.json file. When sampling is enabled, all telemetry types listed under excludedTypes are exempt from sampling and are always transmitted. Setting isEnabled to true and specifying a maxTelemetryItemsPerSecond value throttles the flow for the remaining telemetry types. Therefore, enabling sampling and listing Exception under excludedTypes ensures every exception is kept while other telemetry is sampled. The other answers either disable sampling entirely or sample every telemetry type, both of which could drop exception data, or they mis-use includedTypes which would cause only the listed types to be sampled, again risking lost exceptions.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What does 'Application Insights' do in Azure Functions?
Open an interactive chat with Bash
What is 'sampling' in Application Insights, and why is it important?
Open an interactive chat with Bash
What is the role of 'excludedTypes' in the host.json configuration?
Open an interactive chat with Bash
Microsoft Azure Developer Associate AZ-204
Monitor and troubleshoot Azure solutions
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .