Microsoft Azure AI Engineer Associate AI-102 Practice Question
Your team deployed a GPT-4 model inside an Azure AI Foundry project. A production web app, already instrumented with Application Insights, calls the endpoint. You must collect per-call prompt/completion token counts, latency, and cost, correlate them with the app's existing telemetry, and keep the data for at least 30 days. What should you do?
Enable Microsoft Purview Data Sharing for the Azure OpenAI resource and use Power BI incremental refresh to import the Audit log with a 30-day window.
Route all inference requests through Azure Event Grid, ingest the events into Azure Data Explorer, and build dashboards by querying the ADX table for token usage and latency.
Create an Azure Monitor diagnostic setting on the Azure OpenAI resource that sends Usage and RequestResponse logs to a Log Analytics workspace, ensure Azure Monitor metrics are enabled, link the workspace to the existing Application Insights instance, and set the workspace retention to 30 days.
Add the header "logging_mode=all" to every inference call and configure the Azure OpenAI resource to archive logs to an Azure Storage account with a 30-day lifecycle-management rule.
Azure OpenAI emits Azure Monitor metrics such as Input Tokens, Output Tokens, Total Tokens, and latency, and it writes per-request details to the AzureOpenAIRequestUsage and RequestResponse resource-log categories. Creating a diagnostic setting on the Azure OpenAI (Foundry Models) resource that sends those logs to a Log Analytics workspace stores every request's token counts, latency, and billing attributes. Linking the same workspace to the web app's workspace-based Application Insights instance puts both the application traces and the model-side logs in the same data store, enabling end-to-end correlation with KQL queries and dashboards. Setting the workspace's default retention to 30 days satisfies the retention requirement. Other options fail to capture per-request token metrics, lack Application Insights integration, or don't provide the required retention and correlation capabilities.
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 are Azure Monitor metrics and why are they important for Azure OpenAI resources?
Open an interactive chat with Bash
What is the purpose of linking a Log Analytics workspace to Application Insights?
Open an interactive chat with Bash
How does retention settings for Log Analytics impact monitoring and compliance?
Open an interactive chat with Bash
Microsoft Azure AI Engineer Associate AI-102
Implement generative AI 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 .