Microsoft Azure AI Engineer Associate AI-102 Practice Question

You are designing a prompt flow in Azure AI Foundry. The team wants one reusable prompt template that can automatically expand any number of few-shot examples (question-answer pairs). The template must iterate over the list at run time, so you never edit the file when the example count changes. What should you use inside the template?

  • Store the examples in Azure Table Storage and reference the table name with the @examples directive.

  • Define a dynamic_examples parameter in the project configuration YAML and reference it using <<dynamic_examples>> placeholders.

  • Use Jinja2 control statements such as {% for %} to iterate over the passed-in examples variable.

  • Surround the entire prompt with triple backticks and mark it as a code block.

Microsoft Azure AI Engineer Associate AI-102
Implement generative AI solutions
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot