AWS SAA – Lecture 49: EC2 Placement Groups

Published on
Written by Henry Nguyen

Phase Verbs / Action Phrases

PhraseMeaning
place (instances)control which physical hardware EC2 instances land on
isolate (from failure)ensure one hardware failure doesn’t affect another instance
span (multiple AZs)distribute instances across different availability zones
distribute (data/servers)spread workload across partitions for fault tolerance
group (together)cluster instances on adjacent hardware for low latency

Technical Vocabulary

TermDefinition
Placement GroupA logical grouping of EC2 instances that influences their physical placement on AWS hardware
ClusterPlacement strategy that packs instances on same hardware in one AZ for max network speed
SpreadPlacement strategy that puts each instance on separate hardware; max 7 per AZ
PartitionPlacement strategy using rack-level isolation; up to 7 partitions per AZ; scales to hundreds
RackA physical unit of server hardware in a data center
Enhanced NetworkingEC2 feature providing high bandwidth (10 Gbps) low-latency networking
HDFSHadoop Distributed File System — big data storage that spans many nodes
HBaseDistributed NoSQL database built on HDFS
Partition-awareApplication designed to know which partition/rack its data lives on
PTP (Precision Time Protocol)High-accuracy hardware clock sync protocol
NTP (Network Time Protocol)Standard internet time sync (less precise than PTP)

Key Concepts

Why Placement Groups?

  • Control how EC2 instances are physically placed relative to each other
  • No direct hardware control — you tell AWS your preference, it honors it

4 Placement Group Strategies

StrategyAZ ScopeMax Per AZKey BenefitKey Risk
ClusterSingle AZ onlyUnlimited10 Gbps bandwidth, ultra-low latencySingle AZ failure = all down
SpreadMultiple AZs7 per AZEach instance on separate hardwareLimited scale (7/AZ)
PartitionMultiple AZs7 partitions, hundreds of instancesRack-level isolationPartitions can still affect each other in same AZ
Precision TimeAny—Direct access to high-precision time sourceOnly for time-sensitive apps

Cluster Placement Group

  • All instances in one AZ, on adjacent hardware
  • Get ~10 Gbps network between instances
  • Pro: Ultra-fast networking, low latency
  • Con: If AZ goes down, everything fails simultaneously
  • Use for: Big data jobs, HPC, anything needing extremely low latency + high throughput

Spread Placement Group

  • Each instance on a different hardware rack
  • Can span multiple AZs
  • Limit: Max 7 instances per AZ per placement group
  • Pro: Maximizes instance isolation; failure of one hardware ≠ failure of others
  • Con: Hard limit means small groups only
  • Use for: Critical applications where simultaneous failures must be prevented

Partition Placement Group

  • Instances grouped into partitions; each partition = a different rack
  • Up to 7 partitions per AZ; can span multiple AZs in a region
  • Can hold hundreds of EC2 instances total
  • Partition-level failure is isolated — partition 1 failure ≠ partition 2 failure
  • Application can query the instance metadata service to know which partition it’s on
  • Use for: Distributed big data workloads — HDFS, HBase, Cassandra, Apache Kafka

Precision Time Placement Group

  • Instances placed on hardware with a direct connection to high-precision time sources
  • Clock syncs to Amazon Time Sync Service at hardware level (much more precise than NTP)
  • Has access to PTP hardware clock and hardware packet timestamping
  • Use for: Distributed databases, financial timestamping, strict event ordering

Exam Tips

  • Cluster = performance (low latency, high throughput); single AZ; high risk
  • Spread = availability (isolated hardware); max 7 instances per AZ
  • Partition = scalable isolation (rack-level); up to hundreds of instances; Hadoop/Cassandra/Kafka use cases
  • Spread ≠ Partition — spread is per-instance, partition is per-rack with many instances per partition
  • Precision Time = niche; only when sub-microsecond time accuracy is required