Microsoft - AI-102 Study Guide

    2: Implement generative AI solutions

    This chapter builds generative AI workloads on Microsoft Foundry, starting from Azure OpenAI provisioning and hub and project layout, moving through prompt flow, retrieval augmented grounding, evaluation, multimodal models, the Foundry SDK, and prompt templates. Every section maps the architecture, the deployment knobs, and the trap patterns that appear in scenario style questions for the AI Engineer Associate track.

    Learning Objectives

    By the end of this chapter, you will be able to:

    • Plan and prepare for a generative AI solution, including provisioning an Azure OpenAI in Foundry Models resource and managing deployment scaling and foundational model updates.
    • Deploy a hub, project, and supporting resources with Microsoft Foundry, select and deploy an Azure OpenAI model, and enable tracing plus feedback collection.
    • Pick the correct generative AI model for a use case, submit prompts that produce code and natural language output, and implement model reflection patterns.
    • Build a prompt flow solution, generate images with DALL-E, and run prompt flow containers on local and edge devices.
    • Implement a retrieval augmented generation pattern grounded in your data, integrate Azure OpenAI into a custom application, and orchestrate multiple generative AI models.
    • Evaluate models and flows, work with large multimodal models, and apply prompt engineering techniques that improve response quality.
    • Integrate a Foundry project into an application with the Foundry SDK, configure parameters that govern generative behavior, and fine tune a generative model.
    • Build production prompt templates, configure model monitoring and diagnostic settings, and track performance and resource consumption.

    Executive Summary

    • Microsoft Foundry centralizes generative AI development behind a hub and project model. Hubs hold shared connections, compute, and storage. Projects hold the models, agents, indexes, prompt flows, and evaluations that engineering teams ship.
    • Azure OpenAI in Foundry Models exposes deployment SKUs that map directly to latency, residency, and cost. Standard, Global Standard, Data Zone Standard, Provisioned, Global Provisioned, Data Zone Provisioned, and Batch are not interchangeable. Picking the wrong SKU breaks SLA, budget, or data sovereignty.
    • Prompt flow, the Foundry SDK, RAG over Azure AI Search, multimodal vision plus text inputs, model reflection, and evaluation pipelines compose into a single development loop. The same flow runs in the cloud, in containers on edge devices, and inside CI pipelines.
    • Monitoring, diagnostic settings, fine tuning, and template versioning sit at the production edge of the loop. Every generative workload needs token usage telemetry, latency percentiles, content safety signals, and a rollback story for model version updates.

    Assumptions

    • The reader has built and deployed at least one Foundry workload from Chapter 1 and is fluent with the Foundry account, project, deployment SKU, RBAC role, and Foundry SDK terminology introduced there.
    • Azure OpenAI and the Foundry portal are reachable from the development environment. Where regional gating affects a model or feature, the reader checks the model availability table in official documentation before locking the design.
    • Code examples use Python with the openai, azure-ai-projects, azure-ai-inference, azure-ai-evaluation, and promptflow packages. C# equivalents (Azure.AI.OpenAI, Azure.AI.Inference, Azure.AI.Projects) follow the same RBAC and endpoint patterns.
    • All identity flows prefer DefaultAzureCredential with a managed identity in production. Key authentication appears only in local development snippets and is always paired with disableLocalAuth guidance when production traffic is involved.

    Sections in this chapter

    1. Free
    2. Free with account
    3. Free with account
    4. Free with account
    5. Free with account
    6. Free with account
    7. Free with account
    8. Free with account
    9. Free with account