Microsoft Azure AI Engineer Associate AI-102 Practice Question
You deployed an Azure AI Foundry (Azure OpenAI) resource that serves a GPT-4 model to multiple internal applications. To avoid unexpected service interruptions, you must receive an alert when token usage for the resource reaches 80 percent of its configured monthly quota. Without collecting custom logs or modifying any client code, which monitoring action should you take?
Send diagnostic logs to Log Analytics and build a query-based alert that counts token usage.
Enable an Azure Advisor recommendation alert for the Cognitive Services category.
Configure an activity-log alert that triggers when any Microsoft.CognitiveServices/accounts/write event occurs.
Create an Azure Monitor metric alert rule on the built-in TotalTokens metric for the Azure AI resource and set the condition to fire at 80 percent of quota.
Azure OpenAI automatically sends built-in platform metrics to Azure Monitor. In the Models - Usage category, the metric Total Tokens (REST name TotalTokens) counts the prompt and completion tokens consumed by the resource. Creating an Azure Monitor metric alert rule on that metric lets you trigger a notification when usage crosses a threshold such as 80 percent of your monthly quota-no additional instrumentation or diagnostic settings are required. Activity-log alerts, Advisor, and Log Analytics query alerts cannot directly evaluate running token totals unless the data is first streamed or collected separately, so they do not meet the requirement.
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 is the TotalTokens metric in Azure OpenAI?
Open an interactive chat with Bash
What is an Azure Monitor metric alert rule?
Open an interactive chat with Bash
Why can't other options, like activity-log alerts or Azure Advisor, meet the requirement?
Open an interactive chat with Bash
Microsoft Azure AI Engineer Associate AI-102
Plan and manage an Azure AI solution
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 .