Microsoft Azure AI Engineer Associate AI-102 Practice Question
Your team builds several prompt flows in a hub-based Azure AI Foundry project. You need the shared system and user messages plus a few-shot example set to be defined only once, parameterized with variables such as {{product_name}}, and versioned so that any change is automatically picked up by every flow that uses it. Which implementation approach should you take?
Hard-code the prompt string in the application layer that calls the Foundry endpoint.
Store the prompt in a plain text file under your app's configuration folder and load it at runtime.
Create a prompt template (.prompty) asset in the project and reference it from each flow.
Embed the prompt text in a custom LLM node inside every prompt flow.
Create a prompt template (.prompty) file and register it as an asset in the project's Assets library. The template contains the system, user, and example messages together with Jinja/Mustache placeholders (for example, {{product_name}}). Because the file is an asset, each saved version is tracked, and any flow that references the asset automatically sees the latest version without having to duplicate prompt text. Embedding the prompt directly in each flow node, hard-coding it in application code, or reading it from an arbitrary text file does not provide centralized versioning or automatic propagation.
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 a .prompty file?
Open an interactive chat with Bash
How do Jinja/Mustache placeholders work in a prompt template?
Open an interactive chat with Bash
Why is centralized versioning important in Azure AI Foundry projects?
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 .