Skip to main content
  1. 🔰Posts/
  2. 🗂️My Trainings/
  3. AWS Trainings and Certifications/
  4. 🏅AWS Certified Solutions Architect - Associate/

Solutions Architect: EC2

📚 Part 2 of 17: "AWS Solution Architect" series.

·962 words·5 mins

ℹ️ Associate‑level extension of the EC2 section from the AWS Cloud Practitioner series. In this post, I expand on key EC2 concepts and introduce deeper topics relevant to the Associate‑level understanding.

AWS Certification Series »
AWS Cloud PractitionerAWS Solution Architect

Public vs Private vs Elastic IP #

  • Public IP
    • Machine can be identified on the internet
    • Unique across whole web
    • Can be geo-located
  • Private IP
    • Machine can be identified on the Private Network only
    • Unique across the Private Network
    • Connection to the internet via NAT / Internet Gateway (proxy)
  • Elastic IP
    • When machine is stopped and started again, it can change it’s public IP
    • If fixed Public IP is needed, Elastic IP is required
    • Elastic IP is a Public IPv4 IP address owned by you until it’s deleted
    • Can be attached to one instance at a time
    • Only 5 Elastic IP’s per account (soft limit, can be extended with AWS support)

Avoid using Elastic IPs where possible, since they usually indicate weak architecture choices; instead rely on random public IPs with DNS or, place workloads behind a load balancer so no public IP is needed.

By default, your EC2 machine comes with a private IP for the internal AWS Network and a public IP, for the WWW.

If EC2 instance is stopped and then started, the public IP can change.

Placement Groups #

To meet the needs of your workload, you can launch a group of interdependent EC2 instances into a placement group to influence their placement.

© kodekloud.com, KodeKloud: EC2 Placement

Depending on the type of workload, you can create a placement group using one of the following placement strategies:

Cluster #

Packs instances close together inside an Availability Zone. This strategy enables workloads to achieve the low-latency network performance necessary for tightly-coupled node-to-node communication that is typical of high-performance computing (HPC) applications.

Pros- Extremely high network throughput and very low latency between instances (up to 10–100 Gbps with Enhanced Networking)
- Ideal for tightly coupled, high‑performance workloads that need fast node‑to‑node communication
Cons- All instances are in a single AZ, so an AZ outage takes down the entire group
- Capacity can be limited - launches may fail if AWS can’t place all instances close enough together
Use Cases- Big Data or distributed compute jobs that must complete quickly
- HPC workloads, analytics engines, or applications requiring ultra‑low latency and high network bandwidth

Partition #

Spreads your instances across logical partitions such that groups of instances in one partition do not share the underlying hardware with groups of instances in different partitions. This strategy is typically used by large distributed and replicated workloads, such as Hadoop, Cassandra, and Kafka.

Pros- Can span multiple Availability Zones, improving resilience
- Reduces the risk of simultaneous failure across instances
- Instances are isolated on separate racks and physical hardware
Cons- Limited to seven partitions per AZ within a placement group
Use Cases- Applications that need maximum high availability
- Critical workloads where each instance must be isolated from failures in other nodes

Spread #

Strictly places a small group of instances across distinct underlying hardware to reduce correlated failures.

Pros- Highest failure isolation - each instance sits on distinct hardware
- Ideal for small numbers of critical instances needing maximum resilience
Cons- Limited to seven instances per AZ
Use Cases- Critical services where no two instances should fail together
Placement groups are optional. If you don’t launch your instances into a placement group, EC2 tries to place the instances in such a way that all of your instances are spread out across the underlying hardware to minimize correlated failures.

Pricing #

There is no charge for creating a placement group.

📡 Sources:

Elastic Network Interfaces (ENI) #

  • Logical component in a VPC that represents a virtual network card
  • The ENI can have the following attributes:
    • Primary private IPv4, one or more secondary IPv4
    • One Elastic IP (IPv4) per private IPv4
    • One Public IPv4
    • One or more security groups
    • A MAC address
    • You can create ENI independently and attach them on the fly (move them) on EC2 instances for failover
    • Bound to a specific availability zone (AZ)

© kodekloud.com, KodeKloud: Elastic Network Interfaces

ENIs are a more advanced networking feature in AWS, and they take a bit of time and hands‑on practice to fully understand.

They’re powerful once you get comfortable with them, especially for multi‑homed architectures, failover patterns, and security‑focused designs.

For a deeper dive, AWS has a solid introductory post here:

🔥Elastic Network Interfaces in the Virtual Private Cloud

📡 More:

EC2 Hibernate #

  • EC2 Hibernate

    • The in-memory (RAM) state is preserved
    • The instance boot is much faster! (the OS is not stopped / restarted)
    • RAM state is written to a file in the root EBS volume
      • The root EBS volume must be encrypted
  • Use cases

    • Long-running processing
    • Saving the RAM state
    • Services that take time to initialize
  • Instance RAM Size - must be less than 150 GB

  • Instance Size - not supported for bare metal instances

  • AMI - Amazon Linux 2, Linux AMI, Ubuntu, RHEL, CentOS & Windows…

  • Root Volume - must be EBS, encrypted, not instance store

  • Available for On-Demand, Reserved and Spot Instances

‼️An instance can NOT be hibernated more than 60 days.


» Sources « #

Placement Groups:

Elastic Network Interface (ENI):

» References « #

Cloud Practitioner: EC2

» Disclaimer « #

This series draws heavily from Stephane Maarek’s Ultimate AWS Certified Solutions Architect Associate 2026 course on Udemy.

His content was instrumental in helping me pass the certification.

About the instructor
🌐 Website📺 YouTube
💼 LinkedIn𝕏 x.com

ℹ️Shared for educational purposes only, no rights reserved.