EC2 Flashcards
What is one of the main limitations of EC2 and its associated EBS volume?
It’s all AZ specific e.g. Network interface or EBS cannot cross/connect AZ’s they are isolated
AMI’s etc covered separately
What is EC2 good for?
- Long-running compute
- Server style apps
- Burst or steady-state load
- Monolithic application stacks
- Migrated app workloads or DR
STRENGTH - blast radius within one AZ
What type of workload would you use general purpose EC2 type for?
Default - Diverse workloads, equal resource ratio
Should use this type as starting point
What type of workload would you use Compute Optimised EC2 type for?
Media processing, HPC, Scientific modelling, gaming, machine learning
Offer high performance CPUs
What type of workload would you use Memory Optimised EC2 type for?
Processing large in -memory datasets, some database workloads
What type of workload would you use Accelerated Computing EC2 type for?
Hardware GPU, Field programmable gate arrays (FPGA’s)
What type of workload would you use Storage Optimised EC2 type for?
Sequential and random IO - scale-out transactional db’s, data warehousing, elasticsearch, analytics worklaods
Large amounts of fast local storage, many io ops per second
How is storage throughput calculated? and how do you maximise
IO (block) Size x IOPS = Throughput
i.e. IO is like size of wheels on the car
E.g. 16k, 64k, 1Mb x 1, 2 seconds = xx MB/S
Maximising either will increase throughput although there are maximums depending on type of storage
Is EBS resilient across multiple AZ’s?
Volume = ONE AZ, but HA/Resilient in that AZ
If entire AZ has issues then could go down
Can be SSD or HDD (varying performance iops)
How is EBS billed?
Billed GB/M ( amount of time volume exists and size) IF you use for half month then less etc.
GB/M fee regardless of instance state
What are the 4 EBS volume types?
- General purpose SSD (gp2)
- Provisioned IOPS SSD (io1)
- Throughput optimised HDD (st1)
- Cold HDD (sc1)
What is the dominant performance attribute of each of the 4 EBS volume types?
- General purpose SSD (gp2) IOPS
- Provisioned IOPS SSD (io1) IOPS
- Throughput optimised HDD (st1) THROUGHPUT MiB/s
- Cold HDD (sc1) THROUGHPUT MiB/s
In what situation would you choose Provisioned IOPs SSD (io1)?
IO1 should be used when:
- High IOPs
- Latency
- Ability to pick performance separate from size
- Small volume sizes with high IO requirements
When can instance store volumes be attached to an EC2 instance?
Only at launch
How long does the data persist for on an instance store volume?
Storage is temporary/ephemeral as a result non-persistent and lost on instance restart, resize or hardware failure
Trade off is that instance store volumes have the highest performance