Fatskills
Practice. Master. Repeat.
Study Guide: Cloud ML - AWS Certified Machine Learning Engineer – Associate (MLA-C01): SageMaker JumpStart (Pre‑trained Models, Fine‑tuning LLMs)
Source: https://www.fatskills.com/machine-learning-101/chapter/cloud-ml-cert-aws-ml-sagemaker-jumpstart-pretrained-models-finetuning-llms

Cloud ML - AWS Certified Machine Learning Engineer – Associate (MLA-C01): SageMaker JumpStart (Pre‑trained Models, Fine‑tuning LLMs)

By Fatskills Exam Guides Team — the exam nerds behind 28,500+ quizzes and 2.1M practice questions across 500+ global exams.

⏱️ ~7 min read

AWS_ML – SageMaker JumpStart (Pre‑trained Models, Fine‑tuning LLMs)


AWS Certified Machine Learning – Specialty: SageMaker JumpStart Study Guide

(Pre-trained Models & Fine-tuning LLMs)


What This Is

SageMaker JumpStart is AWS’s one-click hub for pre-trained foundation models (FMs) and built-in ML solutions. It eliminates the need to train models from scratch by providing curated, deployable models (e.g., Hugging Face LLMs, Stable Diffusion, or BERT) and fine-tuning workflows for custom datasets. Real-world scenario: A fintech startup needs a fraud detection model but lacks labeled data. They use JumpStart’s pre-trained BERT model, fine-tune it on their transaction logs, and deploy it behind a SageMaker endpoint for real-time inference—all without managing infrastructure.


Key Terms & Services

  • SageMaker JumpStart:
    AWS’s model hub for pre-trained foundation models (FMs) (e.g., LLMs, vision models) and built-in solutions (e.g., fraud detection, churn prediction). Integrates with SageMaker Studio for one-click deployment or fine-tuning.

  • Foundation Model (FM):
    A large pre-trained model (e.g., Llama 2, Falcon, Stable Diffusion) trained on vast datasets. JumpStart provides AWS-optimized versions of these models for low-latency inference.

  • Fine-tuning (vs. Training from Scratch):
    Fine-tuning adapts a pre-trained model to a specific task (e.g., fine-tuning BERT for sentiment analysis) using transfer learning. Training from scratch builds a model from random weights—costly and data-hungry.

  • SageMaker Inference Endpoint:
    A managed API for deploying JumpStart models. Supports real-time (low-latency) or batch (asynchronous) inference. Uses auto-scaling to handle traffic spikes.

  • SageMaker Model Registry:
    A central catalog to version, track, and deploy JumpStart models. Enables A/B testing and canary deployments via SageMaker’s shadow testing.

  • Hugging Face on SageMaker:
    JumpStart integrates Hugging Face models (e.g., distilbert, flan-t5) with optimized inference containers. Supports DeepSpeed for distributed fine-tuning.

  • Prompt Engineering:
    Crafting input prompts to guide LLMs (e.g., "Classify this transaction as fraud/legit: [transaction details]"). Critical for zero-shot/few-shot learning without fine-tuning.

  • Parameter-Efficient Fine-Tuning (PEFT):
    Techniques like LoRA (Low-Rank Adaptation) or prefix tuning to fine-tune only a subset of model weights, reducing compute costs. JumpStart supports PEFT for LLMs.

  • SageMaker Pipelines:
    Orchestrates JumpStart workflows (e.g., data prep → fine-tuning → deployment). Enables CI/CD for ML with step caching to avoid redundant training.

  • SageMaker Clarify:
    Detects bias in JumpStart models (e.g., gender/racial bias in NLP models) and feature attribution (e.g., which words influenced a sentiment prediction).

  • SageMaker Model Monitor:
    Tracks drift in deployed JumpStart models (e.g., input data distribution shifts over time). Alerts when performance degrades.

  • AWS Marketplace for ML:
    JumpStart models can be published to AWS Marketplace for monetization (e.g., selling a fine-tuned LLM as an API).


Step-by-Step: Fine-Tuning a JumpStart LLM


Scenario: Deploy a custom chatbot for customer support using a fine-tuned LLM.

  1. Browse & Select a Model
  2. Open SageMaker StudioJumpStartModels, notebooks, solutions.
  3. Filter for LLMs (e.g., falcon-7b-instruct, flan-t5-xl).
  4. Click "Deploy" to test the pre-trained model (no fine-tuning yet).

  5. Prepare Your Dataset

  6. Format data as JSONL (one JSON object per line) with prompt and response fields.
  7. Upload to S3 (e.g., s3://my-bucket/chatbot-data/).
  8. Example JSONL:
    json
    {"prompt": "How do I reset my password?", "response": "Visit account.example.com/reset."}

  9. Fine-Tune the Model

  10. In JumpStart, select the model → "Train" → Configure:
    • Training job name: chatbot-finetune-v1
    • S3 data path: s3://my-bucket/chatbot-data/
    • Instance type: ml.g5.2xlarge (GPU for LLMs)
    • Hyperparameters:
    • epochs: 3 (balance between under/overfitting)
    • learning_rate: 2e-5 (default for LLMs)
    • batch_size: 8 (adjust based on GPU memory)
    • PEFT method: LoRA (reduces compute cost).
  11. Click "Train" → SageMaker launches a managed training job.

  12. Deploy the Fine-Tuned Model

  13. After training, go to SageMaker → Models → Select your model.
  14. Click "Create endpoint" → Configure:
    • Endpoint name: chatbot-endpoint
    • Instance type: ml.g5.2xlarge (GPU for low latency)
    • Auto-scaling: Min 1, Max 5 instances (handle traffic spikes).
  15. Click "Create" → SageMaker deploys the model as an API.

  16. Test & Monitor

  17. In SageMaker Studio, open a notebook → Invoke the endpoint:
    python
    import boto3
    client = boto3.client("sagemaker-runtime")
    response = client.invoke_endpoint(
    EndpointName="chatbot-endpoint",
    Body='{"inputs": "How do I cancel my subscription?"}',
    ContentType="application/json"
    )
    print(response["Body"].read())
  18. Set up Model Monitor to track drift and Clarify to check for bias.

  19. Optimize Costs

  20. Use SageMaker Serverless Inference for sporadic traffic (pay per use).
  21. For batch jobs, use SageMaker Batch Transform (no endpoint needed).

Common Mistakes

Mistake Correction
Assuming JumpStart models are free. JumpStart provides free pre-trained models, but fine-tuning/deployment incurs costs (e.g., GPU instances, endpoint hours). Always check SageMaker pricing.
Fine-tuning an LLM without PEFT. Fine-tuning all weights of a 7B-parameter LLM is expensive (e.g., ml.p4d.24xlarge costs ~$30/hr). Use LoRA or prefix tuning to reduce costs.
Ignoring input token limits. LLMs have max token limits (e.g., 2048 for flan-t5-xl). Truncate/pad inputs to avoid errors. Use SageMaker’s tokenizer to validate.
Deploying without auto-scaling. A single ml.g5.2xlarge endpoint fails under high traffic. Configure auto-scaling (e.g., scale based on InvocationsPerInstance).
Not monitoring for drift. JumpStart models degrade if input data changes (e.g., new slang in chatbot queries). Use Model Monitor to detect drift.


Certification Exam Insights

  1. Service Selection Traps
  2. JumpStart vs. Bedrock: JumpStart is for custom fine-tuning/deployment, while Bedrock is for managed API access to FMs (e.g., Anthropic Claude). Exam trap: If the question mentions fine-tuning, pick JumpStart; if it’s about serverless API access, pick Bedrock.
  3. SageMaker vs. EC2 for Training: JumpStart automates training, but some questions may suggest using EC2 + Hugging Face for "full control." Correct answer: Use JumpStart unless the scenario explicitly requires custom containers.

  4. Key Constraints

  5. Model Size Limits: JumpStart supports models up to 175B parameters (e.g., falcon-180b), but fine-tuning requires GPUs (ml.g5, ml.p4). Exam trap: A question may ask about fine-tuning a 70B-parameter model on a ml.m5.large (CPU-only). Answer: Not possible—use a GPU instance.
  6. Data Format Requirements: JumpStart expects JSONL for fine-tuning. Exam trap: A question may mention a CSV file for LLM fine-tuning. Answer: Convert to JSONL first.

  7. Cost Optimization

  8. Spot Instances for Training: JumpStart supports managed spot training (up to 70% cheaper). Exam trap: A question may ask for the cheapest way to fine-tune—pick spot instances.
  9. Endpoint vs. Batch Transform: For one-time batch jobs, use Batch Transform (no endpoint costs). Exam trap: A question may suggest deploying an endpoint for a daily batch job. Answer: Use Batch Transform instead.

  10. Security & Compliance

  11. VPC Isolation: JumpStart endpoints can be deployed in a VPC for compliance (e.g., HIPAA). Exam trap: A question may ask about securing a JumpStart endpoint—pick VPC + IAM policies.
  12. Data Privacy: JumpStart does not store your fine-tuning data, but S3 buckets must be encrypted (SSE-S3 or SSE-KMS). Exam trap: A question may imply JumpStart stores data—answer: No, data stays in your S3.

Quick Check Questions

  1. A healthcare startup wants to fine-tune a HIPAA-compliant LLM for medical Q&A. They need to ensure no data leaves their AWS account. Which approach should they use?
  2. A) Use Amazon Bedrock with a private model.
  3. B) Fine-tune a JumpStart LLM in a VPC-isolated SageMaker training job.
  4. C) Deploy a Hugging Face model on EC2 with a VPN.
  5. D) Use AWS Lambda to call a third-party LLM API.

Answer: B
Explanation: JumpStart supports VPC isolation and HIPAA compliance, while Bedrock (A) is managed by AWS (data leaves the account). EC2 (C) lacks managed fine-tuning, and Lambda (D) violates HIPAA.


  1. A retail company wants to deploy a custom product recommendation model with minimal ML expertise. They have a dataset of user clicks in S3. Which JumpStart feature should they use?
  2. A) Fine-tune a pre-trained recommendation model (e.g., sagemaker-recsys).
  3. B) Train a model from scratch using SageMaker Autopilot.
  4. C) Use Amazon Personalize for real-time recommendations.
  5. D) Deploy a Hugging Face LLM and prompt-engineer recommendations.

Answer: A
Explanation: JumpStart offers pre-trained recommendation models (e.g., sagemaker-recsys) that can be fine-tuned on clickstream data. Autopilot (B) is overkill, Personalize (C) is a separate service, and LLMs (D) are not ideal for recommendations.


  1. A fintech company fine-tuned a JumpStart LLM for fraud detection. After deployment, they notice increasing latency during peak hours. What is the most cost-effective solution?
  2. A) Switch to a larger instance (e.g., ml.g5.12xlarge).
  3. B) Enable auto-scaling for the endpoint.
  4. C) Use SageMaker Serverless Inference.
  5. D) Retrain the model with fewer parameters.

Answer: B
Explanation: Auto-scaling (B) adds instances only during peak traffic, reducing costs vs. a fixed large instance (A). Serverless (C) is cost-effective for sporadic traffic, not sustained peaks. Retraining (D) doesn’t address latency.


Last-Minute Cram Sheet

  1. JumpStart = Pre-trained models + fine-tuning (vs. Bedrock = managed API access).
  2. Fine-tuning requires GPU instances (ml.g5, ml.p4)—CPU won’t work for LLMs.
  3. PEFT (LoRA) reduces fine-tuning costs by training only a subset of weights.
  4. JSONL format is required for LLM fine-tuning (not CSV).
  5. Auto-scaling endpoints prevent throttling during traffic spikes.
  6. Model Monitor detects drift—set up alerts for performance drops.
  7. Batch Transform > Endpoints for one-time inference jobs (cheaper).
  8. VPC isolation is required for HIPAA/GDPR compliance.
  9. ⚠️ JumpStart models are free to use, but deployment/fine-tuning costs money.
  10. ⚠️ Bedrock is for API access to FMs (no fine-tuning); JumpStart is for customization.


ADVERTISEMENT