All exams← All AWS Certified Cloud Practitioner (CLF-C02) notes

Compute, storage & networking basics: AWS Certified Cloud Practitioner (CLF-C02) revision notes

Revision notes

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.

Key facts

Flashcards

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
Practice questions

Compute, storage & networking basics: 5 practice questions

Q1. Which AWS service provides resizable virtual servers in the cloud, letting you choose instance types optimised for compute, memory or storage?
  • A.  Amazon EC2
  • B.  Amazon S3
  • C.  AWS Lambda
  • D.  Amazon RDS
Show answer & explanation
✓ Answer: A. Amazon EC2
Amazon EC2 (Elastic Compute Cloud) provides virtual server instances with a wide range of instance families and sizes. S3 is object storage, Lambda is serverless functions, and RDS is a managed relational database service, none of which provide general-purpose virtual servers.
Q2. A company runs a predictable production workload 24/7 for the next three years and wants the lowest possible EC2 hourly cost. Which purchasing option best fits this need?
  • A.  Dedicated Hosts
  • B.  Spot Instances
  • C.  On-Demand Instances
  • D.  Reserved Instances or Savings Plans
Show answer & explanation
✓ Answer: D. Reserved Instances or Savings Plans
Reserved Instances and Savings Plans offer significant discounts (up to ~72%) in exchange for a 1- or 3-year commitment, ideal for steady, predictable workloads. On-Demand costs more per hour with no commitment, and Spot Instances can be interrupted, making them unsuitable for guaranteed 24/7 workloads.
Q3. Which EC2 pricing model lets AWS reclaim the instance with a two-minute warning, in exchange for discounts of up to 90% off On-Demand pricing?
  • A.  On-Demand Instances
  • B.  Reserved Instances
  • C.  Savings Plans
  • D.  Spot Instances
Show answer & explanation
✓ Answer: D. Spot Instances
Spot Instances use spare EC2 capacity at steep discounts but can be interrupted by AWS with a two-minute notice when the capacity is needed elsewhere. This makes them best suited to fault-tolerant or flexible workloads, unlike Reserved Instances which guarantee capacity for a commitment period.
Q4. What is the primary purpose of Amazon EC2 Auto Scaling?
  • A.  To automatically add or remove EC2 instances based on demand
  • B.  To back up EC2 instances to Amazon S3
  • C.  To encrypt data at rest on EBS volumes
  • D.  To distribute incoming traffic across multiple AZs
Show answer & explanation
✓ Answer: A. To automatically add or remove EC2 instances based on demand
EC2 Auto Scaling automatically adjusts the number of running instances according to defined policies or demand, helping maintain performance while controlling cost. Distributing traffic is the role of a load balancer, not Auto Scaling itself, though the two are commonly used together.
Q5. Which storage service is billed based purely on the number of requests and compute time consumed, with no charge when the code is not running?
  • A.  Amazon EC2
  • B.  Amazon EBS
  • C.  AWS Lambda
  • D.  Amazon EFS
Show answer & explanation
✓ Answer: C. AWS Lambda
AWS Lambda is a serverless compute service that charges only for the compute time consumed while code is executing and the number of requests, with nothing charged when idle. EC2 and EBS incur charges for provisioned capacity regardless of usage.
Test yourself
See the AWS Certified Cloud Practitioner (CLF-C02) page

More AWS Certified Cloud Practitioner (CLF-C02) topics