Lesson 2 of 2 Approaching AI-300 Questions

Choosing Between Similar Options

This lesson compares the options most often confused in AI-300 questions for compute and training, deployment and release, monitoring and evaluation, and customization of generative AI.

Learning outcomes

After completing this lesson, you will be able to:

  • Distinguish automated ML, sweep jobs and pipelines.
  • Distinguish mirrored traffic from traffic splitting.
  • Match symptoms to monitoring and evaluation signals.
  • Choose between prompt engineering, RAG and fine-tuning.

Compute and training options

Training compute choices turn on management effort and cost. A compute cluster gives control over size, identity and networking; serverless compute removes cluster management; a compute instance is for interactive work only. For training approaches, automated ML explores algorithms and featurization when the best model type is unknown, a sweep job tunes hyperparameters of a chosen model, and a pipeline chains steps such as preparation, training and evaluation.

Automated ML
SearchesAlgorithms, featurization and hyperparameters
InputAn mltable data asset and a task type
OutputRanked trials and a best model
Choose when You need a strong baseline quickly
Sweep job
SearchesHyperparameters of your own script
InputA command job and a search space
OutputRanked trials and a best configuration
Choose when You have a model and want its best settings
Pipeline job
SearchesNothing; it orchestrates steps
InputComponents or commands
OutputOutputs of each step
Choose when You need a repeatable multistep workflow

Deployment and release options

Managed online endpoints serve real-time requests; batch endpoints score large datasets asynchronously. For releases, mirrored traffic tests on live requests without returning responses, traffic splitting exposes a share of users to the new deployment, and direct invocation of a deployment with the azureml-model-deployment header tests it before any live traffic.

On the generative AI side, serverless deployments of Foundry Models are billed per token or by provisioned throughput, and managed compute hosts models without a serverless option on hourly-billed GPUs. Within serverless deployments, Global types give the most capacity, Data Zone types keep processing in the US, EU or APAC zone, and Standard and Regional Provisioned keep it in one geography. Provisioned throughput gives predictable latency for steady volume; batch types halve the price for work that can wait 24 hours.

Monitoring and evaluation signals

Traditional models and generative AI applications are monitored with different signals, and questions often test whether you can match a symptom to the signal that detects it.

SymptomSignal or metricNeeds
Input feature distributions changedData driftReference data and production inputs
Predictions shiftedPrediction driftReference and production outputs
Model became less accurateModel performanceGround truth joined to predictions
Answers contain claims not in the sourcesGroundednessQuery, response and context
Answers do not address the questionRelevanceQuery and response
Harmful or manipulated outputRisk and safety evaluators, red teamingA Foundry project in a supported region
Slow or throttled requestsLatency percentiles, 429 rates, PTU utilizationAzure Monitor metrics and traces

Customization options for generative AI

Generative AI quality problems have several remedies, and the exam rewards choosing the lightest one that solves the problem. Prompt engineering fixes instructions, format and tone. Retrieval-augmented generation supplies knowledge the model lacks, especially knowledge that changes. Fine-tuning changes behaviour that prompts cannot reliably produce, such as a consistent specialized style, or makes a small model perform a narrow task as well as a large one.

Prompt engineering
FixesInstructions, format, tone
Cost to changeLowest
Update speedImmediate
Choose when The model can do it with better instructions
RAG
FixesMissing or changing knowledge
Cost to changeModerate: index and pipeline
Update speedAs fast as the index refreshes
Choose when The model needs your current data
Fine-tuning
FixesConsistent behaviour, narrow skills, smaller models
Cost to changeHighest: data, training, hosting
Update speedRequires retraining
Choose when Prompts and retrieval are not enough
Worked example

Choosing between similar options

A support assistant built on a Foundry deployment answers questions from product manuals stored in Azure AI Search. Users report that questions containing part numbers such as XR-4471-B often return answers about the wrong part, while general questions work well. Manuals are updated weekly. What should the team change first?

The symptom is a retrieval failure on exact identifiers, which pure vector search handles poorly because embeddings capture meaning rather than exact strings. The first change is to switch the retrieval to hybrid search, combining keyword (BM25) and vector queries merged with Reciprocal Rank Fusion, optionally with the semantic ranker, and to confirm the improvement with retrieval and groundedness evaluations.

Fine-tuning the chat model would not help it find the right manual pages, and the weekly updates would make it stale. A larger chat model would still receive the wrong passages. Increasing top-k would add more passages, but not necessarily the passage that matches the part number, and it would increase token cost.

Check yourself

A team wants to see how a new deployment handles real production requests without any user receiving its responses. Mirrored traffic or a traffic split?

Show answer

Mirrored traffic. It copies a percentage of requests to the new deployment and discards its responses; a traffic split would send some users' real responses from it.

Exam Tips

Remember for the exam

  • Automated ML finds a model type; sweep jobs tune one; pipelines orchestrate steps.
  • Mirror traffic to test without user impact; split traffic to expose users gradually.
  • Match symptoms to signals: drift, performance, groundedness, relevance, safety, latency.
  • Prefer prompt engineering, then RAG, then fine-tuning, as the problem requires.