Skip to content
AWS Certified AI Practitioner (AIF-C01) Exam Prep

Lesson 21 of 34 · 6 min

x
21/34

Customization Approaches and Their Cost Tradeoffs

Video lesson: AIF-C01 21/34: Customization Approaches and Their Cost Tradeoffs

The approaches, cheapest first (design guidance on ordering; facts verified where noted)

ApproachWhat changesCostUse when
In-context learning (prompt engineering, few-shot examples)Only the promptLowest: just tokensFormat, tone, simple task guidance
RAGThe context: retrieved documentsLow to medium: vector store, embeddings, retrievalAnswers must use current or private facts, with citations
Model distillationA smaller student model learns from a larger teacherMedium: teacher inference + training; then cheaper, faster inferenceYou need large-model quality at small-model cost and speed
Fine-tuningThe model's weights, using labelled examplesMedium to high: training (tokens × epochs) + storage + servingConsistent style, format or domain behaviour
Continued pre-trainingWeights, using large unlabelled domain dataHighDeep domain vocabulary (e.g. medical, legal)
Pre-training from scratchA whole new modelHighest: huge data and computeAlmost never for a business; providers do this

Amazon Bedrock specifics

  • Bedrock customization methods: supervised fine-tuning (labelled data), reinforcement fine-tuning (reward functions, e.g. in AWS Lambda), and distillation (teacher → student, with Bedrock generating synthetic data).
  • The current Bedrock customization page lists only those three methods; continued pre-training appeared in older Bedrock docs and is still a concept the guide names.
  • Training is charged by tokens in the training data × epochs, plus monthly model storage.
  • A customized model is served with Provisioned Throughput or an on-demand custom model deployment.
  • Only you can access a distilled model; Bedrock doesn't use your data to train models for public use.

Exam traps

  • Fine-tuning for knowledge that changes often. Use RAG.
  • Pre-training a model when prompting or RAG would work.
  • Distillation makes the student bigger. The student is smaller, faster and cheaper.

References

  1. Bedrock model customization — checked Oct 19, 2026
  2. Bedrock model distillation — checked Oct 19, 2026
  3. Inference for a custom model — checked Oct 19, 2026

Check your understanding

  • Cheapest way to get answers in a fixed JSON format?Show answer

    Answer

    Prompt engineering with an example (in-context learning).
  • Keep large-model quality but cut latency and cost?Show answer

    Answer

    Model distillation.
  • What two things make up Bedrock fine-tuning training cost?Show answer

    Answer

    Tokens processed (training tokens × epochs) and model storage per month.
Previous

Progress is saved in this browser.

Next Lesson