Started Study on Dec 11, 2025
←
Module 2 - Compute in the Cloud
Introduction to EC2
- Flexible, cost-effective compute service with on-demand capacity
- Pay only for active usage with multi-tenancy isolation
- Choose instance type, OS, storage, and AMI (Amazon Machine Image)
EC2 Instance Types
- General purpose - Diverse workloads (web services, code repos)
- Compute optimized - Gaming, machine learning, scientific modeling
- Memory optimized - Large datasets, data analytics, databases
- Accelerated computing - GPUs for graphics, ML, floating point calculations
- Storage optimized - High-performance local data, data warehousing, I/O intensive
How to Provision EC2
- Control via API requests through Management Console, CLI, or SDK
- AWS handles cloud infrastructure security; customers handle data/apps security
- Unmanaged service - customers configure firewall, OS, updates
EC2 Pricing
- On Demand - No upfront cost, pay-as-you-go (most popular)
- Savings Plan - Commit 1-3 years for 72% savings
- Reserved Instances - 1-3 year term for 75% savings
- Spot Instances - Bid on spare capacity for 90% savings
- Dedicated Instances - Hardware dedicated to your account
Scaling & Load Balancing
- Scale up - Add power to existing machines | Scale out - Add more machines
- Load balancer distributes traffic across multiple resources, prevents overload
- Round robin - Cycles through servers | Least connections - Sends to least busy server
- IP Hash - Maps client IP to specific server | Least Response Time - Routes to fastest server
Messaging & Queuing
- Monolithic = tightly coupled (one failure affects all)
- Microservices = loosely coupled (isolated failures, flexible)
- EventBridge - Routes events between applications/services
- SQS - Message queue service (decouple app components)
- SNS - Publish-subscribe for notifications (email, SMS, etc.)
Module 3 - Serverless & Containers
Service Models
- Unmanaged - AWS manages only physical infrastructure
- Managed - AWS also manages OS, network, firewall, applications
- Fully-managed - AWS handles everything including security/encryption
AWS Lambda
- Serverless compute service - No server management needed
- Charged per millisecond of compute time
- Auto-handles execution, scaling, resource allocation
- Components: Lambda functions, triggers, runtimes
Container Services
- Containers package code+dependencies for consistency (eliminates "works on my machine")
- Components: Orchestration, Registry, Compute
- ECS - Streamlined container orchestration (AWS native)
- EKS - Kubernetes service (more control/flexibility)
- ECR - Elastic Container Registry (store/deploy images)
- EC2 - Full control (manage infrastructure) | Fargate - Serverless containers
- Elastic Beanstalk - Simplified EC2 deployment (handles scaling/load balancing)
- Batch - Heavy-duty tasks (data sets, simulations)
- Lightsail - Simple web hosting | Outpost - Hybrid cloud (on-premise + AWS)
Module 4 - Global Infrastructure
Global Infrastructure
- AWS operates across multiple regions worldwide
- Choose regions based on latency, compliance, costs, and feature availability