Cloud & AI Production Lab

ML Ops & Production Support

Keep models healthy after launch: catch drift early, release safely, respond fast.

The loop

Every model runs in a closed loop

Click a stage to see what the team controls there.

Closed loop Dataquality · schema Featuresone definition Traintracked runs Evaluatequality + fairness Registerversion · approve Deployshadow · canary Monitordrift · quality · cost Retrainon evidence
Top issues

What the data team resolves

Fifteen recurring problems, each with the signal and the fix.

1Data drift

SignalInputs move away from what the model learned

FixPer-feature tests, alert ladder, retrain review

2Training-serving skew

SignalOffline and live scores differ for the same record

FixOne feature code path, log served features, replay check

3Data quality and schema change

SignalNull spikes, new types, dropped columns

FixContracts and checks that stop the pipeline

4Feature store consistency

SignalStale or future-dated feature values

FixPoint-in-time joins, event time, freshness alarms

5Model performance decay

SignalQuality falls once labels arrive

FixJoin outcomes to predictions, floors, scheduled retrain

6Reproducibility and lineage

SignalLast month’s model cannot be rebuilt

FixVersion data, code, container, seeds; lineage events

7CI/CD/CT for models

SignalManual hand-offs, slow releases

FixTest, package, deploy and retrain as pipelines

8Registry and approval gates

SignalAn unreviewed model reaches production

FixVersioned registry, metric and fairness gates, sign-off

9Monitoring and observability

SignalUsers find the failures first

FixData, model, system and cost metrics on one board

10Incident response and runbooks

SignalSlow, ad hoc fixes

FixOn-call rota, runbook per alert, blameless review

11Rollback, shadow and canary

SignalA bad model hits all traffic

FixShadow, then canary with alarms and auto-rollback

12Cost control

SignalIdle endpoints, runaway jobs

FixBatch over always-on, time caps, tags, kill switches

13Governance

SignalNo audit trail for model decisions

FixModel cards, owners, approvals, retention

14Bias and explainability

SignalSegment gaps, unexplained scores

FixPer-segment metrics, attribution drift, reason codes

15Security

SignalBroad roles, leaked secrets

FixLeast privilege, secrets manager, private endpoints

Deep dive

Data drift: three kinds, five measures

Pick a kind of drift, then move the live data and watch the measures react.

TrainingLiveP(inputs) moves
  • What movesThe input mix. The rule linking inputs to outcomes holds.
  • ExampleWeekly logins fall for everyone in summer.
  • DetectPSI, KS or Wasserstein on each feature.
  • FixRetrain on recent data or reweight.

Move the data, read the measures

-404
Training dataLive data
PSIPopulation stability0.000
KS testLargest curve gapp 1.00
KL divergenceInformation lost0.000
JS distanceSymmetric, bounded0.000
WassersteinDistance to move0.000
StableNo feature action. Keep the weekly schedule.

Bars turn amber past the usual threshold (white ticks). KS flags tiny shifts on large data, which is why distance measures are preferred there.

Alert ladder

  • RungInfoOne feature crosses its thresholdLog it and show it on the board
  • RungWarn30% or more of features driftTicket to the owner, check nulls and schema first
  • RungPageA critical feature drifts, or null rate breaks its limitOn-call acknowledges, scoring pauses if inputs are broken
  • RungRetrain reviewQuality below floor once labels mature, or 50% of features driftStart the pipeline, shadow the result, promote through the gate

From alert to retrain

Run it safely

Release, respond, recover

Three views of production support.

Batch scoring: score with both versions, compare, then repoint the model alias.

Reference platform

Nine building blocks

Each block with its AWS-native option.

1Data platform

Governed, versioned training and serving data

S3 + Iceberg, Glue catalog, Lake Formation

2Feature store

Same definitions for training and serving

SageMaker Feature Store

3Experiment tracking

Compare runs, parameters and metrics

SageMaker Experiments, MLflow

4Pipelines

Repeatable prep, train, evaluate, register

SageMaker Pipelines, Step Functions, Airflow

5Model registry

Versions, lineage, approval state

SageMaker Model Registry

6CI/CD

Test, package and deploy with rollback

CodePipeline, GitHub Actions, CloudFormation, Terraform

7Serving

Real-time, batch and async inference

SageMaker endpoints, Batch Transform, EKS, ECS

8Observability

Drift, quality, latency and cost

Athena + Evidently, CloudWatch, QuickSight, Clarify

9Governance

Access, audit, approvals, risk controls

IAM, Lake Formation, CloudTrail, Model Cards

Two worked patterns

Add for generative AI

Prompt versioningRetrieval versioningEvaluation setsGuardrailsToken-cost tracking
Millionaire Mountain

The design on our own platform

Three ML flows, with the pieces added around them.

Core designAdded design

Added around it

The team

Who does what, and the service levels

Roles, targets and habits of a mature ML Ops team.

ML engineer

OwnsPipelines, serving, releases

Paged forFailed jobs, bad deploys

Data engineer

OwnsSources, contracts, features

Paged forSchema or null spikes

Data scientist

OwnsProblem framing, evaluation

Paged forQuality below floor

Platform and SRE

OwnsSLOs, on-call, cost

Paged forLatency, capacity, spend

Governance and risk

OwnsApprovals, bias review, audit

Paged forPolicy breach

Product owner

OwnsOutcome metric, thresholds

Paged forBusiness impact

Service levels

IndicatorTargetAlert
Real-time latency, p95200 ms or lessPage on fast budget burn
Availability99.9% or morePage below target
Error rate0.5% or lessPage above 2%
Weekly scores readyWithin 2 h of schedulePage at 4 h

Habits

Version data, code and modelsTest data as well as codeTime-based evaluation splitsOne feature code pathShadow before promoteEvery alert has an ownerA runbook per alertBlameless reviewsCost tags on everythingModel cardsSegment-level metricsRetrain on evidence
Roadmap vision

From manual to self-correcting

Five maturity levels and the phases that climb them.