← AI Practitioner study path

AI and ML basics · 11 min

ML lifecycle, Amazon SageMaker AI and MLOps

In this lesson you will learn the phases of an ML project's lifecycle and the steps of a pipeline, which Amazon SageMaker AI feature goes in each stage and which MLOps concepts the exam guide asks for.

The ML lifecycle is the complete journey of a model: it is defined, trained, put to work, watched and, when it gets worse, trained again. Task 1.3 of the AIF-C01 exam covers that journey, and it asks you about its phases, about the steps inside them, about the AWS service that goes in each step and about MLOps, which is the orderly way of repeating all of that.

This journey exists because a model isn't trained once and then forgotten. For example, an online store that wants to predict which customers are going to stop buying defines that goal, trains a model with its purchase history, puts it to work, checks every month whether it is still getting things right and trains it again when it starts to fail.

What are the phases of the lifecycle?

ML lifecycle in six phases numbered in a circle: business goal, ML problem framing, data processing, model development, deployment and monitoring

The Machine Learning Lens of the divides the lifecycle into six phases:

  1. The business goal, where you decide what problem you are going to solve and how you will measure its value.
  2. ML problem framing, where you decide what you observe and what you want to predict. For example, the store decides to observe each customer's purchases to predict whether they are going to stop buying.
  3. Data processing, where you gather and prepare the data the model is going to learn from.
  4. Model development, where you train, tune and evaluate it.
  5. Deployment, where you put the model to work so that an application can ask it for predictions.
  6. Monitoring, where you watch that the model keeps getting things right with everyday data.

The first phase doesn't touch any data, because before collecting data or training a model you have to know what problem you are solving and how you will know whether it was worth it. In addition, the six phases form a cycle, and AWS points out that the phases don't always go in order and that sometimes you have to go back to an earlier one. For example, if while evaluating the model the store discovers that it is missing data about new customers, it goes back to the data processing phase before moving on.

What steps does an ML pipeline have?

Nine pipeline steps grouped into three blocks: in data processing, collection, exploratory analysis, preprocessing and feature engineering; in model development, training, hyperparameter tuning and evaluation; in production, deployment and monitoring

A pipeline is the series of steps that takes the data all the way to a model . Objective 1.3.1 asks you to know its nine steps, which are grouped into three blocks.

The first block is data processing. It starts with collection and with exploratory data analysis, which consists of looking at the data to understand what is in it. Next comes preprocessing, which cleans the data (for example, it leaves "United States" and "US" as a single value), and finally feature engineering, which consists of creating, transforming or choosing the the model will use. For example, the store calculates for each customer how many days have passed since their last purchase, because that number helps predict whether they are going to stop buying.

The second block is model development, with training, hyperparameter tuning and evaluation. Hyperparameters are the training knobs that you choose and that the model doesn't learn, for example how many times the model goes over the data while it is being trained. The third block is production, with deployment and monitoring, and if the model degrades in production, that is, starts getting fewer things right, you go back to the data and retrain it.

The guide asks you to recognize what each step is and in what order it goes, but doing them is out of scope for the exam. That is why you don't need to know how to do feature engineering or build a pipeline.

Which pipeline block does it go in?

0 of 5

Tap the correct column for each step.

  1. Unifying "CDMX" and "Ciudad de México" in one column

  2. Creating the variable "days since the last purchase" from the dates

  3. Trying different values for the training knobs to see which gives the best result

  4. Measuring accuracy with data the model hasn't seen

  5. Checking every week whether the predictions got worse

Amazon SageMaker AI in each stage

Amazon SageMaker AI by stage: in data, SageMaker Canvas with Data Wrangler and SageMaker Feature Store; in development, training jobs and SageMaker JumpStart; in deployment, SageMaker Model Registry and inference endpoints; in monitoring, Amazon CloudWatch; SageMaker Pipelines orchestrates everything; at the bottom, Amazon Bedrock, Amazon Quick and Kiro

Amazon SageMaker AI is the AWS service for building, training and deploying ML models. Until December 3, 2024 it was called Amazon SageMaker, and that name now belongs to the AWS unified platform for data, analytics and AI.

Objective 1.3.4 asks you to place the SageMaker AI features in each stage:

  • In the data stage, SageMaker Canvas, which makes predictions without code, that is, without programming, and includes Data Wrangler to clean and transform data. This stage also has SageMaker Feature Store, which stores variables for reuse, online for real-time predictions and offline for training.
  • In the development stage, training jobs and SageMaker JumpStart, which offers pre-trained models, that is, models someone has already trained, that are .
  • In the deployment stage, SageMaker Model Registry, which stores the model versions, their and whether each is approved, and the , which serve inferences in real time, serverless, asynchronously or in batches.
  • In the monitoring stage, Amazon CloudWatch, the AWS service that gathers data about what you have running so you can keep an eye on it.

SageMaker Pipelines doesn't belong to a single stage, because it orchestrates all the steps, that is, runs them in order one after another, and repeats them the same way every time. In addition, the guide places three other services in the pipeline, which are Amazon Bedrock, Amazon Quick and Kiro. For example, the store can clean its customer data with Data Wrangler, store the variable "days since the last purchase" in Feature Store so other teams can use it and record in Model Registry which version of its model is approved.

Monitoring features that no longer accept new accounts

On June 30, 2026, AWS moved SageMaker Model Monitor, Ground Truth, Clarify and Amazon Augmented AI (A2I) into maintenance. Moving to maintenance means that those who already use them carry on as before, but new accounts can no longer start using them, and for monitoring AWS proposes open solutions with Amazon CloudWatch and Amazon Quick Sight. For example, if the store opens its AWS account today, it can't start using Model Monitor and has to watch its model with CloudWatch. What the exam assesses about monitoring stays the same: detecting that the model degraded and retraining it.

Match each need with its SageMaker AI feature

0 of 5 pairs

Tap a need and then the feature that covers it.

0 of 5 pairs.

What is MLOps?

AWS defines MLOps as a culture and a practice that brings together the development of ML applications with their deployment and operation, that is, with the work of keeping them running. It is similar to , but with one difference: in ML, besides the code, the data is also versioned, that is, each version of the data is saved the way the versions of a document are saved. For example, the store saves which customer data it used to train each version of its model, and that way it can repeat any of them.

The six MLOps concepts in the guide: experimentation, repeatable processes, scalable systems, technical debt, production readiness, and monitoring and retraining

Objective 1.3.5 of the guide lists six MLOps concepts:

  • Experimentation, which consists of trying several versions of the model and recording which data and parameters each one used.
  • Repeatable processes, where each step gives the same result with the same input.
  • Scalable systems, where what worked in a holds up under real traffic. For example, the model the store tested with a handful of customers has to respond just as well when all its customers use it.
  • Technical debt, which is the cost that builds up with manual steps and shortcuts, like a model that only one person knows how to retrain.
  • Production readiness, which consists of reviewing and approving the model before releasing it.
  • Monitoring and retraining, which consist of watching the deployed model and training it again when it gets worse.

Which MLOps concept is missing?

The team retrains the model by copying files by hand, and nobody knows which version of the data was used last time. Which MLOps concept is it missing?

Can you try it in your account?

SageMaker AI is in the free plan of the new experience account, which is fixed to the us-east-2 Region for Latin America, and also in a full account. In a new account of either type you can no longer start using Model Monitor, Ground Truth or Clarify.

cloud path tip: browsing the SageMaker AI console doesn't deploy anything, but an endpoint does charge for its instance for as long as it exists. If you create one to try it, delete it when you finish.

On the exam

The guide asks you to recognize the order of the phases and the steps, and the exam has ordering questions, so it is worth knowing that the business goal goes first and monitoring goes last. For example, if a question gives you monitoring, the business goal and deployment, the correct order is business goal, deployment and monitoring. For the SageMaker AI features, match each need with its stage. In MLOps, phrases like "nobody can repeat it" or "manual steps" point to repeatable processes and technical debt.

Review question

A company wants its model to be retrained every month with the new data, evaluated and, if it passes the evaluation, deployed. It wants the steps to always be the same and nobody to have to run them by hand. Which Amazon SageMaker AI feature should it use?

Next