# Choosing the Right Foundation Model Customisation Strategy on AWS: Prompt Engineering, RAG, or Fine-Tuning?

> Source: <https://builder.aws.com/content/3N2iwdHuVpSmzxwIZYB8AiAT2I7/choosing-the-right-foundation-model-customisation-strategy-on-aws-prompt-engineering-rag-or-fine-tuning>
> Published: 2026-12-05 06:26:17+00:00

**Recommendation:** Use Amazon Bedrock Knowledge Bases with OpenSearch Serverless, Aurora pgvector or S3 Vectors when answers must cite frequently changing source documents, and reserve fine-tuning for specialised vocabulary or distillation.
More in the playbook "Retrieval and RAG": <https://wpnews.pro/playbooks/rag-retrieval>

# Choosing the Right Foundation Model Customisation Strategy on AWS: Prompt Engineering, RAG, or Fine-Tuning?

A practical guide for AWS builders preparing for the AI Practitioner (AIF-C01) exam on when to use Prompt Engineering, Retrieval-Augmented Generation (RAG), or Fine-Tuning using Amazon Bedrock and SageMaker.

As I prepare for the AWS Certified AI Practitioner ( 

`AIF-C01` ) exam using AWS Skill Builder, one of the most important architectural decisions I have been studying is how to adapt general-purpose foundation models for real-world business tasks.
When building generative AI applications on AWS, selecting a foundation model is only the first step. Out of the box, models like Anthropic Claude, Amazon Nova, or Meta Llama possess broad general knowledge, but they do not know your private company data, internal workflows, or strict output formats.

To bridge that gap on AWS, builders typically choose between three customization techniques: 

**Prompt Engineering**,** Retrieval-Augmented Generation (RAG)**, and** Fine-Tuning**. Choosing the wrong one leads to unnecessary compute costs, stale data, or over-engineered pipelines.
#### 1. Prompt Engineering (Zero-Shot & Few-Shot)

Prompt engineering modifies the model's behavior strictly at inference time without changing the underlying model weights or connecting external databases.

- **How it works:** You provide clear instructions, persona constraints, delimiters, or a few input-output examples (few-shot prompting) directly in the prompt payload.

- **AWS Implementation:** Test and version prompts using**Amazon Bedrock Prompt Management** or iterate directly in the Amazon Bedrock Playground.

- **Best for:** Formatting outputs (e.g., strict JSON), summarization, tone adjustment, and rapid prototyping where no proprietary data is required.

- **Limitation:** Bounded by the model's context window and cannot access real-time or private data you do not manually paste into the prompt.

#### 2. Retrieval-Augmented Generation (RAG)

RAG connects a foundation model to external, authoritative data sources at runtime so the model grounds its answers in factual context.

- **How it works:** Documents are chunked, converted into numerical embeddings, and stored in a vector database. When a user asks a question, the system retrieves the most relevant chunks and injects them into the prompt before the model generates an answer.

- **AWS Implementation:****Amazon Bedrock Knowledge Bases** automates the entire ingestion, embedding, and retrieval workflow, backed by vector stores such as**Amazon OpenSearch Serverless** ,**Amazon Aurora PostgreSQL (pgvector)** , or**Amazon S3 Vectors** .

- **Best for:** Internal Q&A bots, customer support agents, and workloads where data changes frequently and source citations are required to reduce hallucinations.

- **Limitation:** Does not teach the model a new domain language or complex stylistic behavior—it only supplies facts at query time.

#### 3. Fine-Tuning (Continued Pre-Training & Instruction Tuning)

Fine-tuning updates a copy of the base model's weights using your own labeled training dataset.

- **How it works:** You prepare a curated dataset (typically formatted as prompt-completion pairs in JSONL) stored in**Amazon S3** , then run a customization job to adapt the model's parameters.

- **AWS Implementation:** Supported via**Amazon Bedrock Custom Models** (for managed serverless fine-tuning and Provisioned Throughput) or**Amazon SageMaker JumpStart** (when you need full control over training instances and hyperparameters).

- **Best for:** Teaching the model a specialized vocabulary (e.g., legal, medical, or proprietary code syntax), enforcing highly consistent domain style, or distilling a large model's behavior into a smaller, faster model to reduce latency.

- **Limitation:** Highest upfront cost and complexity. Fine-tuning is a poor fit for rapidly changing facts—retraining a model every time a policy document updates is impractical compared to updating a RAG vector store.

#### Quick Decision Matrix for Builders

| **Criterion** | **Prompt Engineering** | **RAG** | **Fine-Tuning** | 
|---|---|---|---|
| **Data Freshness** | Static (in-prompt only) | Real-time / Frequently updated | Static (frozen at training time) | 
| **Upfront Cost & Effort** | Lowest | Moderate | Highest | 
| **Primary AWS Services** | Amazon Bedrock Prompt Management | Bedrock Knowledge Bases, OpenSearch | Bedrock Custom Models, SageMaker | 
| **Reduces Hallucinations?** | Moderately | Strongly (grounds in retrieved docs) | Moderately (improves domain alignment) | 

#### Key Takeaway

Start simple and escalate only when metrics prove you need to: begin with 

**Prompt Engineering** to establish a baseline, add**RAG** when the model needs private or current facts, and reserve**Fine-Tuning** for specialized behavior, domain terminology, or latency optimization.
**Enjoyed reading this content? Let the author know!**

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations
