Storage Flashcards
1
Q
EBS
A
- Network drive you attach to ONE instance only.
- Linked to specific AZ, the only way to move is do snapshot and restore
- Volumes can be resized
- Best performance when EBS and instance type are well matched
2
Q
EBS Volume Types
A
- gp2: General (cheap)
- 3 IOPS/GB, min 100 IOPS, burst to 3000 IOPS, max 16000 IOPS
- 1GB - 16TB. +1 TB = + 3000 IOPS
- IO1. Provision IOPS (expensive)
– Min 100 IOPS, Max 64000 IOPS (Nitro) or 32000 (Other)
– 4GB - 16TB, Size of volume and IOPS are independent
For databases - ST1. Throughput optimized HDD
– 500GB - 16TB, 500 MB/s throughput
For data analtics - SC1 Cold HDD
- 250GB - 16TB, 250MB/s throughput
3
Q
EBS RAID COnfigurations
A
- RAID 0, distributed - faster but in case of failure half is lost
- RAID 1, replicated - same speed, in case of failure no data loss
4
Q
EBS Snapshots
A
- Incremental
- Use IO so don’t run while application is using a lot of traffic
- Stored in S2 (Not visible)
- Not necessary to detach volume to snapshot, but recommended
- Can copy across region for DR
- Can create AMI from snapshot
- EBS volumes restored by snapshots need to be pre- warmed (fio or dd command to read entire volume)
- Can be automated using Amazon Data Lifecycle Manager
5
Q
Local EC2 Instance Store
A
- Physical Disk, very high IOPS up to 7.5TB, stripped can reach 30TB - Block storage - Cannot be increased in size - Risk of data loss of hw fails - Ephemeral, lose, stop or terminate EC2, instance lose storage - Survives reboots - Good for buffer, cache, scratch data - Manual backups
6
Q
EFS
A
- Linux based only, POSIX, NSF4
- Good for data sharing, cms
- Control access using SGs
- Encryption at rest with KMS
- Only one VPC, but can create one mount target per AZ for redundancy
7
Q
EFS Scale
A
- 1000s concurrent NFS client, 10GB+/s throughput
- Grow to petabyte scale
8
Q
EFS Performance
A
- General
- Max IO
Set at EFS creation time
9
Q
EFS Throughput
A
Bursting, linked to FS size
Provisioned IO, expensive high throughput to size ratio
10
Q
EFS VPC peering
A
EC2 can be in another VPC and connected using VPC peering
11
Q
EFS on-prem
A
- Can be connected using Direct Connect and/or VPN
- Can be accessed using Mount Target IPv4, hostname not supported
12
Q
S3 vs DynamoDB
A
No indexing facility on S3
- Use S3 event to notify lambda
- Lambda reads from S3 using by fetch and inserts metadata and indexed data into DynamoDB
13
Q
S3 vs EFS
A
S3 is not good for POSIX or file locking use EFS instead
14
Q
S3 Replication
A
- For latency, for DR, for security
- Cross Region
- Same Region
- Can combine with lifecycle policies
- Must enable S3 bucket versioning
15
Q
S3 Event Notifications
A
- Delivery in seconds, but can take up to minutes
- If two events same time non versioned object, possible only one event will be fired
- To ensure event for every successful write enable versioning