EC2 Basics Flashcards
Virtualization
The process of running more than one OS on a piece of physical hardware
What is an EC2 Instance ?
virtual machines (os + Resources)
Ec2 Host
where the EC2 instance runs from shared Host or dedicated Hosts
Name at least 3 things EC2 instances are good for ?
traditional os and application compute
long-runing computer
server style applications
either burst or steady-state loads
monolithic applications statcks
migration application or disaster recovery
EC2 Categories and When they would be used?
General Purpose - Default Diverse workloads, equal resource ratio
computer optimized - Media processing, HPC, scientific modeling, gaming, Machine Learning
Memory optimized - Processing Large in-memory datasets, some database workloads
Accelerated Computing - Hardware GPU, field programmable gate array(FPGAs)
storage optimized - sequential and random 10- scale-out transactional databases, data warehousing, Elastic Search, analytics workloads
Direct(Local) attached Storage on EC2 instance
attached storage on EC2 Host
cons if the disk,hardware,dails the storage can be lost if the EC2 instances moves between Host the storage can be lost
pros really fast
Network attached storage
EBS volumes delivered over network
highly resilient and separate from the instance hardware
Ephemeral storage
Temporary storage
Persistent Storage
Permanent storage - lives on past the lifetime of the instance
Block storage Volume
presented to the os as a collection of block no structure provided it can be mounted and os can be booted from it
File storage
presented as a file share has structure mountable but not bootable
Object storage (S3)
collection of objects flat not mountable not bootable
How is storage performance calculated?
IO x IOPS = Throughput
Block Storage
raw disk allocation (volume) can be encrypted using KMS
What does an EC2 instance do with a block storage device
instances see block device and create file systems on the device
What is the resiliency of EBS volumes ?
EBS is provisioned in one AZ and resilient in that AZ
When an EC2 instance is terminated is the EBS volume attached to that instance terminated ?
EBS is not lifecycle linked to one instance it’s persistent
And EC2 instance was terminated with an EBS volume and not you want to replace that instance could the volume be attached to the new instance?
yes EBS volumes can be detached and rethatched to any instance
How is EBS volumes billed ?
billed based on GB-month (and some cases performance)
Names all the EBS Volume Types
EBS - General Purpose SSD GP2
EBS-General Purpose SSD GP3
EBS-Provisioned IOPS SSD (iO1 /2 )
EBS- HDD-based
Instance Store Volumes
temporary block storage device that is physically connected to one EC2 Host instance on that host can access them highest storage performance in AWS included with instance price attached at launch
What would cause loss of Data in an EC2 instance attached to an instance store ?
if an EC2 instance moves between hosts
if the instance is stopped and started , or if instance type is changed, or hardware failure
Types of EC2 instances with instance store ?
D3 - 4.6gb/s throughput
i3 - 16gb/second of sequential throughput
more IOPs and throughput vs EBS
If persistence is a priority what would you choose Instance store vs EBS
EBS
If resilience is a priority what would you choose Instance store vs EBS
EBS
If you want your storage to be isolated from instance lifecycle what would you choose Instance store vs EBS
EBS
If you wanted resilience within application and in-built replication what would you choose Instance store vs EBS
it depends