Album69
  • About
  • Life
  • Travel
  • Tech
  • Galleries
  • SAP-C02 Notes
  • DOP-C02 Notes
X GitHub LinkedIn YouTube

Amazon EC2 Advanced

Domain 2 (29%). At the professional level, focus on purchasing options, placement groups, instance types for specific workloads, and Spot integration…

Domain 2: New Solutions
October 9, 2026

Exam relevance: Domain 2 (29%). At the professional level, focus on purchasing options, placement groups, instance types for specific workloads, and Spot integration patterns.


1. Purchasing Options

OptionUse CaseCommitmentDiscount
On-DemandUnpredictable, short-termNoneNone
Reserved Instances (RI)Steady-state, predictable1 or 3 yearsUp to 72%
Savings PlansFlexible steady-state1 or 3 yearsUp to 66%
Spot InstancesFault-tolerant, flexibleNoneUp to 90%
Dedicated HostsLicensing, complianceOn-demand or reservedVaries
Dedicated InstancesIsolation requirementOn-demand or reserved~10%
Capacity ReservationsGuaranteed capacity in AZNone (pay on-demand rate)None

Reserved Instances vs Savings Plans

FeatureReserved InstancesSavings Plans
FlexibilityLocked to instance type/regionFlexible across instance family, region, OS
TypesStandard, Convertible, ScheduledCompute, EC2 Instance, SageMaker
Convertible RIsCan exchange for different typeN/A
Compute Savings PlansN/AMost flexible — covers EC2, Lambda, Fargate

Spot Instances

  • AWS can reclaim with 2-minute warning
  • Best for: batch processing, CI/CD workers, stateless web servers, HPC
  • Spot Fleet: mix of Spot + On-Demand across instance types and AZs
  • EC2 Auto Scaling with Spot: use mixed instances policy for resilience
  • Spot Blocks (deprecated): verify current availability

2. Placement Groups

TypeBehaviorUse Case
ClusterSame rack, same AZLow latency, high throughput (HPC, ML training)
SpreadDifferent racks, different AZsCritical instances, max fault isolation (max 7 per AZ)
PartitionGroups of instances on separate racksDistributed systems (Hadoop, Kafka, Cassandra)
  • Cluster: highest network performance (up to 100 Gbps with enhanced networking) but single point of failure at rack level
  • Spread: max 7 instances per AZ per group — not for large clusters
  • Partition: up to 7 partitions per AZ, hundreds of instances per partition; each partition is isolated from others

3. Instance Types for Specific Workloads

FamilyOptimized ForExamples
C (Compute)CPU-intensive: web servers, batch, ML inferencec6i, c7g
M (General)Balanced: app servers, small databasesm6i, m7g
R (Memory)In-memory databases, caches, big datar6i, r7g
I (Storage)High IOPS local NVMe: NoSQL, data warehousingi3, i4i
G/P (GPU)ML training, graphics renderingg5, p4d
Inf (Inferentia)ML inference (AWS custom chip)inf2
Trn (Trainium)ML training (AWS custom chip)trn1
X (Extra memory)SAP HANA, large in-memory databasesx2idn
T (Burstable)Variable workloads with CPU creditst3, t4g

Graviton (ARM-based)

  • AWS-designed ARM processors (g suffix: m7g, c7g, r7g)
  • Up to 40% better price/performance than x86 equivalents
  • Requires ARM-compatible software/containers
  • Supported by most Linux distributions and managed services

4. Enhanced Networking and ENA

  • Elastic Network Adapter (ENA): up to 100 Gbps, lower latency, lower CPU overhead
  • Elastic Fabric Adapter (EFA): ENA + OS-bypass for HPC/ML (MPI workloads)
  • Required for cluster placement groups to achieve maximum throughput
  • Enable with: aws ec2 modify-instance-attribute --ena-support

5. Storage Options

StorageTypeUse Case
EBS gp3SSD, network-attachedGeneral purpose, boot volumes
EBS io2 Block ExpressSSD, high IOPSDatabases requiring >64K IOPS
EBS st1HDD, throughput-optimizedSequential reads: log processing, data warehouse
EBS sc1HDD, coldInfrequently accessed large data
Instance StoreNVMe, ephemeralTemp data, buffers, caches — lost on stop/terminate
  • EBS Multi-Attach: io1/io2 volumes can attach to multiple instances in same AZ (cluster-aware file systems only)
  • EBS Snapshots: incremental, stored in S3, can copy cross-region for DR

6. Auto Scaling Integration

  • Always deploy across multiple AZs with Auto Scaling
  • Use mixed instances policy for Spot + On-Demand resilience
  • Warm pools: pre-initialized instances reduce scale-out latency
  • Instance refresh: rolling replacement of instances with new launch template
  • Lifecycle hooks: pause instance launch/termination for custom actions (e.g., drain connections, run scripts)

7. Exam Scenarios

Scenario 1: A company runs a tightly coupled HPC workload requiring maximum network throughput between instances. What is the recommended configuration?

Use a Cluster placement group with instances that support EFA (e.g., c5n, p4d). EFA provides OS-bypass networking for MPI workloads. Cluster placement groups place instances on the same rack for lowest latency and highest throughput.

Scenario 2: A company needs 10 critical EC2 instances that must survive any single hardware failure. What placement strategy?

Use a Spread placement group. Each instance is placed on a separate rack with independent power and networking. Maximum fault isolation — a single hardware failure affects at most one instance.

Scenario 3: A company runs batch processing jobs that can be interrupted. They want to minimize cost. What purchasing option?

Use Spot Instances with a Spot Fleet or Auto Scaling mixed instances policy. Configure checkpointing so jobs can resume after interruption. Use multiple instance types and AZs to reduce interruption probability.

Scenario 4: A company has steady-state EC2 usage for 3 years but wants flexibility to change instance types. What purchasing option?

Use Compute Savings Plans. They provide up to 66% discount and apply flexibly across EC2 instance families, regions, and operating systems — more flexible than Standard Reserved Instances.

Scenario 5: A company needs guaranteed EC2 capacity in a specific AZ for a planned event. What is the solution?

Create an On-Demand Capacity Reservation in the target AZ for the required instance type. This reserves capacity without a commitment term. Combine with Reserved Instances or Savings Plans for cost optimization.


8. Exam Tips

  • Cluster PG = performance; Spread PG = availability; Partition PG = distributed systems
  • Spot = cheapest but interruptible; always design for interruption with checkpointing or stateless architecture
  • Savings Plans are more flexible than RIs — prefer Compute Savings Plans for mixed workloads
  • Dedicated Hosts = bring-your-own-license (BYOL) for Windows Server, SQL Server, Oracle
  • Dedicated Instances = hardware isolation but no license benefit
  • EFA is for HPC/MPI — not just enhanced networking
  • Graviton = best price/performance for Linux workloads — recommend it when cost optimization is a requirement
  • Warm pools solve slow scale-out — pre-initialized instances are ready immediately


🎯 Architecture Decision Notes

Designing for Spot interruption

Spot’s discount is only a good deal when the workload tolerates reclamation. Before choosing Spot, verify the workload can do all of these:

  • Checkpoint progress so an interrupted job resumes rather than restarts.
  • Handle the 2-minute warning — drain connections, stop accepting work, persist state.
  • Run across diverse capacity — Spot Fleet or Auto Scaling mixed-instances policies across instance types and AZs, so one reclamation event does not take the whole fleet.
  • Fall back — keep On-Demand capacity (or a second Spot pool) for the portion that must stay available.

For ECS tasks on Spot: watch termination notices, stop new placements on draining instances, let tasks finish or restart elsewhere, and keep enough alternative capacity for service availability. Savings Plans and Reserved Instances are billing commitments for steady usage — they are not a resilience architecture and do not substitute for the design above.

9. Official References

  • EC2 Instance Types
  • EC2 Purchasing Options
  • Placement Groups
  • Spot Instances
  • Savings Plans

      What's in this sap-c02

      • 1. Purchasing Options
        • Reserved Instances vs Savings Plans
        • Spot Instances
      • 2. Placement Groups
      • 3. Instance Types for Specific Workloads
        • Graviton (ARM-based)
      • 4. Enhanced Networking and ENA
      • 5. Storage Options
      • 6. Auto Scaling Integration
      • 7. Exam Scenarios
      • 8. Exam Tips
      • 🎯 Architecture Decision Notes
        • Designing for Spot interruption
      • 9. Official References
      © Album69 2026
      X GitHub LinkedIn YouTube