Skip to main content
In this lesson we examine managed vs unmanaged services on AWS, why AWS offers managed services, the trade-offs and benefits of using them, and how those concepts apply specifically to Amazon SageMaker. By the end you’ll understand what to expect when you choose SageMaker as your managed ML platform.
A dark-blue presentation slide from KodeKloud showing the title "AWS Managed Services" with the subtitle "Theory." The KodeKloud logo appears at the top.
This lesson focuses on conceptual differences and practical consequences of choosing managed vs unmanaged services, with concrete examples (EC2, RDS) and how SageMaker leverages managed service patterns for ML workflows.
Agenda
  • Define unmanaged vs managed services.
  • Illustrate with EC2 (unmanaged) and RDS (managed).
  • Describe benefits and challenges of managed services.
  • Map managed-service concepts to Amazon SageMaker (notebooks, training, hosting).
  • Summarize expected results when using SageMaker.
A presentation slide titled "Agenda" showing six numbered items. The points cover managed vs unmanaged services in AWS, the need and challenges of managed services, benefits, a workflow for building an AI platform, and expected results.
Overview: approach used in this lesson
  • First, contrast a low-level compute example (EC2) to show what “unmanaged” means.
  • Next, compare that to a straightforward managed example (RDS) to highlight the operational differences.
  • Finally, apply those same principles to SageMaker to explain how it abstracts infrastructure while exposing the controls ML teams need.

Unmanaged services — EC2 example

Amazon EC2 (Elastic Compute Cloud) is a representative unmanaged service. When you launch and maintain EC2 instances, you are responsible for the full stack required to run and operate them:
  • Create and manage an AWS account.
  • Provision a VPC (virtual private cloud) and define subnets.
  • Configure security groups, routing, and NACLs.
  • Launch and manage the instance OS: patching, monitoring, backups.
  • Configure high availability across Availability Zones, scaling, and failover.
You perform these tasks using the console, CLI, SDKs, or IaC tools (CloudFormation, Terraform). That approach provides maximum flexibility but also places the operational burden on your team.
A diagram titled "Managed vs Unmanaged Services in AWS" showing an AWS Cloud with a Virtual Private Cloud spanning two Availability Zones, each containing a public subnet, a security group, and an instance. Colored dashed boxes indicate the network and security boundaries.
Because EC2 is “unmanaged” in this context, you trade convenience for control: full configurability at the cost of ongoing maintenance (patches, backups, scaling, redundancy).
A slide titled "AWS Unmanaged Services" with three numbered panels. Each panel describes aspects of unmanaged setups: Manual Setup (you provision VPCs, subnets, EC2, autoscaling), Full Control (complete flexibility), and Responsibility (you manage failover, redundancy, and updates).

Managed services — concept and example

Managed services abstract and operate the underlying infrastructure for you. The cloud provider (AWS) provisions, monitors, patches, and maintains the service components while you consume higher-level primitives. Example: Amazon RDS
  • With RDS you request a managed database instance and optionally enable high availability.
  • AWS takes care of provisioning, replication, automated backups, OS and database patches, and failover.
  • A single configuration change or checkbox can enable replication and automatic failover across AZs.
Benefits of the managed approach:
  • Reduces infrastructure complexity.
  • Provides built-in scaling and availability patterns.
  • Delivers faster time-to-value by removing low-level provisioning tasks.
A slide titled "AWS Managed Services" listing three benefits: 01 Abstracts Complexity, 02 Auto-Scaling and Availability, and 03 Faster Time-to-Value. Each box has a short explanation about AWS handling infrastructure, scaling, and quick startup.
Operational advantage: AWS runs teams and tooling that handle monitoring, patching, and maintenance at scale—resources that would be costly for each team to duplicate.
A presentation slide titled "AWS Managed Services" showing two feature cards. One highlights "24/7 Support" for uptime and reliability, and the other lists "Minimal Maintenance" with scaling, updates, and fault tolerance.

SageMaker as a managed service for ML workflows

Amazon SageMaker applies the managed-service model specifically to ML development and production. It exposes higher-level constructs—hosted notebooks, training jobs, and endpoints—while AWS manages the underlying compute, networking, and container orchestration. Key stages SageMaker supports and what it manages for you:
  • Exploratory data analysis
    • Hosted, managed JupyterLab notebooks close to your data.
    • Avoids local hardware limits and simplifies secure data access.
  • Data processing and training
    • Create discrete processing jobs or training jobs by declaring compute requirements and container images.
    • SageMaker provisions the necessary compute (EC2 instances), networking, and storage, and runs jobs reliably.
  • Model hosting and inference
    • Deploy models to managed endpoints where SageMaker handles instance provisioning, autoscaling, rolling updates, and traffic-splitting (A/B, canary).
    • Supports managed multi-model endpoints and serverless inference (depending on use case).
Under the hood, SageMaker orchestrates VPCs, EC2 instances, containers, and storage for you while exposing controls for compute sizing, distributed training options, and scaling policies.
A presentation slide titled "SageMaker AI – Built-in Features and Integrations" showing three boxes: Permissions & Security, Compute & Storage, and Built-in Capabilities. Each box lists examples like AWS IAM, VPC, KMS; ECR and managed Jupyter notebooks; and prebuilt algorithms, autoscaling, and A/B testing.

Key integrations and built-in capabilities

SageMaker leverages many AWS services to provide a secure and scalable managed ML platform. The table below maps core integrations to their purpose:
IntegrationPrimary use caseExample
AWS IAMIdentity and fine-grained permissionsRoles for notebooks, training jobs, and S3 access
Amazon VPCNetwork isolation and secure access to internal resourcesPlace processing/training jobs inside a custom VPC
AWS KMSEncryption of data at rest and in transitEncrypt S3 artifacts, EBS volumes, and model artifacts
Amazon ECRContainer image storage for algorithms and custom codeHost custom training/inference images
SageMaker built-in algorithms / containersRapid experimentation with optimized algorithmsXGBoost, Linear Learner containers
Autoscaling & deployment strategiesProduction resilience and safe rolloutsEndpoint autoscaling, canary/A/B traffic shift
These integrations allow SageMaker to provide managed compute and storage while giving you the configurability needed for a variety of ML workloads.
Slide titled "SageMaker AI – Built-in Features and Integrations" showing user roles (Data Scientist, Developer, Business User) on the left connected to a central AI icon and a list of features on the right: Provisioning Compute, Managing Containers, Distributed Training, and Autoscaling and Deployment.

Operational behavior and flexibility

SageMaker manages infrastructure but keeps important levers in your control:
  • Compute sizing: choose instance types (vCPU, memory, GPU).
  • Parallelism and distribution: pick single-node or distributed training.
  • Autoscaling and capacity: define autoscaling policies for endpoints.
  • Deployment strategies: perform blue/green or canary rollouts and traffic-splitting.
This balance lets ML teams focus on model design, feature engineering, and evaluation while delegating low-level infrastructure and operational tasks to AWS.
Managed services provide strong operational benefits, but be aware of trade-offs: reduced control over low-level configuration, potential vendor lock-in, and the need to monitor managed costs. Evaluate these factors when designing your ML platform.

Practical effects and advantages of using managed services like SageMaker

  • Faster time-to-value: skip manual provisioning and move quickly into data work and model development.
  • Focused expertise: data scientists spend more time on ML problems and less on ops.
  • Rapid experimentation: quickly iterate on ideas with on-demand compute and managed environments.
  • Reduced operational burden: AWS handles patching, monitoring, scaling, and failure remediation.
These benefits enable teams to iterate faster and focus resources on delivering ML-driven business value.
A slide titled "Managed Services – Effects and Advantages" with four numbered panels. They list benefits—Faster Results, Optimized Expertise, Quick Start, and Less Infrastructure Burden—each noting less time on infrastructure, more focus on ML, faster experimentation, and AWS handling scaling/failures.

Summary

  • AWS offers both managed and unmanaged services. EC2 is a typical unmanaged service; RDS, S3, and SageMaker are examples of managed services.
  • Managed services abstract much of the infrastructure provisioning and operations, reducing time to value and operational costs.
  • The trade-off is less low-level control, but you retain the ability to specify compute sizing (CPU, memory, GPUs), distributed training behavior, and endpoint autoscaling.
  • SageMaker applies managed-service principles to ML: hosted notebooks, managed training and processing jobs, containerized algorithms, distributed training, and autoscaled endpoints—helping teams prototype quickly and deploy models to production without managing the underlying infrastructure.
A presentation slide titled "Summary" that lists five numbered points comparing AWS managed vs unmanaged services and describing SageMaker's handling of infrastructure. The left side has a dark panel with the title and the right side shows turquoise numbered markers with short text about abstraction, control trade-offs, compute sizing/scaling, and faster time to value versus EC2/ECS.
Further reading and references That concludes this lesson. The course also includes an introduction to Jupyter notebooks and practical steps for starting exploratory data analysis in SageMaker.

Watch Video