Retrieval-Augmented Generation (RAG), fine-tuning, and continued pre-training all help adapt foundation-model applications, but they solve different problems. The exam clue is to identify whether the requirement is to supply current knowledge, change model behavior, or continue adapting a model using additional domain data.

RAG: retrieve knowledge at inference time

RAG retrieves relevant information from an external knowledge source and adds it to the prompt before the model generates a response. A typical pipeline ingests documents, chunks them, creates embeddings, stores them in a vector index, retrieves relevant passages for a user query, and supplies those passages as context.

Choose RAG when the application needs answers based on private, frequently updated, or organization-specific documents. Updating the knowledge source and re-indexing it can make new information available without retraining the foundation model. RAG can reduce unsupported answers, but retrieval and generation still need evaluation.

Fine-tuning: adapt model behavior with examples

Fine-tuning continues training a model on a curated dataset so it learns a desired task pattern, style, format, or domain-specific behavior. It is useful when prompting alone does not produce consistent behavior. Fine-tuning is not usually the best first choice for facts that change every day; those facts are often better supplied through retrieval.

Continued pre-training: extend domain knowledge through more training

Continued pre-training exposes a pretrained model to additional large-scale, domain-relevant data so it can adapt its representations and knowledge to that domain. It generally requires more data and training effort than simply retrieving documents or fine-tuning on a smaller set of task examples.

Side-by-side comparison

ApproachWhat changes?Best-fit requirement
RAGContext supplied to the model at inference timeUse current or private reference documents
Fine-tuningModel parameters and task behaviorImprove consistent task execution, format, or style
Continued pre-trainingModel parameters through additional domain trainingAdapt a model using substantial domain-specific text or data

How to choose in an exam scenario

Limitations and traps

Test yourself

Question 1

A company wants a foundation model to answer questions using product manuals that are updated every week. It wants to avoid retraining the model after each update. Which approach is the best fit?

  1. RAG
  2. Train a model from scratch
  3. Increase temperature
  4. Continued pre-training after every document change
Reveal answer

Correct answer: A. RAG retrieves the latest indexed information at inference time without requiring model retraining for every document update.

Question 2

A model understands general language but needs to learn a specialized writing style and consistently follow a domain-specific output format. Which adaptation approach should the team evaluate?

  1. Vector search only
  2. Fine-tuning
  3. Increasing the context window only
  4. Batch translation
Reveal answer

Correct answer: B. Fine-tuning can adapt model behavior using curated examples of the desired task and format.

Key takeaway

RAG supplies knowledge; fine-tuning adapts behavior; continued pre-training extends domain adaptation through additional training. Choose based on what the scenario actually needs to change.

Related AWS topics

Amazon Bedrock Knowledge Bases · Tokens, Embeddings and Vector Databases · Foundation Model Hallucinations

✦ CloudExamPro Premium

Ready for the AWS Certified AI Practitioner (AIF-C01)?

Move beyond memorizing terms. Practice with realistic, scenario-based questions and detailed explanations that help you understand the AWS AI services and concepts behind each answer.

6 Full-Length Exams390 practice questions
Detailed ExplanationsLearn why answers are right or wrong
Scenario-Based PracticeOriginal questions, not dumps
6 Months of AccessReview at your own pace
Get the AIF-C01 Practice Exams →Try the free AIF-C01 exam first ↗

Original practice questions. No dumps. No shortcuts.

COMING SOON • BLACK FRIDAY MEETS CYBER MONDAY
Something BIG Is Coming! Get ready for an exclusive offer on AWS certification exam preparation. November 27–30, 2026
Starts in--d --h --m --sView Pricing Plans