AI-300 · domain
Generative AI Optimization
This domain covers tuning and steering generative model behavior on Azure AI Foundry and Azure OpenAI: sampling parameters, penalties, prompt patterns, and protecting base capabilities during fine-tuning. Questions are scenario-based, asking you to pick the parameter, technique, or mitigation that fixes an observed output problem such as repetition, nondeterminism, or regression after fine-tuning.
Focused practice
Practice Generative AI Optimization questions
Scored sessions drawing only from this domain — pick a length below.
What this domain covers
What to know about Generative AI Optimization
Be able to select the right Azure OpenAI parameter or prompting technique for a described symptom, and explain how to preserve base model capabilities when fine-tuning on small datasets. The key is matching the observed problem to the specific control, not just lowering temperature by default.
Adjusting temperature and top_p in Azure OpenAI chat completions for deterministic, repeatable output
Using frequency_penalty and presence_penalty to reduce redundant or repeated tokens
Applying chain-of-thought prompting to improve reasoning on edge cases and multi-step tasks
Mitigating catastrophic forgetting during fine-tuning with smaller learning rates or mixed data
Watch out for
Common Generative AI Optimization exam traps
- ▸Confusing frequency_penalty with presence_penalty: frequency scales with how often a token already appeared, presence only penalizes whether it appeared at all
- ▸Assuming temperature alone guarantees determinism; top_p, seed, and system fingerprint also affect reproducibility
- ▸Treating chain-of-thought as a fix for formatting or latency issues rather than a reasoning aid for complex, multi-step edge cases
Question index
All Generative AI Optimization questions (27)
Click any question to see the full explanation, or start a practice session above.
You are building a generative AI assistant for a financial advisory firm using Azure OpenAI. The assistant must answer questions based on a large repository of internal policy documents that are updated frequently. You need to reduce hallucination and ensure the model cites the most current policy versions. Which approach should you implement?
Medium2Which TWO techniques should you use to improve the accuracy of a RAG pipeline?
Hard3Which THREE factors contribute to increased latency in an LLM application?
Medium4You want to evaluate your prompt engineering changes quantitatively. Which method is most reliable for comparing two prompt versions?
Medium5You are configuring a chat application. What is the benefit of enabling streaming in the Azure OpenAI API?
Easy6You are monitoring an Azure OpenAI deployment used for a customer support chatbot. You notice that the model sometimes generates responses that include fabricated product features. You want to implement a technique that encourages the model to say 'I don't know' when it lacks information, rather than guessing. Which approach should you use?
Easy7You are optimizing a generative AI application that uses Azure OpenAI's GPT-4 model for summarizing long legal contracts. The summaries are often incomplete because the model truncates important details from the middle of the contract. You need to improve the completeness of the summaries without exceeding the model's context window. What should you do?
Hard8You are fine-tuning a model on Azure OpenAI and notice the training loss curve is fluctuating significantly. What is the most likely cause?
Hard9A user wants to restrict the model's output to valid JSON format. What is the most effective way to ensure this?
Medium10Your Azure OpenAI deployment is experiencing high latency during peak hours. You observe that input tokens are consistently high. Which strategy is most effective for reducing latency while maintaining quality?
Medium11You are optimizing a model for a specific domain language. Which fine-tuning approach minimizes cost while maximizing domain adaptation?
Hard12Which TWO of the following strategies are commonly used to optimize for cost in Generative AI?
Easy13Which THREE metrics are critical for monitoring a production Generative AI system?
Easy14You have a large set of documents for a RAG system. How should you optimize retrieval speed?
Medium15You are optimizing a generative AI solution that uses Azure OpenAI for a multilingual customer feedback analysis application. The application must process large volumes of text quickly and cost-effectively. You need to reduce token usage without sacrificing the quality of the analysis. Which two actions should you take? (Choose two.)
Medium16Which parameter in the Azure OpenAI API should be adjusted to make the model's output more deterministic and repeatable?
Easy17You are optimizing a long-context application. Which technique is most effective for reducing context window costs in Azure OpenAI?
Hard18An application is hitting rate limits on the Azure OpenAI service. Which action is the most standard approach for handling this in production?
Easy19Which feature in Azure OpenAI allows you to reserve throughput for a consistent user experience during high demand?
Easy20Which TWO methods are best for debugging an LLM pipeline that fails on complex queries?
Medium21You notice that your fine-tuned model is 'forgetting' base capabilities after training on a small dataset. What strategy should you use to mitigate this?
Medium22You are debugging a prompt that is performing poorly on edge cases. You decide to use a 'Chain-of-Thought' approach. Why does this improve performance?
Hard23Which TWO of the following are effective ways to reduce hallucination?
Easy24You notice your model is outputting redundant information. Which parameter specifically targets the penalty for repeating tokens?
Hard25Which THREE steps are necessary to successfully fine-tune an Azure OpenAI model?
Medium26To optimize costs for an enterprise chatbot, you want to implement token usage monitoring. Which Azure service should you integrate to track token consumption per user?
Medium27Which technique is most appropriate for optimizing RAG performance when the vector database returns too much noisy information?
MediumOther domains
All AI-300 exam domains
Frequently asked questions
- What does the Generative AI Optimization domain cover on the AI-300 exam?
- Be able to select the right Azure OpenAI parameter or prompting technique for a described symptom, and explain how to preserve base model capabilities when fine-tuning on small datasets. The key is matching the observed problem to the specific control, not just lowering temperature by default.
- How many questions are in this domain?
- This page lists all 27 Generative AI Optimization questions in the AI-300 question bank. The actual exam draws from this domain proportionally to its weighting in the official exam blueprint.
- What is the best way to practise this domain?
- Start with a short focused session (10 questions) to identify gaps, then work through explanations. Repeat with a longer session once the weak areas feel solid.
- Can I practise only Generative AI Optimization questions?
- Yes — the session launcher on this page filters questions to this domain only. Choose any session length for inline explanations and scoring.