Courseiva

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.

27 questions8 easy12 medium7 hard

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.

1

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?

Medium
2

Which TWO techniques should you use to improve the accuracy of a RAG pipeline?

Hard
3

Which THREE factors contribute to increased latency in an LLM application?

Medium
4

You want to evaluate your prompt engineering changes quantitatively. Which method is most reliable for comparing two prompt versions?

Medium
5

You are configuring a chat application. What is the benefit of enabling streaming in the Azure OpenAI API?

Easy
6

You 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?

Easy
7

You 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?

Hard
8

You are fine-tuning a model on Azure OpenAI and notice the training loss curve is fluctuating significantly. What is the most likely cause?

Hard
9

A user wants to restrict the model's output to valid JSON format. What is the most effective way to ensure this?

Medium
10

Your 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?

Medium
11

You are optimizing a model for a specific domain language. Which fine-tuning approach minimizes cost while maximizing domain adaptation?

Hard
12

Which TWO of the following strategies are commonly used to optimize for cost in Generative AI?

Easy
13

Which THREE metrics are critical for monitoring a production Generative AI system?

Easy
14

You have a large set of documents for a RAG system. How should you optimize retrieval speed?

Medium
15

You 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.)

Medium
16

Which parameter in the Azure OpenAI API should be adjusted to make the model's output more deterministic and repeatable?

Easy
17

You are optimizing a long-context application. Which technique is most effective for reducing context window costs in Azure OpenAI?

Hard
18

An application is hitting rate limits on the Azure OpenAI service. Which action is the most standard approach for handling this in production?

Easy
19

Which feature in Azure OpenAI allows you to reserve throughput for a consistent user experience during high demand?

Easy
20

Which TWO methods are best for debugging an LLM pipeline that fails on complex queries?

Medium
21

You notice that your fine-tuned model is 'forgetting' base capabilities after training on a small dataset. What strategy should you use to mitigate this?

Medium
22

You 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?

Hard
23

Which TWO of the following are effective ways to reduce hallucination?

Easy
24

You notice your model is outputting redundant information. Which parameter specifically targets the penalty for repeating tokens?

Hard
25

Which THREE steps are necessary to successfully fine-tune an Azure OpenAI model?

Medium
26

To 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?

Medium
27

Which technique is most appropriate for optimizing RAG performance when the vector database returns too much noisy information?

Medium

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.
Microsoft Certified: Machine Learning Operations Engineer Associate (AI-300) (AI-300) Generative AI Optimization Practice Questions