Microsoft Azure AI Engineer Associate AI-102 Practice Question
You are designing a generative AI application in Azure AI Foundry. The solution must orchestrate several steps:
Call a GPT-4 model with a system prompt.
Post-process the response with custom Python code.
Automatically log token usage and latency for every run.
You decide to implement the workflow by creating a prompt flow in Azure AI Studio and plan to run it in your Foundry project.
Which action must you perform inside the flow definition so that token usage and latency for each model invocation are captured without writing additional code?
Set the PF_LOG_METRICS=on environment variable in the project settings.
Call the GPT-4 endpoint through a generic HTTP request node.
Add an evaluation node that calculates the tokens and latency_ms metrics after the model node.
Reference an Azure OpenAI managed connection in the model invocation node.
Prompt flow automatically records telemetry such as token consumption and latency only when a model node is declared with the built-in azure_openai_connection parameter type. By referencing a managed connection of that type, the runtime wraps each call with monitoring hooks that emit metrics to Azure Application Insights for the project. Using a plain HTTP node or hard-coded API key bypasses this instrumentation, and enabling evaluation components or environment variables does not by itself enable runtime telemetry.
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 Azure AI Foundry and its primary purpose?
Open an interactive chat with Bash
What are telemetry features in Azure Application Insights related to Azure AI Studio workflows?
Open an interactive chat with Bash
What is the role of the `azure_openai_connection` parameter in prompt flow?
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 .