Compute basics
Amazon EC2 gives you resizable virtual servers (instances) in the cloud, billed by the second for most Linux instances (minimum 60 seconds). You choose an instance type (family + size, eg t3.micro) which sets vCPU, RAM and network performance.
Pricing models matter for the exam:
- On-Demand: pay per second/hour, no commitment, most expensive per unit, best for short-term or unpredictable workloads.
- Reserved Instances: 1 or 3 year commitment, up to 72% cheaper than On-Demand, best for steady, predictable workloads.
- Savings Plans: commit to a $/hour spend for 1 or 3 years, more flexible than Reserved (works across instance families).
- Spot Instances: bid on spare capacity, up to 90% cheaper, but AWS can reclaim with a 2-minute warning. Good for fault-tolerant, flexible workloads like batch jobs, never for critical always-on apps.
- Dedicated Hosts: physical server dedicated to you, for licensing or compliance needs.
Auto Scaling adjusts EC2 capacity automatically to match demand; Elastic Load Balancing (ELB) distributes traffic across multiple instances/AZs for high availability.
Storage basics
Three main categories, and the exam loves testing which one fits which use case:
- Amazon S3 (object storage): stores objects (files) in buckets, virtually unlimited capacity, 11 nines (99.999999999%) durability. Storage classes trade cost for retrieval speed: S3 Standard (frequent access), S3 Standard-IA and One Zone-IA (infrequent access, cheaper), S3 Glacier Instant/Flexible/Deep Archive (archival, cheapest, slower retrieval - Deep Archive can take up to 12 hours).
- Amazon EBS (block storage): persistent virtual hard drives attached to a single EC2 instance, used for OS/databases needing low-latency access. Data persists independently of the instance lifecycle.
- Amazon EFS (file storage): fully managed NFS file system that can be mounted by many EC2 instances at once (shared access), scales automatically.
- Instance store: temporary block storage physically attached to the host - fastest but data is LOST if the instance stops or terminates. A classic exam trap.
Networking basics
Amazon VPC (Virtual Private Cloud) is your own logically isolated network within AWS, split into subnets across Availability Zones. Public subnets route to the internet via an Internet Gateway; private subnets don't (they can reach out via a NAT Gateway but can't be reached from outside directly).
- Security Groups: stateful, act at the instance level, allow rules only (no explicit deny needed - return traffic is automatically allowed).
- Network ACLs (NACLs): stateless, act at the subnet level, support both allow and deny rules, evaluated in rule-number order.
- Amazon Route 53: AWS's DNS service, also does domain registration and health checks.
- AWS Direct Connect: a dedicated private network connection from your premises to AWS, bypassing the public internet for consistent performance.
Common mistakes
- Confusing Security Groups (stateful, instance-level) with NACLs (stateless, subnet-level).
- Forgetting instance store is ephemeral - never use it for anything you can't lose.
- Picking Spot Instances for critical production workloads - wrong, they can be interrupted.
- Thinking S3 Glacier Deep Archive is for real-time access - it's the slowest and cheapest, for long-term compliance archives.
What is the minimum billing increment for most EC2 On-Demand Linux instances?
Per second, with a 60 second minimum.
tap to reveal
Which EC2 pricing model offers up to 72% savings for steady, predictable workloads?
Reserved Instances (1 or 3 year commitment).
tap to reveal
Which EC2 pricing model can be interrupted by AWS with a 2-minute warning?
Spot Instances.
tap to reveal
What durability does Amazon S3 provide for objects?
99.999999999% (11 nines) durability.
tap to reveal
Which S3 storage class is cheapest but can take up to 12 hours to retrieve data?
S3 Glacier Deep Archive.
tap to reveal
What happens to data on instance store storage if the EC2 instance stops?
It is permanently lost - instance store is ephemeral.
tap to reveal
What's the difference between EBS and EFS?
EBS is block storage attached to one EC2 instance; EFS is a shared NFS file system multiple instances can mount at once.
tap to reveal
Are Security Groups stateful or stateless, and at what level do they operate?
Stateful, at the instance level, allow rules only.
tap to reveal
Are Network ACLs stateful or stateless, and at what level do they operate?
Stateless, at the subnet level, support both allow and deny rules.
tap to reveal
What gives a VPC public subnet access to the internet?
An Internet Gateway.
tap to reveal
How does a private subnet get outbound-only internet access?
Through a NAT Gateway.
tap to reveal
What AWS service provides DNS, domain registration and health checks?
Amazon Route 53.
tap to reveal
What does AWS Direct Connect provide?
A dedicated private network connection from on-premises to AWS, bypassing the public internet.
tap to reveal
What does Elastic Load Balancing (ELB) do?
Distributes incoming traffic across multiple EC2 instances/Availability Zones for high availability.
tap to reveal
What does EC2 Auto Scaling do?
Automatically adjusts the number of EC2 instances to match demand.
tap to reveal