Module 2: Compute in the Cloud Flashcards
Types of EC2 Instances
- General Purpose Instance
- Compute Optimized Instance
What are General Purpose instances used for?
Provide a balance of compute, memory, and networking resources
Use Cases for General Purpose Instances
- Application in which the resource needs for compute, memory, and networking are roughly equivalent.
- Application does not require optimization in any single resource area.
What are Compute Optimized Instances used for?
General purpose instance for high-performance web servers, compute-intensive applications servers, and dedicated gaming servers
Use Cases for Compute Optimized Isntaces
- Web application
- Gaming servers
Types of EC2 Categories
- On-Demand
- Reserved Instances
- EC2 Instance Savings Plans
- Spot Instances
- Dedicated Hosts
On-Demand Pricing is ideal for:
Short-term, irregular workloads that cannot be interrupted
Cost and Term of On-Demand Pricing
No upfront costs or minimum contracts apply
On-Demand Pricing Work Load
The instances run continuously until you stop them, and you pay for only the compute time you use.
On-Demand Pricing Use Case
Developing and testing applications and running applications that have unpredictable usage patterns.
On-Demand Pricing is not recommended for:
Workloads that last a year or longer because these workloads can experience greater cost savings using Reserved Instances.
Purpose of Reserved Instances
Billing discount applied to the use of On-Demand Instances in your account.
Term on Reserved Instances
1 or 3-year term
Requirements of Reserved Instances
- Instance Size/Type
- Operating System
- Tenancy
Types of Reserved Instances
- Standard Reserved
- Convertible Reserved
At the end of a reserved instance
You can continue using the Amazon EC2 instance without interruption. However, you are charged On-Demand rates until you do one of the following:
1. Terminate the instance
2. Purchase a new Reserved Instance that matches the instance attributes
Standard Reserved Instances are ideal if..
You know the EC2 instance type and size you need for your steady-state applications and in which AWS Region you plan to run them
Types of Tenancy for Standard Reserved Instances
- Default
- Dedicated
Convertible Reserved Instances are ideal if..
You need to run your EC2 instances in different Availability Zones or different instance types
Cost trade-off between Standard and Convertible Reserved Instances
You trade in a deeper discount when you require flexibility to run your EC2 instances.
Purpose of EC2 Instance Savings Plan
Reduce your EC2 instance costs when you make an hourly spend commitment to an instance family and Region
EC2 Instance Savings Plan is ideal for..
If you need flexibility in your Amazon EC2 usage over the duration of the commitment term
EC2 Instance Savings Plan Term
1 or 3-year term
EC2 Instance Saving Plan Cost (Savings compared to On-Demand)
- Up to 72% as compared to on-demand
- Usage beyond commitment is charged at on demand rate
Differences Between Reserved Instances and EC2 Instance Savings Plan
- You don’t need to specify up front what EC2 instance type and size and tenancy to get a discount
- You don’t need to commit to a certain number of EC2 instances over a 1-year or 3-year term
- EC2 Instance Savings Plans don’t include an EC2 capacity reservation option.
Purpose of Spot Instances
Use unused Amazon EC2 computing capacity and offer you cost savings for flexible workloads
Spot Instances are ideal for…
Workloads with flexible start and end times, or that can withstand interruptions.
i.e. Background processing job that can stop and start as needed
Spot Instances cost (savings as compared to on-demand)
Up to 90% off of On-Demand prices.
Purpose of Dedicated Hosts
Physical servers with Amazon EC2 instance capacity that is fully dedicated to you
Dedicated Hosts are ideal for..
Use your existing per-socket, per-core, or per-VM software licenses to help maintain license