Compute

Amazon EC2

Elastic Compute Cloud: virtual machines rented on demand (IaaS).

How it works

Amazon Elastic Compute Cloud provides on-demand virtual servers on AWS. You choose the instance type, operating system, storage, and network configuration, and administer the software on the machine. Instances can be launched, stopped, or terminated as needed, and EC2 can be combined with load balancing and Auto Scaling.

When to use it

You need servers whose OS, CPU, RAM, storage and network you control.

Real-world example

A news site runs its application on EC2 behind an Application Load Balancer and configures Auto Scaling. When traffic rises, a scaling policy can add instances; when demand falls, the group can reduce instance count according to its configuration.

Key facts

  • You choose OS, CPU, RAM, storage, network card, firewall rules and User Data.
  • Works with EBS, ELB and Auto Scaling Groups.

Common pitfall

Data on an instance store does not persist through an instance stop or termination. Use durable storage such as EBS or S3 for data that must be retained, and configure appropriate backups.

Often confused with

AWS Lambda, where you do not manage servers at all.

References

Prepared by Cloud Quest. Check current behavior and limits in the AWS documentation:

SAA-C03 study guide and learning resources

Keywords you will see in SAA-C03 questions

  • virtual server
  • instance

Understand it for real with 3D models and simulated labs

Connect the concept to a working architecture.

Start learning