Microsoft Azure Developer Associate AZ-204 Practice Question
You are instrumenting an ASP.NET Core web API with the Application Insights SDK. Inside a service class you need to record the execution time (in milliseconds) of an internal algorithm so that the numeric values are automatically aggregated (count, sum, min, max, average) and appear in Metrics Explorer without requiring any Kusto queries. Which TelemetryClient method should you call to send this custom metric?
Use GetMetric to obtain a Metric object and then call TrackValue. The SDK batches the individual values in memory and sends aggregated statistics that the Azure portal shows in Metrics Explorer. TrackMetric sends each measurement individually, TrackEvent records occurrences, and TrackDependency is meant for outgoing calls, not arbitrary numeric metrics.
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.
How does GetMetric differ from TrackMetric?
Open an interactive chat with Bash
What is Metrics Explorer in Application Insights?
Open an interactive chat with Bash
What is the purpose of the TelemetryClient in Application Insights?
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 .