ladderlore
  • Type a service name, like S3 or IAM.

Service · Compute · Builds on CLF-C02

Amazon Elastic Compute Cloud (Amazon EC2)

Placement groups, network adapters, burstable credits, hibernation and tenancy: EC2 choices that change performance.

You know from Cloud Practitioner

  • An instance starts from an AMI. The type sets CPU and memory.
  • Disks are EBS volumes. Security groups act as a firewall.
  • You manage the guest operating system.
Read the Cloud Practitioner lesson
  • Cluster

    Layout
    Close together in one AZ
    Use
    Lowest latency, HPC
  • Spread

    Layout
    Own hardware each, 7 per AZ
    Use
    A few critical instances
  • Partition

    Layout
    Separate racks per partition
    Use
    Hadoop, Cassandra, Kafka
The three placement groups.
  • Fast, low-latency network

    ENA
  • HPC with OS-bypass

    EFA
  • Keep an IP on failover

    Move a secondary ENI
  • Per-socket licence

    Dedicated Host
  • Resume with memory state

    Hibernation
  • Low average CPU, short spikes

    T instance credits
A need and the EC2 feature that answers it.

1 / 2

  • Fast, low-latency network

    ENA
  • HPC with OS-bypass

    EFA
  • Keep an IP on failover

    Move a secondary ENI
  • Per-socket licence

    Dedicated Host

2 / 2

  • Resume with memory state

    Hibernation
  • Low average CPU, short spikes

    T instance credits
A need and the EC2 feature that answers it.

What it is

Placement groups decide where instances sit on hardware. A cluster group packs instances close together in one AZ for the lowest latency and highest network speed between nodes: HPC and tightly coupled work. A spread group puts each instance on separate hardware, with at most 7 running instances per AZ. A partition group splits instances into partitions on separate racks, for large distributed systems such as Hadoop, Cassandra and Kafka.

What it is

The Elastic Network Adapter (ENA) provides enhanced networking: higher bandwidth, more packets per second and lower latency, up to 100 Gbps. The Elastic Fabric Adapter (EFA) adds OS-bypass for HPC and ML jobs that talk between nodes. An elastic network interface (ENI) is a virtual network card. Move a secondary ENI to a standby instance to keep its IP address on failover.

What it is

T instances earn CPU credits below their baseline and spend them above it. Hibernation saves memory to an encrypted EBS root volume, so a slow-starting app resumes fast. Tenancy is shared by default. A Dedicated Host is a whole server for you, which suits per-socket or per-core licences. The Nitro system gives near bare-metal speed. User data runs at first boot.

Remember

  • Cluster: lowest latency, one AZ. Spread: separate hardware, 7 per AZ. Partition: separate racks.
  • ENA (enhanced networking): fast networking. EFA: HPC and ML with OS-bypass.
  • T instances run on CPU credits. Steady high CPU belongs on M or C.
  • Hibernation keeps memory on an encrypted EBS root volume.

Remember

  • Dedicated Host: a whole server, for per-socket or per-core licences.
  • User data runs once at first boot. Put slow setup in the AMI.

On the exam

  • “Tightly coupled HPC nodes, lowest network latency” points to a cluster placement group with EFA.
  • “A few critical instances, each on different hardware” points to a spread placement group.
  • “Hadoop or Kafka nodes must not share racks” points to a partition placement group.
  • “Existing per-socket software licences” points to Dedicated Hosts.
  • “Resume a slow-starting app with its memory state” points to hibernation.