Skip to content

Chapter 2 of 7

Compute Foundations

EC2 instance families are lettered to advertise their shape: C is compute-heavy, M is balanced, R is memory-rich, and T is burstable and cheap for variable workloads. Choosing among them is part of architectural fitness, and so is choosing how to pay. Spot Instances offer up to 90% discount but can be reclaimed with a 2-minute interruption notice, which your application can learn about through the instance metadata at the well-known spot/instance-action path or via an EventBridge event. Reserved Instances commit you to a specific instance type for one or three years for roughly a one-third discount, while Savings Plans trade instance-type specificity for family flexibility at a similar discount.

AWS Lambda runs code in response to events without provisioning servers. Each invocation is capped at 15 minutes, and the default regional concurrency limit is 1,000 (raiseable on request). To reach resources inside a VPC, you attach a configuration that includes subnets and security groups; AWS then creates ENIs in those subnets for the function. EventBridge cron or rate rules are the standard way to schedule Lambdas, and Lambda can also be invoked by SQS, SNS, API Gateway, and dozens of other sources.

AWS Fargate applies the same serverless model to containers, removing the need to manage EC2 hosts underneath ECS or EKS. ECS is the AWS-native container orchestrator and EKS is managed Kubernetes, both of which can run on EC2 or on Fargate. For batch workloads such as genomics or rendering, AWS Batch schedules jobs across dynamically provisioned compute and is the right answer when you need queue-driven parallelism. To move existing servers, Application Migration Service (MGN) performs continuous block-level replication and orchestrates cutover. AMIs tie together an EBS snapshot and the launch metadata needed to boot a new instance, and they can be shared across accounts with explicit launch permissions, enabling cross-account image distribution.

All chapters
  1. 1Object, Block, and File Storage
  2. 2Compute Foundations
  3. 3Networking and Content Delivery
  4. 4Databases, Caching, and Analytics
  5. 5Messaging, Streaming, and APIs
  6. 6Security, Identity, and Compliance
  7. 7Monitoring, Observability, and Disaster Recovery

Drill it

Reading is not remembering. These come from the AWS Saa C03 Exam Cheatsheet deck:

Q

Which AWS service is best for object storage with 11 9s durability?

Amazon S3 — durability 99.999999999%.

Q

Cheapest S3 class for rarely-accessed data with 12h retrieval?

S3 Glacier Deep Archive.

Q

S3 class for unknown/changing access patterns?

S3 Intelligent-Tiering — auto-moves objects, no retrieval fees.

Q

Feature that prevents accidental S3 object deletion?

S3 Versioning + MFA Delete.