Rubric Edu
Contents — domains, guide and mocks

The AI/ML lifecycle, MLOps and how to measure a model

AIF-C01 1.316 min read · checked 6 November 2026

Task statementDescribe the AI/ML development lifecycle.

The stages of an ML pipeline

AWS's Well-Architected Machine Learning Lens names six phases, and describes the lifecycle as cyclic and iterative — phases are not strictly sequential, and feedback loops send you back to earlier ones.

The ML lifecycle (Well-Architected ML Lens)

  1. Business goalthe problem and how success is measured
  2. ML problem framingwhat to predict, which metric
  3. Data processingcollect, pre-process, feature engineering
  4. Model developmenttrain, tune, evaluate
  5. Deploymentinference in production
  6. Monitoringdetect degradation early

retrain when performance drifts

Monitoring feeds back into data and model development. Most real projects go round this loop many times.
StageWhat happensClue words in a question
Business goal identificationDefine the problem, the value and the success criteria“ROI”, “success criteria”, “stakeholders”
ML problem framingDecide what is observed and what is predicted (the label), and which metric to optimise“target variable”, “is this classification or regression”
Data collectionGather data from its sources“ingest”, “label”, “data sources”
Data pre-processingClean, fill gaps, remove duplicates, convert formats“missing values”, “outliers”, “normalise”
Feature engineeringCreate, transform and select the input variables“new features”, “select variables”, “encode”
Training and tuningFit the model; search for the best hyperparameters“hyperparameter”, “epochs”, “tuning job”
EvaluationMeasure on data the model has not seen“validation set”, “test set”, “precision/recall”
DeploymentServe predictions to applications“endpoint”, “inference”, “batch”
MonitoringWatch quality, drift and cost in production“drift”, “degradation”, “retrain”

Where foundation models come from

  • Pre-trained models from a provider, used through a managed API — for example the models offered in Amazon Bedrock.
  • Open-source pre-trained models, which you can download, adapt and host yourself — for example through SageMaker JumpStart or on your own infrastructure.
  • Training a custom model from scratch on your own data — by far the most expensive option, and rarely the right answer for an AIF-C01 scenario.

Using a model in production: managed API or self-hosted

Managed API service versus self-hosted

Managed API (e.g. Amazon Bedrock)

  • No servers or GPUs to manage
  • Pay per use (for FMs, per token)
  • Fastest route to production
  • Less control over the model and hosting

Self-hosted (e.g. a SageMaker AI endpoint or your own instances)

  • You choose instance types and scaling
  • Full control of model version and configuration
  • You pay for capacity whether it is used or not
  • More operational work: patching, scaling, monitoring

AWS services by stage

The guide names four services for this objective. Two are ML platforms; two are newer tools that show how AWS now expects AI to be used across a business.

ServiceWhat it isWhere it fits
Amazon SageMaker AIAWS's platform to build, train and deploy custom ML modelsData preparation, training, tuning, evaluation, deployment and monitoring of your own models
Amazon BedrockFully managed service offering a choice of foundation models through one APIUsing and customising FMs without managing infrastructure
Amazon QuickAWS's agentic AI workspace for business users: chat, research, business intelligence and automation across company data and appsPutting AI in front of business users, and consuming results
KiroAWS's agentic development tool (IDE and CLI) built around spec-driven development: requirements, design, then tasksBuilding the application code around a model

MLOps in one page

MLOps applies DevOps habits to machine learning. The guide lists its goals; each has a practical meaning.

ConceptWhat it looks like in practice
ExperimentationEvery training run is tracked — data version, code, parameters, results — so the best one can be found and reproduced
Repeatable processesPipelines, not notebooks: the same steps run the same way every time
Scalable systemsTraining and inference that grow with data and traffic without a rewrite
Managing technical debtAvoiding one-off scripts, hidden data dependencies and undocumented features that make models fragile
Production readinessTesting, security, versioning and a rollback plan before a model faces customers
Model monitoringWatching prediction quality and input data for drift after deployment
Model re-trainingRefreshing the model on new data, on a schedule or when monitoring shows decline

Model metrics: accuracy, precision, recall, F1

For a classifier, every prediction lands in one of four boxes: true positive, false positive, false negative, true negative. The metrics are ratios of those boxes, and each answers a different business question.

MetricFormulaThe question it answersPrioritise when…
Accuracy(TP + TN) ÷ allHow often is the model right overall?Classes are balanced and both errors cost the same
PrecisionTP ÷ (TP + FP)When it says “yes”, how often is it right?False alarms are expensive — e.g. blocking a legitimate payment
RecallTP ÷ (TP + FN)Of all the real “yes” cases, how many did it catch?Misses are expensive — e.g. failing to flag a disease or fraud
F1 scoreHarmonic mean of precision and recallA single balance of the twoBoth errors matter and classes are imbalanced

Business metrics

The guide lists cost per user, development costs, customer feedback and return on investment. A model can improve its F1 score and still lose money. Business metrics answer whether the project is worth running: what it costs to build and operate, what each prediction costs, what users say about it, and whether the value it creates exceeds all of that.

Traps the wrong answers are built from

Tempting but wrongDo this instead
Treating deployment as the last step.Plan monitoring and re-training from the start; the lifecycle is a loop.
Reporting accuracy on a rare-event problem.Use recall, precision or F1, chosen by the cost of each error.
Training a model from scratch when a pre-trained one exists.Start from a managed or open-source pre-trained model; train from scratch only with a strong reason.
Judging a project by model metrics alone.Pair them with business metrics: cost per user, development cost, feedback, ROI.

You should now be able to

  • Name and order the components of an ML pipeline, and recognise each from a description.
  • Describe where foundation models come from: provider APIs, open-source pre-trained models, custom training.
  • Compare a managed API service with a self-hosted model.
  • Place SageMaker AI, Amazon Bedrock, Amazon Quick and Kiro in the lifecycle.
  • Explain MLOps concepts: experimentation, repeatability, scale, technical debt, production readiness, monitoring, re-training.
  • Choose between accuracy, precision, recall and F1, and name business metrics that judge an ML project.

Practice questions

Original questions written for this lesson, in the exam’s style. Answer first, then open the reasoning — every option is explained, including why the wrong ones are tempting.

  1. Question 1

    A data scientist combines raw purchase timestamps into new variables such as “purchases in the last 7 days” and “average basket value”, then drops columns that add no signal.

    Which stage of the ML lifecycle is this?

    1. AFeature engineering
    2. BModel monitoring
    3. CBusiness goal identification
    4. DHyperparameter tuning
    Show answer and reasoning
    1. ACorrect. Creating, transforming and selecting input variables is the definition of feature engineering.
    2. BIncorrect. Monitoring happens after deployment and watches a live model's performance.
    3. CIncorrect. That stage defines the problem and success criteria, not the model's inputs.
    4. DIncorrect. Tuning adjusts the training settings of the algorithm, not the input data.
  2. Question 2

    A fraud model for a payments company must catch as many fraudulent transactions as possible. Every flagged transaction is reviewed by an analyst before any action is taken. Fraud is about 0.5% of transactions.

    Which metric should the team prioritise?

    1. ARecall
    2. BAccuracy
    3. CPrecision
    4. DCost per user
    Show answer and reasoning
    1. ACorrect. Missing fraud (a false negative) is the costly error, and analysts absorb false positives, so the goal is to catch the highest share of real fraud.
    2. BIncorrect. With 0.5% fraud, a model that never flags anything is 99.5% accurate — accuracy hides the failure.
    3. CIncorrect. Precision matters when false alarms are expensive; here a human reviews every flag, so misses are the bigger risk.
    4. DIncorrect. A useful business metric, but it does not measure how well the model catches fraud.
  3. Question 3

    Six months after launch, a demand-forecasting model's error has steadily increased. Customer buying patterns have changed since the training data was collected.

    Which MLOps practice addresses this?

    1. AMonitoring the model and re-training it on recent data
    2. BSwitching from real-time to batch inference
    3. CIncreasing the endpoint instance size
    4. DRewriting the business goal
    Show answer and reasoning
    1. ACorrect. Drift between the training data and the live world is exactly what monitoring detects and re-training fixes.
    2. BIncorrect. The inference option changes latency and cost; it does not fix a model whose data is out of date.
    3. CIncorrect. More compute makes predictions faster, not more accurate.
    4. DIncorrect. The goal hasn't changed — the data has.
  4. Question 4

    A start-up wants to add a text-summarisation feature next month. It has no ML engineers and does not want to manage servers or GPUs.

    Which approach fits best?

    1. AUse a foundation model through Amazon Bedrock's managed API
    2. BPre-train a new language model in SageMaker AI
    3. CSelf-host an open-source model on EC2 GPU instances
    4. DUse Amazon Polly
    Show answer and reasoning
    1. ACorrect. A managed API gives access to pre-trained foundation models with no infrastructure to run — the fastest, lowest-effort route.
    2. BIncorrect. Pre-training is slow, expensive and needs ML expertise and huge data — the opposite of the stated constraints.
    3. CIncorrect. This means managing servers and GPUs, which the start-up explicitly wants to avoid.
    4. DIncorrect. Polly converts text to speech; it does not summarise.
  5. Question 5

    Which TWO are business metrics rather than model performance metrics? (Select TWO.) (Select 2.)

    1. AReturn on investment (ROI)
    2. BCost per user
    3. CF1 score
    4. DRecall
    5. EPrecision
    Show answer and reasoning
    1. ACorrect. ROI measures whether the value the model creates exceeds its total cost — a business measure.
    2. BCorrect. Cost per user measures what it costs to serve each user — a business measure the exam guide names.
    3. CIncorrect. F1 is a model performance metric balancing precision and recall.
    4. DIncorrect. Recall measures how many real positives the model catches — a model metric.
    5. EIncorrect. Precision measures how often a positive prediction is right — a model metric.

Sources

Drafted with AI assistance and checked against the sources above; expert review is in progress. Spotted an error? Tell us and it gets fixed, dated and listed on how this is written.