AWS Machine Learning

Choose the smallest supported ML approach that solves the task, then evaluate quality, privacy, latency and lifecycle costs. Model access is not evidence that predictions are correct or compliant.

Prerequisites: IAM, S3, data pipelines and a representative evaluation dataset.

Learning path

LessonAppropriate starting point
AI servicesManaged document, speech, translation, vision and language APIs for supported tasks.
ComprehendLanguage/PII analysis and supported custom classifiers/entities.
RekognitionSupported image/video analysis and Custom Labels.
BedrockFoundation-model inference, RAG, guarded applications and supported customization.
SageMaker AICustom training, deployment, feature management and MLOps.
CanvasSupported visual/no-code workflows with explicit deployment/evaluation boundaries.

Architectural choices

Managed task APIs reduce training/hosting work but impose operation, language, input and customization constraints. Bedrock exposes supported foundation models; RAG supplies retrieved context but does not automatically make answers true. SageMaker AI provides more training/hosting control and corresponding operational responsibility. Canvas simplifies parts of the workflow without eliminating execution-role, data-quality or endpoint costs.

Separate data preparation, training/evaluation, model registration, deployment and monitoring. Avoid train/test leakage; retain reproducible versions of input, features, model and evaluation criteria. Distinguish statistical drift from application/business failure and require a fallback for unavailable or low-confidence output.

Safety and cost exercise

Use synthetic/non-sensitive inputs and a labelled held-out dataset. Compare a managed API/model to a simple baseline; report false positives/negatives and subgroup behavior rather than only one accuracy score. Test an unauthorized identity and define what sensitive inputs/output logs may be retained.

For PHI, service HIPAA eligibility alone is insufficient: the BAA, supported feature/Region, permissions and shared-responsibility configuration matter. Document model/account retention settings and customer-created inference logs separately.

Measure requests/tokens, training/processing hours, notebook/session resources, endpoints, storage and network dimensions from current regional pricing. Endpoints can charge while idle. Delete sandbox apps, jobs/endpoints and reviewed artifacts; avoid retaining sensitive evaluation output in default logs.

The ML stack and choosing ownership

Managed task APIs: input → supported task result
Bedrock: prompt/context → supported foundation model → guarded/evaluated result
SageMaker AI: data → train/evaluate → approved artifact → hosting/monitoring
Canvas: visual preparation/build/evaluation → supported prediction/deployment

These are ownership choices, not a quality ranking. A managed API can outperform a custom model with poorly curated labels; a foundation model may be unsuitable for a deterministic extraction task. Start from the task and held-out evaluation, then justify custom training where it adds value.

RequirementApproach to investigateWhat you still own
OCR/table extractionTextractDocument quality, response reconstruction and validation
Domain speechTranscribe customizationSupported language/mode, vocabulary/model quality
Classification/PIIComprehend or justified modelFalse negatives, thresholds and privacy handling
Generative applicationBedrockGrounding, authorization, prompt/tool safety and evaluation
Custom algorithm/featuresSageMaker AIDataset/algorithm/runtime and MLOps lifecycle
Visual business workflowCanvasData/target/evaluation and eligible deployment

Evaluation and production handoff

Define a baseline, dataset version, held-out split, success threshold and business cost of errors. For classification, compare precision/recall across classes; for forecasting, split chronologically; for generation, evaluate answer support and refusal on unanswerable questions. Training completion and one impressive sample are not quality gates.

Separate notebook experimentation from repeatable jobs. Preserve code, dependencies, data/feature schema, artifact and evaluation evidence. Require explicit deployment approval and an endpoint rollback/fallback strategy. Monitor input drift, output quality where measurable, latency/errors and cost.

Shared responsibility includes least-privilege data access, encryption, supported privacy/retention configuration and logging minimization. Human review and consent requirements do not disappear because a service is HIPAA-eligible or an output has high confidence.

References

Across the wiki