AWS Builder Center

Key Takeaways from the Compute in the Cloud module

A comprehensive look at Amazon EC2, instance families, flexible pricing options, auto scaling, and traffic routing essentials from the Compute in the Cloud module of the AWS Cloud Practitioner Essentials course.

Hi I'm Ko Sand, a software engineer and game developer
Whether you're running a simple web server or building a multi-tier application, you need to understand how virtual servers work in the cloud. Here is a breakdown of what this module covers and the key takeaways:

Introduction to Amazon EC2

At the core of AWS compute is Amazon Elastic Compute Cloud (Amazon EC2). Instead of buying physical hardware, EC2 lets you provision virtual machines (VMs) on demand.
  • Multi-Tenancy & Hypervisor: Multiple virtual servers share the same physical hardware, and a hypervisor securely manages them, ensuring complete isolation between instances.
  • Vertical Scaling: If your application needs more juice, you can easily resize your instance by shifting to a larger hardware configuration.

Navigating EC2 Instance Types

Not all workloads are created equal. AWS categorises EC2 instances into specialised families optimised for different performance needs:
  • General Purpose: Balanced CPU, memory, and networking (ideal for web servers and dev environments).
  • Compute Optimized: High-performance processors for batch processing, analytics, and gaming servers.
  • Memory Optimized: High RAM capabilities designed for in-memory databases and large datasets.
  • Storage Optimized: Fast, low-latency local storage for data warehousing and I/O-intensive tasks.
  • Accelerated Computing: Hardware accelerators like GPUs for machine learning and intense graphics processing.

Provisioning and Launching Resources

The module walks through how instances are launched using an Amazon Machine Image (AMI), which acts as the software template containing the operating system and configuration. Once launched, you can securely connect to your instances via SSH (for Linux), RDP (for Windows), or AWS Systems Manager. Beyond the AWS Management Console, production environments typically leverage the AWS CLI and Software Development Kits (SDKs) for automated, repeatable deployments.

Smart Cost Management with EC2 Pricing

Cloud flexibility extends directly to your wallet. The module introduces the core EC2 pricing models:
  • On-Demand: Pay-as-you-go with no upfront commitment; ideal for short-term or unpredictable workloads.
  • Savings Plans & Reserved Instances: Commit to a consistent usage amount over a 1- or 3-year term for significant discounts.
  • Spot Instances: Leverage unused AWS compute capacity at up to a 90% discount, perfect for fault-tolerant batch jobs.
  • Dedicated Hosts: Physical servers dedicated entirely to your use for compliance or licensing needs.

High Availability: Auto Scaling, Load Balancing, and Messaging

To ensure applications stay resilient under pressure, the module explores three critical scalability pillars:
  • EC2 Auto Scaling: Automatically adds or removes instances based on live traffic metrics monitored by Amazon CloudWatch.
  • Elastic Load Balancing (ELB): Distributes incoming application traffic across multiple targets and instances to prevent overload and single points of failure.
  • Messaging & Queuing: Connects distributed decoupled applications using services like Amazon SQS (message queuing) and Amazon SNS (pub/sub notifications).

Final Thoughts

The Compute in the Cloud module helped move away from physical server constraints into dynamic, elastic compute resources that open up entirely new ways to design resilient applications. Take your time experimenting with these core concepts, and they form the bedrock for everything else you will build on AWS!
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article