Course menuAIF-C01

Exams / AIF-C01 / Study guide / Training and fine-tuning

Training and fine-tuning: AIF-C01 study notes and practice questions

What to know about Training and fine-tuning for the AIF-C01 exam, from the Applications of Foundation Models domain (28% of the exam guide), then 4 free questions to test it. Part of the AIF-C01 study guide.

Last verified against current AWS documentation ·How we write our questions

What to know for the exam

Customization questions ask how to adapt a model to a business need at the lowest cost and effort.

The options, cheapest first

Approach Changes the model? Needs Use for
Prompt engineering / in-context learning No Good instructions and examples Most tasks; try first
RAG No Documents and a vector store Answers from current company data
Fine-tuning Yes Labeled examples (prompt and ideal response) A specific style, format or narrow task
Continued pre-training Yes Large amounts of unlabeled domain text Teaching a model a specialized domain’s language
Distillation Yes (creates a smaller model) A large “teacher” model’s outputs A smaller, faster, cheaper “student” model for a task
Training from scratch New model Huge data and compute Rarely justified

Fine-tuning details

  • Instruction tuning: examples of instructions and good responses.
  • Domain adaptation: focus on one industry’s language.
  • Transfer learning: reuse a model trained on one task for a related one.
  • Reinforcement learning from human feedback (RLHF): people rate responses to steer the model.

In Amazon Bedrock, fine-tuned and continued pre-trained models typically need Provisioned Throughput to serve them, which adds cost.

Good training data

  • Accurate and curated: reviewed, correct examples.
  • Relevant and representative: like the real requests the model will see.
  • Diverse and balanced: covers the range of cases and groups.
  • Properly labeled.
  • Governed: free of sensitive personal data unless permitted, with known lineage.

Common traps

  • Fine-tuning to keep facts current. Facts change; use RAG.
  • Continued pre-training vs fine-tuning. Continued pre-training uses unlabeled text; fine-tuning uses labeled examples.
  • Ignoring hosting cost. A custom model can cost more to run than the base model.

Try the 4 practice questions

A research lab is planning the lifecycle of a new foundation model, from the first training run to the feedback it collects after release.

Put these lifecycle stages in order, first stage first.

Put these 5 steps in order.

  1. A. Fine-tune the model on smaller, task-specific datasets.
  2. B. Collect feedback from real use to guide the next improvements.
  3. C. Pre-train the model on a very large, broad dataset.
  4. D. Deploy the model so that applications can call it.
  5. E. Evaluate the model against benchmarks and the lab's requirements.
Show the answer and explanation

Correct order: C, A, E, D, B

  1. C. Pre-train the model on a very large, broad dataset. First: the lifecycle starts with a broad pre-training run on a very large dataset, which gives the model general language or visual knowledge.
  2. A. Fine-tune the model on smaller, task-specific datasets. Second: fine-tuning adapts the broadly trained model to specific tasks, which happens after the large pre-training run.
  3. E. Evaluate the model against benchmarks and the lab's requirements. Third: before release, the model is measured against benchmarks and the lab's own requirements to confirm it is fit for use.
  4. D. Deploy the model so that applications can call it. Fourth: once the model has been tuned and checked, it is deployed so applications can send it requests.
  5. B. Collect feedback from real use to guide the next improvements. Last: feedback from users shows where the deployed model falls short, and it guides the next round of work.

Explanation

A foundation model begins with broad pre-training, is then adapted to tasks through fine-tuning, is evaluated against requirements, and is deployed. Feedback from real use closes the loop and feeds the next cycle. This question tests the order of the foundation model lifecycle.

Study

A media group is comparing ways to adapt foundation models for five projects.

Match each project's description to the technique it describes. Each option is used at most once, and one option is not needed.

Match each item to one answer. An answer can be used more than once, and some may not be used.

Items

  1. Keep training an existing model on a large, unlabeled archive of the group's film scripts so it absorbs their vocabulary and background
  2. Train an existing model on labeled pairs of creative briefs and approved scripts, so it learns to draft scripts from briefs
  3. Train a smaller, cheaper model on responses produced by a larger model for one use case
  4. Train a reward model from human rankings of responses, then tune the model to score well against it
  5. Put a few worked examples in the prompt, with no change to the model's weights

Answers

  1. A. Continued pre-training on a large unlabeled corpus
  2. B. Distillation from a larger teacher model
  3. C. In-context learning with examples placed in the prompt
  4. D. Pre-training a brand-new model from scratch
  5. E. RLHF, using human rankings to train a reward model
  6. F. Supervised fine-tuning on labeled prompt-response pairs
Show the answer and explanation

Correct matches

  • Keep training an existing model on a large, unlabeled archive of the group's film scripts so it absorbs their vocabulary and background: A. Continued pre-training on a large unlabeled corpus
  • Train an existing model on labeled pairs of creative briefs and approved scripts, so it learns to draft scripts from briefs: F. Supervised fine-tuning on labeled prompt-response pairs
  • Train a smaller, cheaper model on responses produced by a larger model for one use case: B. Distillation from a larger teacher model
  • Train a reward model from human rankings of responses, then tune the model to score well against it: E. RLHF, using human rankings to train a reward model
  • Put a few worked examples in the prompt, with no change to the model's weights: C. In-context learning with examples placed in the prompt

About each answer

  • A. Continued pre-training keeps training an existing model on large amounts of unlabeled domain text. It matches the first description, where the goal is domain knowledge rather than one task.
  • B. Distillation trains a smaller student model on outputs from a larger teacher model, which lowers cost and latency. It matches the third description.
  • C. In-context learning gives the model examples inside the prompt, with no training and no change to its weights. It matches the fifth description.
  • D. Pre-training from scratch builds a new model from a very large dataset, far beyond these projects. No description starts from nothing, so this option is not needed.
  • E. RLHF trains a reward model from human rankings of responses, then tunes the model to score well with it. It matches the fourth description.
  • F. Supervised fine-tuning updates a model with labeled input and output pairs for one task. It matches the second description.

Explanation

Techniques differ in the data they need and the cost they carry. In-context learning needs no training, fine-tuning needs labeled examples, continued pre-training needs large unlabeled text, distillation uses a teacher model, and RLHF uses human preference data. Building a model from scratch is not needed to adapt one.

Study

A retailer uses a very large foundation model to classify customer emails. Accuracy is excellent, but responses are slow and costly at peak volume.

The retailer has 10,000 past emails but no labeled answers, and it wants a model that keeps similar accuracy for this one task at lower cost.

Which approach fits BEST?

Choose one answer.

  1. A. Continued pre-training of the large model on all of the company's historical emails
  2. B. Raising the large model's temperature so it produces shorter answers
  3. C. Pre-training a new small model from scratch on public email datasets
  4. D. Model distillation, where the large model's answers train a smaller student
Show the answer and explanation

Answer: D

  • A. Wrong: Continued pre-training adds knowledge to the same large model, which stays just as slow and costly per request. It also needs large volumes of unlabeled text, not a task-specific target.
  • B. Wrong: Temperature changes randomness in the output, not the speed or cost of running the model. Shorter answers would not make a classification task cheaper.
  • C. Wrong: Training from scratch is the most expensive route and needs a very large dataset. A model trained on public email data would not match the retailer's accuracy on its own emails.
  • D. Right: Correct. Amazon Bedrock Model Distillation takes prompts, lets the teacher model generate responses, and fine-tunes a smaller, cheaper student on them. The retailer's emails can serve as prompts, so no labeled answers are needed. Learn more: Amazon Bedrock Model Distillation (opens in a new tab)

Explanation

Amazon Bedrock Model Distillation transfers knowledge from a large teacher model to a smaller student model that is faster and cheaper to run. It can start from prompts alone, because the teacher generates the responses. The resulting distilled model is available only to the customer.

Study

Question 4

Medium · choose 2 ·Link to this question (question 4)

A bank plans to fine-tune a model to draft replies to customer complaints in its house style. Its complaint archive contains customers' names, account numbers and addresses.

Which TWO data preparation practices will MOST improve the result? (Choose two.)

Choose two answers.

  1. A. Use accurate, reviewed example replies that match the complaints the bank handles
  2. B. Add large volumes of unrelated public text so the dataset is bigger
  3. C. Remove or mask customers' personal data from the examples before training
  4. D. Include unreviewed model drafts and label them as ideal replies
  5. E. Keep only complaints about one product to keep the dataset small
Show the answer and explanation

Answers: A, C

  • A. Right: Correct. Fine-tuning learns from the examples it receives, so accurate, reviewed replies teach the house style and the right answers. The examples should reflect the complaints the bank actually handles. Learn more: Customize your model (opens in a new tab)
  • B. Wrong: Unrelated text dilutes the signal the model needs. Relevance and quality matter more than raw volume, so a bigger dataset is not better here.
  • C. Right: Correct. Personal data in training examples can leak into generated replies and creates privacy and compliance risk. Removing or masking it before training keeps customers' data out of the model.
  • D. Wrong: Unchecked drafts may contain errors, and labeling them as ideal teaches the model to repeat those errors. Only reviewed examples should be used as targets.
  • E. Wrong: A narrow sample is not representative of the complaints the bank receives. The model would handle other products poorly.

Explanation

Good fine-tuning data is accurate, relevant to the task, representative of real use, and free of sensitive personal data. Reviewed replies teach the house style, and masking personal data before training reduces privacy and leakage risk.

Study

Want more on Training and fine-tuning? The 5 full-length practice sets have 18 more Training and fine-tuning questions, 325 in all, none of them in the free exam. One payment of $14.99, no subscription. See the practice sets

Study Training and fine-tuning

More Applications of Foundation Models topics