microsoft AI-300: Operationalizing Machine Learning and Generative AI Solutions · Practice questions

5. Optimize generative AI systems and model performance Practice Questions

Review 10 sample questions with their correct answers and explanations. Sign up free to continue with the full topic quiz.

Sign up free for the full quiz

Question 1

Which retrieval approach combines semantic (vector) and keyword-based search?

  1. Pure vector search
  2. Pure keyword search
  3. Random retrieval
  4. Hybrid search — Correct

Correct answer

Hybrid search

Explanation

Hybrid search merges both signals.

Question 2

Which data should be held out when fine-tuning?

  1. A validation set not used for training — Correct
  2. All data should be used for training and evaluation at the same time without separation
  3. Only the system prompt
  4. Only production secrets

Correct answer

A validation set not used for training

Explanation

Held-out data measures generalization.

Question 3

After fine-tuning, how should the model be validated before production?

  1. Compare it with the base model on held-out data — Correct
  2. Deploy immediately
  3. Check only cost
  4. Check only training loss

Correct answer

Compare it with the base model on held-out data

Explanation

Validation compares improvements and checks safety.

Question 4

Which approach supports low-rank adaptation for parameter-efficient fine-tuning?

  1. LoRA — Correct
  2. Bandit policy
  3. Mirrored traffic
  4. Grid sampling

Correct answer

LoRA

Explanation

LoRA fine-tunes small adapter weights.

Question 5

Which fine-tuning method uses pairs of preferred and rejected responses to align output style?

  1. Bandit policy
  2. Supervised fine-tuning on only the rejected responses
  3. Direct preference optimization (DPO) — Correct
  4. Grid sampling

Correct answer

Direct preference optimization (DPO)

Explanation

DPO optimizes toward preferred responses.

Question 6

Which metric helps compare cost-effectiveness of two models with similar quality?

  1. Region name
  2. Model release date
  3. Cost per successful request (tokens times price) — Correct
  4. Number of parameters

Correct answer

Cost per successful request (tokens times price)

Explanation

Cost per outcome guides model choice.

Question 7

Which method measures the impact of a retrieval change on user outcomes in production?

  1. A/B testing with relevance metrics — Correct
  2. Checking quotas
  3. Reading the retrieval code and estimating the impact without measuring users
  4. Counting deployments

Correct answer

A/B testing with relevance metrics

Explanation

A/B tests compare variants on real traffic.

Question 8

Which statement about synthetic data quality is correct?

  1. Synthetic data requires no labels
  2. Synthetic data is always perfect
  3. Synthetic data cannot be used for training
  4. Synthetic data must be reviewed for accuracy, diversity and bias — Correct

Correct answer

Synthetic data must be reviewed for accuracy, diversity and bias

Explanation

Quality checks prevent amplifying errors.

Question 9

Which approach evaluates RAG retrieval changes before release?

  1. Offline evaluation on labeled queries, then an online A/B test — Correct
  2. Change production directly
  3. Ask one user
  4. Skip evaluation

Correct answer

Offline evaluation on labeled queries, then an online A/B test

Explanation

Offline then online testing reduces risk.

Question 10

Which approach reduces token cost without lowering quality significantly?

  1. Shorten prompts, trim history and use smaller models where evaluation allows — Correct
  2. Add every document to every prompt to make sure the model never misses information
  3. Increase max_tokens
  4. Disable caching

Correct answer

Shorten prompts, trim history and use smaller models where evaluation allows

Explanation

Prompt efficiency and right-sized models lower cost.

Ready for the full quiz?

Create a free QuizAnalyst account to practice the complete question set and save your progress.

Sign up free for the full quiz