Storage Flashcards
Difference between EBS and EFS and Object storage?
- EBS can be attached to one EC2 instance only.
- EFS can be shared across multiple EC2 instances.
- EBS Mountable, Bootable
- EFS Mountable, not Bootable
- Object storage - collection of objects, not Mountable, not Bootable
What is the consistency of S3 storage?
S3 offers strong consistency for creates and eventual consistency for updates.
Types of EBS storage?
- GP SSD ($) gp2, gp3
- Provisioned IOPS SSD io1/io2
- Throughput optimized HDD ($$) st1,
- Cold HDD ($) sc1
What are the 3 ways of data egress from Glacier?
Expedited (5mins), standard and bulk (upto 12 hrs)
What is the difference between HA and Fault Tolerant in the context of deploying to AZs?
HA just barely meets the SLA. Fault tolerant fully meets the SLAs under failure of an AZ. So 4 servers in 2 AZs is HA but 8 servers in 2 AZs is fault tolerant if a min of 4 servers are required for SLA.
If you take a snapshot every day and it takes you 10 minutes to recover an instance on failure, what can the best backup RTO and RPO be?
RTO of 10 minutes and RPO of 1 day.
Relation between block size and IOPS?
block size x IOPS = throughput
Talk about EBS
- Allocates block storage (Volumes) to instances
- 1 Volume = 1 AZ but HA in that AZ - all data is replicated within a AZ
- Different storage types - Magnetic, SSD etc
- Billed as GB./month
Dominant Performance Attribute of gp2/io1/st1/sc1?
gp2 and io1 - IOPS oriented
st1 and sc1 - throughput oriented
Can HDD storage used as boot volume?
No. Only SSD volumes can be boot volumes.
Why would you choose SSD over HDD?
- SSD is better suited for random IO - databases,
- HDD is better suited for streaming large amounts of data sequentially - log files, big data use cases
What is burst performance?
To understand burst mode, you must be aware that every gp2 volume regardless of size starts with 5.4 million I/O credits at 3000 IOPS. This means that even for very small volumes, you start with a high-performing volume. This is ideal for “bursty” workloads, such as daily reporting and recurring extract, transform, and load (ETL) jobs. It is also good for workloads that don’t require high-sustained IOPS.
How does this work? Well, as stated earlier, the gp2 volumes start with I/O credit that, if fully used, works out to 3000 IOPS for 30 minutes. The burst credit is always being replenished at the rate of 3 IOPS per GiB per second. Consider a daily ETL workload that uses a lot of I/O. For the daily job, gp2 can burst, and during downtime, burst credit can be replenished for the next day’s run. Now let’s consider a workload that never consumes more IOPS than the burst. Such a workload will continue to see very good IOPS as long as credits are replenished faster than they are consumed.
What are EBS Snapshots?
- backups to s3 of an EBS volume
- first backup is full data
- future snaps are incremental
- volume can be restored from a snapshot
What are EBS Snapshots?
- backups to s3 of an EBS volume
- first backup is full data
- future snaps are incremental
- volume can be restored from a snapshot
What is FSR?
Fast Snapshot Restore - to immediately populate a volume from a snapshot, else populating is done lazily upon demand
- up to 50 FSR per region (50 snap-to-AZs)