EC2 Flashcards
Main features of Amazon EC2
Use secure, sizable compute capacity
Boot server instances in minutes
Only pay for what you use
General purpose instance type
Balances compute, memory, and networking resources
4 cpu, 1 ram
Diverse workloads
Web servers
Code repositories
Small and medium databases
Compute Optimized instance type
High performance processors
8 cpu, 1 ram
Compute intensive tasks
Gaming servers
High performance computing (HPC)
Scientific modeling
Batch processing workloads
Memory Optimized instance type
Memory intensive tasks
High-performance databases or real-time processing of large amounts of unstructured data
Accelerated computing instance type
Uses hardware accelerators to expedite data processing
Floating point number calculations
Graphics processing
Data pattern matching
Utilize hardware accelerators
Graphics applications
Game streaming
Application streaming
Storage optimized instance type
Low latency, high IOPS (high input output operations per second)
High performance for locally stored data
Distributed file systems
Data warehousing applications
OLTP systems
EC2 On-demand pricing
Only pay for duration that instance runs for. Per hr/per second
For testing workloads
Get a baseline for average usage
Short-term, irregular workloads that can’t be interrupted
EC2 Savings Plans pricing
Commitment to a consistent amount of usage for 1 or 3 years
Allows you to save up to 72% on your usage amount
EC2 Reserved Instances pricing
Steady state workloads or predictable usage
75% discount for 1 or 3 years
Pay all up front, partial up front, or no up front
Standard or Convertible reserved, or scheduled reserved
EC2 Spot Instances pricing
Request spare EC2 computing capacity for up to 90% off
AWS can reclaim this instance at any moment
Make sure workloads can tolerate being interrupted - such as batch work
Do not require contracts or a commitment
EC2 Dedicated Hosts pricing
For meeting compliance reqs, nobody will share tenancy with host
Most expensive
EC2 Auto Scaling
enables you to automatically add or remove instances in response to changing application demand
Dynamic scaling responds to changing demand
Predictive scaling automatically schedules the right number of instances based on
predicted demand
Create an Auto scaling group: set your minimum number of instances, desired capacity, and optionally your maximum instances
EC2 Elastic Load Balancing
Add a host to distribute incoming application traffic across multiple resources
A load balancer acts as a single point of contact for all incoming web traffic to your auto scaling group
As you add or remove instances in response to incoming traffic, the requests route to the load balancer first
Then they are spread across multiple resources that will handle them
EC2 Messaging and Queuing
In case one application is not available to take request from another application, we introduce a buffer, known as a message queue, to hold onto those requests until the application is ready to handle them. That way, the two applications are loosely coupled, meaning that if one fails, the other one can keep sending requests that will get routed to the queue
Amazon Simple Queue Service (SQS)
Send, store and receive messages between software components at any volume
Payload is the data that is stored within the message
SQS queues - where messages are placed until they are processed