EC2 Flashcards
What can be configured on an EC2 instance?
(what are the configuration options)
- OS
- CPU
- Memory
- Firewall Rules (security group)
- ELB (load balancing
- Storage
- Network attached (EBS/EFS)
- EC2 Instance Store
- Bootstrap Script
What are the different EC2 Instance Types
(Use Cases)
- General Purpose
- Memory Optimized
- Compute Optimized
- Accelerated Computing
- Storage Optimized
What are the main characteristics of
GENERAL PURPOSE
Instance Types?
- great for wide range of workloads
- Balance between CPU/Memory/Networking
What are some examples of General Purpose use cases?
- web servers
- code repositories
- diverse workloads that use cpu/mem/networking proportionally
What are the main characteristics of
MEMORY OPTIMIZED
use cases?
- Fast performance for workloads processing large data sets in memory
What are some examples of
MEMORY OPTIMIZED
use cases?
- High performance databases
- Distributed web scale cache stores
- In-memory databases optimized for BI
- Apps performing real-time processing of big, unstructured data
What are the main characteristics of Compute Optimized instance types?
- Compute-intensive tasks requiring high performance processors
What are some examples of
COMPUTE-OPTIMIZED
use cases?
- Batch processing workloads
- Media transcoding
- High performance web servers
- HPC
- Scientific modeling/Machine learning
- Dedicated gaming servers
What are the main characteristics of Storage Optimized instance types?
- great for storage-intensive tasks that require high, sequential read/write access to large data sets on LOCAL storage
What are some examples of
STORAGE OPTIMIZED
use cases?
- high frequency OLTP
- Databases
- Cache for in-memory dbs (redis)
- Data warehousing
- distributed file systems
What are the characteristics of Accelerated Computing instance types?
- Accelerated computing instances use hardware accelerators, or co-processors, to perform functions, such as floating point number calculations, graphics processing, or data pattern matching, more efficiently than is possible in software running on CPUs.
What are some examples of
ACCELERATED COMPUTING
use cases?
- autonomous cars
- Machine learning
- high performance computing
- computational fluid dynamics
- computational finance
- seismic analysis
- speech recognition
- autonomous vehicles
- drug discovery
What are the EC2 Instances Purchasing Options?
- On-Demand Instances
- Reserved (1/3 years)
- Convertible Reserved
- Savings Plans (1/3 years)
- Spot Instances
- Dedicated Hosts
- Dedicated Instances
- Capacity Reservations
What is EC2 On Demand Pricing Model?
- Pay for what you use
- Windows/linux: per second
- everything else: per hour
- Highest Cost
- No long term commitment
What is the appropriate use case for
EC2 On Demand Pricing?
- Short term
- uninterrupted workloads
- unpredictable application behavior
What are
EC2 Reserved Instances?
- Reserve specific instance attributes
- Instance type, Region, Tenancy, OS)
- Reservation period
- 1 or 3 years
- Payment Options
- No upfront
- Partial upfront
- All upfront
- RI’s scope - regional or zonal
- Convertible Reserved Instance
- Can change EC2 instance type, family, OS, scope, tenancy
What is the most appropriate use case for
EC2 Reserved Instances?
- Steady state usage applications, like database
What are EC2 Savings Plans?
- Discount based on long term usage (same as RIs)
- Commit to certain level of usage (ie: $10/hr for 1 or 3 years)
- Usage beyond that level is billed at On Demand price
- Locked to specific instance family and region
- Flexible across
- Instance size
- OS
- Tenancy (host/dedicated/default)
Wat are EC2 Spot Instances
- Discount of up to 90% off On Demand
- most cost efficient option
- you can lose the instances at any time if max price < spot price
What are the most appropriate use cases for
EC2 Spot Instances?
- Workloads that are resilient to failure
- Batch jobs
- Data analysis
- Image processing
- Distributed workloads
- Workloads with flexible start/end times
- NOT suitable for databases or critical jobs
What are EC2 Dedicated Hosts
- actual physical server with EC2 instance capacity fully dedicated to your use
- Purchasing options
- on demand - pay per second
- reserved - 1 or 3 years
- Most expensive options
What are the use cases for
EC2 Dedicated Hosts?
- appropriate for enterprises with compliance and/or regulatory needs
- useful for enterprises with software that have complicated licensing models
- BYOL
- can utilize server bound licensing (per socket, per core, per VM etc)
What are
EC2 Dedicated Instances
- Instances run on hardware dedicated to you
- May share hardware with instances on same account
- No control over instance placement
- No visibility of sockets/cores/host ID
- no affinity between host and instance
- limited BYOL support
What are
EC2 Capacity Reservations?
- Reserve On Demand instance capacity in specific AZ for any amount of time
- No time commitment
- No billing discounts
- Charged On Demand rate whether you actually run instances or not
* Suitable for short-term, uninterrupted workloads that need to be in a specific AZ