Optimize and Operationalize Generative AI Systems
Unlock the complete study guide + 1,040 practice questions across 16 full exams.
Bundled into the existing AI-103 premium course — no separate purchase.
14-day money-back guarantee — no questions asked.
Included in this chapter:
- What operationalizing adds to a working prototype
- Prompt structure: durable contract, data, request
- Inference parameters and the two model families
- Evaluators that isolate the failing stage
- Calibrating an LLM judge against human labels
- Automating the loop with the agent optimizer
- Three ways traces start flowing
- Reading spans and the Observability dashboard
- Two caches, and what each one calls a match
- Streaming and where the content filter sits
- Model router: one deployment, disclosed choice
- Detecting drift that adaptive alerts absorb
- Deciding what the model must not decide
- Exam-pattern recognition
The three lever families, and what each one actually moves
| Question | Prompt levers | Inference levers | Serving-path levers |
|---|---|---|---|
| What you change | Instructions, delimiters around untrusted content, few-shot examples, the abstention rule | temperature or top_p, reasoning_effort, verbosity, max output tokens, streaming mode | Prompt-cache prefix layout, semantic cache threshold, model router deployment, rules-engine split |
| Symptom it addresses | Fabrication, ignored constraints, unstable output shape | Answers too long or too slow, truncation, non-deterministic extraction | Cost per request, repeated identical work, one premium model serving every prompt |
| Where it is configured | The agent definition and the message array | Request parameters, per call | The deployment, the gateway policy, or your application code |
| Evidence that it worked | Groundedness and Relevance scores on the same fixed dataset | Token counts and latency percentiles read from traces | cached_tokens in the response, per-model split in Azure Monitor, cost analysis |
| What it cannot fix | A retrieval defect, which Document Retrieval measures separately | An ambiguous rubric or an unaligned judge | A quality regression caused by routing to a weaker model |
Decision tree
Cheat sheet
Unlock with Premium — includes all practice exams and the complete study guide.
References
- Observability in Generative AI
- Prompt engineering techniques
- Azure OpenAI reasoning models: reasoning effort, verbosity, and reasoning tokens
- Structured outputs with Azure OpenAI
- Set the retrieval reasoning effort (Azure AI Search agentic retrieval)
- Retrieval-Augmented Generation (RAG) evaluators for generative AI
- Rubric evaluators (preview)
- Agent evaluators reference
- AI agent orchestration patterns Well-Architected
- Agent optimizer in Foundry Agent Service overview (preview)
- Optimize agent instructions, skills, tools, and models (preview)
- Set up tracing for AI agents in Microsoft Foundry
- Add client-side tracing to Foundry agents
- Export hosted agent telemetry by using OpenTelemetry
- Configure tracing for AI agent frameworks
- Prompt caching with Azure OpenAI in Microsoft Foundry Models
- API Management policy reference: llm-semantic-cache-lookup
- Enable semantic caching for LLM APIs in Azure API Management
- Content streaming in Azure OpenAI: default and Asynchronous Filter
- Model router for Microsoft Foundry concepts
- How to use model router for Microsoft Foundry
- Azure Monitor metric alerts with dynamic thresholds
- AI agent adoption guidance for organizations (Cloud Adoption Framework) Well-Architected