Choosing ML Services by Requirement
This lesson gathers the phrases in MLA-C02 questions that point strongly to one service or feature, as a map to revisit before the exam.
Learning outcomes
After completing this lesson, you will be able to:
- Choose between AI services, foundation models and custom models.
- Map data preparation signals to services.
- Map deployment and operations signals to services.
AI service, foundation model or custom model
The first decision is how much ML to build. AWS AI services such as Amazon Textract, Amazon Rekognition, Amazon Comprehend and Amazon Transcribe solve common tasks through an API with no training. Foundation models on Amazon Bedrock handle open-ended language and image tasks through prompts, and can be grounded with RAG or customised. Custom models trained on SageMaker AI are chosen when the data and the prediction are specific to the business, such as churn, fraud or demand on proprietary data.
The following table maps common requirements to the usual choice.
| Requirement | Usual choice |
|---|---|
| Extract text, tables and form fields from scanned documents | Amazon Textract |
| Detect objects, faces or unsafe content in images | Amazon Rekognition |
| Sentiment, entities or PII in text | Amazon Comprehend |
| Speech to text | Amazon Transcribe |
| Summarize, answer questions, generate text | FM on Amazon Bedrock |
| Answers from private documents with citations | Bedrock Knowledge Bases (RAG) |
| Predict churn from proprietary tabular data | Custom model on SageMaker AI (for example, XGBoost) |
| Business analysts building models without code | SageMaker Canvas |
Pick the level
Data preparation signals
Data preparation questions name a user, a volume and a type of transformation. Visual, no-code cleaning by analysts points to AWS Glue DataBrew. ML feature preparation that feeds SageMaker AI points to SageMaker Data Wrangler. Serverless Spark ETL on large data points to AWS Glue, and full control of Spark clusters points to Amazon EMR. Reusing the same features for training and low-latency inference points to SageMaker Feature Store. Measuring bias before training points to SageMaker Clarify, and human labelling points to SageMaker Ground Truth.
| Phrase in the question | Points to |
|---|---|
| "visual", "no code", "profile the data" | AWS Glue DataBrew |
| "rules", "completeness", "stop the pipeline" | AWS Glue Data Quality |
| "features for training and inference", "point-in-time" | SageMaker Feature Store |
| "label images", "workforce", "bounding boxes" | SageMaker Ground Truth |
| "pre-training bias", "facet", "class imbalance metric" | SageMaker Clarify |
| "PII in S3 buckets" | Amazon Macie |
| "chunking", "metadata filtering", "vector store" | Bedrock Knowledge Bases |
Deployment and operations signals
Deployment questions are decided mainly by latency, payload size and traffic shape. Large payloads or long processing point to asynchronous inference; whole datasets with no endpoint point to batch transform; idle periods and tolerance for cold starts point to serverless inference; many small models point to multi-model endpoints. Operational questions name the problem to watch: drift points to Model Monitor, unexplained latency across services to AWS X-Ray, agent step failures to AgentCore Observability and token spend to CloudWatch generative AI observability and AWS Budgets.
| Phrase in the question | Points to |
|---|---|
| "payload up to 1 GB", "processing takes 20 minutes" | SageMaker asynchronous inference |
| "score the whole dataset nightly" | Batch transform or Bedrock batch inference |
| "intermittent traffic", "pay only when used" | SageMaker serverless inference |
| "thousands of per-customer models" | Multi-model endpoint |
| "test on live traffic without affecting users" | Shadow test |
| "shift 10% of traffic and roll back on errors" | Deployment guardrails canary |
| "data distribution changed" | Model Monitor data quality |
| "mask PII in model responses" | Bedrock Guardrails sensitive information filter |
Read the deployment signal
Three similar options
A team trained a PyTorch model locally and wants to host it on AWS with automatic scaling and the LEAST operational overhead. Traffic is steady during business hours and the model needs a GPU.
Options might be: a SageMaker AI real-time endpoint using the PyTorch framework container; an EKS cluster with a GPU node group and a custom serving stack; a Lambda function; and serverless inference.
Lambda and SageMaker serverless inference do not offer GPUs, so they fail a requirement. EKS works but adds cluster operations. The SageMaker AI real-time endpoint with the prebuilt PyTorch container and target tracking auto scaling meets every requirement with the least to manage, so it is the answer.
When should Bedrock be chosen over SageMaker AI?
Show answer
For generative tasks. SageMaker AI suits custom predictive models.
Exam Tips
Remember for the exam
- Use an AI service when it already performs the task.
- Use Bedrock for generative tasks and SageMaker AI for custom predictive models.
- Serverless inference and Lambda have no GPUs.
- Large or slow requests: asynchronous inference; bulk offline scoring: batch.
- Translate each phrase in the question into the requirement it implies, then eliminate options that miss one.