Generative AI basics · 12 min
Foundation model lifecycle
In this lesson you will learn the order of the seven steps of the foundation model lifecycle that the exam guide asks for, what the six phases of the Generative AI Lens are and at which step almost any company starts.
The foundation model lifecycle is the sequence of steps that goes from choosing the data to improving the model with what happens in production. It resembles the machine learning lifecycle (define the problem, prepare the data, train, deploy and monitor), where monitoring means watching how the model works once people are using it. However, AWS describes it in two ways, one in the exam guide and another in the Generative AI Lens, and the questions use the words of one or the other. For example, an online store that wants an assistant to answer questions about its products goes through this cycle: it chooses which data to use, chooses a model, tests it, puts it on its website and improves it with what its customers say.
Lifecycle according to the exam guide

The exam guide names seven steps of the lifecycle, which in order are these:
- Data selection, where you decide which data will train or adapt the model, how much of it and with what quality. For example, the store decides to use its product pages and the questions its customers asked over the last year.
- Model selection, where you decide which base model to use, that is, which model already trained by another company will be taken as the starting point. For example, the store chooses a text model from Amazon Bedrock.
- Pre-training, where the model is trained from scratch with an enormous amount of general data, such as millions of texts of every kind.
- Fine-tuning, where the pretrained model keeps being trained with a smaller, more specific dataset, to adapt it to a task or a domain, which is an area of knowledge such as medicine or law. For example, the store keeps training the model with hundreds of its customers' questions, each with its correct answer.
- Evaluation, where you measure whether the model responds well for your case before putting it into production. For example, the store asks the model fifty questions whose answers it already knows and checks how many it gets right.
- Deployment, where the model is made available to users inside an application. For example, the store puts the assistant on its website so any customer can write to it.
- Feedback, where what happens in production is collected to improve the data and the model. For example, the store saves the answers that customers marked as unhelpful.
The last step takes what users say back to the data and the model, and that is why the sequence is called a cycle. After feedback, it starts again with data selection. For example, the questions the assistant answered badly are added to the data for the next round of fine-tuning.
At which step a company starts
Pre-training is the most expensive step of the cycle, because according to the Generative AI Lens it requires clusters of GPUs running for weeks. A cluster is a group of computers that work together on the same task. That is why almost every company starts at step 2: it chooses a base model that someone else already trained, for example one from Amazon Bedrock, and fine-tunes it if needed. For example, the store never does step 3, because the model it chose already comes pretrained.
At which step does it start?
A pharmacy chain wants an assistant that answers questions about its products. It has no GPU clusters and no months to train. At which step of the lifecycle does it start?
The six phases of the Generative AI Lens
The Generative AI Lens is an extension of the AWS Well-Architected Framework, which is the AWS guide with best practices for building systems in the cloud. The Lens adds best practices for generative AI applications that use models in Amazon Bedrock or their own models in Amazon SageMaker AI, and organizes them into a cycle of six phases:
- Scoping, where you understand the business problem, decide whether generative AI can solve it and define the success metrics, risks and costs. For example, the store decides that the assistant is a success if it answers most questions about shipping correctly.
- Model selection, where models are compared by modality, size, accuracy, price, context window and latency, and you review what the provider does with your data. Modality is the type of data the model handles, such as text or images.
- Model customization, where the model is adapted to your case with prompt engineering, RAG, agents, fine-tuning, continued pre-training, distillation or alignment with human feedback. For example, the store starts by writing better instructions and passing its policies to the model with RAG, which is searching its documents and giving them to the model, before thinking about fine-tuning.
- Development and integration, where the model is connected to the application, the databases and the other systems, with safeguards such as guardrails to reduce risks like hallucinations. Guardrails are filters that check what goes into and comes out of the model, and a hallucination is a false answer stated with confidence. For example, the store connects the assistant to its order system so it can say where a package is.
- Deployment, where the model reaches production in a controlled way, with pipelines and infrastructure as code. For example, the store releases the assistant first to a few customers and, if everything goes well, to everyone.
- Continuous improvement, where the accuracy, toxicity and coherence of the responses are monitored, user feedback is collected and adjustments are made. Toxicity is how much offensive or harmful content a response contains, and coherence is whether the response makes sense from start to finish. For example, the store reviews the lowest-rated answers every week and corrects its instructions.
In the scoping phase, the Lens proposes questions such as "is an off-the-shelf model enough or does it need to be customized?" or "is one model enough or are several orchestrated models needed?", where orchestrated means coordinated so that each one does part of the work. For example, the store could decide that one model to answer questions is enough, or that it needs one that answers and another that checks what the first one wrote. If you read the Lens page, you will see that it says "seven key phases", even though the list that follows has these six.
Match each phase with what happens in it
0 of 5 pairsTap a phase of the Generative AI Lens and then its activity.
0 of 5 pairs.
How are the two versions related?
The two versions describe the same cycle from different places. The exam guide describes it from the model's point of view, with which data, which model and how it is trained. The Lens, on the other hand, describes it from the application's point of view, so it starts earlier, with scoping, and leaves out pre-training from scratch, which it says it doesn't cover. For example, the store's decision about whether an AI assistant is worth it appears as the scoping phase in the Lens, and has no step of its own in the exam guide.
cloud path tip: the words in the options tell you which version to use. If they say "pre-training" and "fine-tuning", think of the seven steps of the exam guide, and if they say "scoping" or "continuous improvement", think of the Lens.
The Lens also reviews each phase with the six pillars of the Well-Architected Framework: operational excellence, security, reliability, performance efficiency, cost optimization and sustainability. For example, when choosing the model, the cost optimization pillar leads the store to ask itself whether a smaller model is enough.
True or false?
0 of 3User feedback can go back to data selection.
In the Generative AI Lens, the scoping phase consists of choosing between Amazon Bedrock and SageMaker AI.
Fine-tuning trains the model from scratch with your data.
In both accounts
The lifecycle is the same in the full AWS account and in the new experience account. What changes is where you can try each step, because Amazon Bedrock and SageMaker AI are in the free plan of the new experience, but that account only works in us-east-2 and doesn't support cross-Region features. For example, if you want to evaluate a model from that account, it has to be one that is available in us-east-2.
On the exam
This topic can appear as an ordering question, where you put the steps in order, or as a scenario that asks which step a company is at. In a scenario, some phrases in the question point to the step:
- "From scratch" or "huge amounts of general data", which point to pre-training.
- "With our labeled data", which points to fine-tuning. Labeled data are examples that already come with the correct answer written by a person.
- "Before putting it into production", which points to evaluation.
- "User feedback", which points to feedback or to continuous improvement.
- "Whether generative AI is the right solution", which points to scoping.
For example, if the question says a company already has its assistant running and now collects the ratings its customers give it, the company is at the feedback step.
Review question
A company already chose a base model and fine-tuned it with its manuals. Before opening it to its customers, it compares its responses against a set of questions and correct answers. At which step of the foundation model lifecycle is it?
Next
- Generative AI Lens - AWS Well-Architected Framework. Its "Generative AI lifecycle" page describes each of the six phases.
- Take an AI Practitioner practice exam at /examenes and review your result in domain 2.