0
0
AWScloud~10 mins

Why EC2 matters for compute in AWS - Visual Breakdown

Choose your learning style9 modes available
Process Flow - Why EC2 matters for compute
User needs computing power
Choose EC2 service
Select instance type (CPU, RAM)
Launch virtual server
Run applications on EC2
Scale up/down as needed
Pay only for used compute
This flow shows how a user picks EC2 to get computing power, launches a virtual server, runs apps, and scales while paying only for what they use.
Execution Sample
AWS
Launch EC2 instance with t3.micro
Run web server on EC2
Scale instance count
Stop instance when done
This example shows starting a small EC2 server, running a web app, adjusting capacity, and stopping to save cost.
Process Table
StepActionEC2 StateCompute AvailableCost Impact
1User requests EC2 instanceNo instances running0 vCPUs, 0 RAM$0
2EC2 launches t3.micro instance1 instance running2 vCPUs, 1 GiB RAMSmall hourly cost
3User deploys web serverInstance running2 vCPUs, 1 GiB RAMCost continues
4User scales to 3 instances3 instances running6 vCPUs, 3 GiB RAMCost triples
5User stops all instancesNo instances running0 vCPUs, 0 RAMCost returns to $0
💡 User stops instances, so no compute is running and no cost is incurred.
Status Tracker
VariableStartAfter Step 2After Step 4After Step 5
Instances Running0130
Total vCPUs0260
Total RAM (GiB)0130
Hourly Cost$0SmallTriple Small$0
Key Moments - 3 Insights
Why does cost increase when scaling instances?
Because each EC2 instance uses compute resources billed hourly, so more instances mean more cost as shown in execution_table step 4.
Does EC2 keep charging when instances are stopped?
No, as shown in execution_table step 5, stopping instances releases compute and stops billing.
Why choose EC2 instead of a physical server?
EC2 lets you quickly get compute power without buying hardware, and you pay only for what you use, shown by the flow from step 1 to 5.
Visual Quiz - 3 Questions
Test your understanding
Look at the execution_table, how many vCPUs are available after step 4?
A2 vCPUs
B3 vCPUs
C6 vCPUs
D0 vCPUs
💡 Hint
Check the 'Compute Available' column at step 4 in execution_table.
At which step does the cost return to zero?
AStep 2
BStep 5
CStep 3
DStep 4
💡 Hint
Look at the 'Cost Impact' column in execution_table for when cost is $0.
If the user launches 5 instances instead of 3 at step 4, what happens to the total RAM?
A5 GiB RAM
B3 GiB RAM
C1 GiB RAM
D0 GiB RAM
💡 Hint
Each instance has 1 GiB RAM; multiply by number of instances in variable_tracker.
Concept Snapshot
EC2 provides virtual servers (instances) for compute.
Choose instance type based on CPU and RAM needs.
Launch instances to run apps and scale as needed.
Pay only for running instances by the hour.
Stop instances to save cost when not in use.
Full Transcript
EC2 matters for compute because it lets users quickly get virtual servers with chosen CPU and RAM. Users launch instances to run applications and can scale the number of instances up or down. They pay hourly only for the compute they use. When instances are stopped, billing stops. This flexibility and pay-as-you-go model make EC2 a key service for cloud computing.