Section 5/6: EC2 Fundamentals & Solutions Architecture Flashcards
What are the four EC2 pricing models?
1) On demand
2) Reserved
3) Spot
4) Dedicated host
Cheapest EC2 pricing?
Spot instances (up to 90% discount)
EC2 Spot Instance use cases
Stateless workloads resilient to failures like big data / data analysis
What are EC2 Spot Instances?
Bidding on capacity that isn’t being used & can be kicked off if someone bids higher.
Define the max spot price and get the instance when current spot price is below your max spot price.
What are spot instances not good for?
DBs, critical jobs or any persistent workloads
What are the four types of EC2 instances?
1) general purpose
2) Compute optimized
3) Memory Optimized
4) Storage optimized
Why use a General purpose EC2 instance?
- Diversity of workloads (web servers / code repos)
- Balance between compute, memory, networking
Why use a Compute Optimized EC2 instance?
- great for compute intensive tasks
- high performance computing, ML, modeling
Why use a Memory Optimized EC2 instance?
- For storage intensive tasks
- Databases, data warehousing, caching
What are the two types of spot fleet termination requests?
1) One-time request
2) Persistent Request
What is a one-time Spot Fleet termination request?
If current spot price > max price you can choose to stop or terminate instance with a 2 minute grace period
Persistent request
What is a persistent-request Spot Fleet Termination Request?
Terminate instance, but as soon as the spot price goes back below your spot price, the instance is going to get relaunched
Identifying devices using a Public vs Private IP?
Public IPs are used to identify a device outside a network.
Private IPs are used to identify a device within a local network.
IPv4 vs IPv6?
IPv4 is older and running out of addresses. IPv6 is newer and solves problems of IPv4
When you stop and start an EC2, what happens to it’s IP address?
The EC2 instance’s public IP address can change