EC2 Flashcards
EBS: What are the cheapest storage options and what things should you consider? Whats the cheapest SSD option?
> If you need CHEAP, use ST1 or SC1 (HDD based)
If you need throughput - i.e. streaming, use ST1
You CANNOT use HDD-based volumes as boot volumes
If too slow, upgrade to SSD-based GP3 (or legacy GP2)
EBS: Max IOPS of GP3?
16,000 IOPS.
GP2/GP3 is SSD based and is faster than ST1/SC1.
If you need more IOPS, advance to IO1/IO2/IO BlockExpress
EBS: IO-1 / IO-2 max IOPS?
- IO is the Fastest EBS option.
- IO1/IO2 Can deliver between 16,000 and 64,000 IOPS
- IO2 BlockExpress can deliver up to 256,000 IOPS.
- If you don’t need 16,000 IOPS, downgrade to GP3.
- If you need MORE throughput without the persistence & resiliency, use Instance Store volumes.
EBS: Per-Instance Performance Limitations
260,000 IOPS
Note that you’re going to need more than one volume to saturate these per-instance performance levels
EBS: What are Snapshots and what can you do with them?
- You can take a snapshot into s3 and use that snapshot to create a new volume in a different AZ.
- You can also copy a snapshot to a different region and create a volume from the snapshot.
EBS: Resiliency Level?
EBS has resilience within an AZ
EBS: Charges?
Based on per GB per month
Instance Store: Benefits, Details?
- Provides TEMPORARY block-level storage for your EC2 instance.
- Local on EC2 host: disks are physically attached to the host computer
- Fastest storage option AWS can provide
Instance Store: Max Throughput?
> With a D3 instance, you can achieve 4.6 GB/s of throughput.
With an I3 instance, you can achieve 16 GB/s of throughput.
EBS: Details?
- EBS is a Network Attached Storage
- EBS is highly resilient and is separate from the EC2 host
- Volumes have a block number
- Can be encrypted using KMS
EC2: What are the following common instance types?
C, R, I, D, G, P
C: Compute
R: RAM
I: IO
D: Dense Storage
G: GPU
P: Parallel processing
In which situations can you connect network interfaces or EBS storage located in one AZ to an EC2 instance located in a different AZ?
Never. This is impossible since EC2 instances live exclusively within one AZ.
What properties are attached to ENIs?
> Security Groups (these are not attached directly to the EC2 instance)
Mac Address
Primary IPv4 Private IP (from within the subnet)
0 or more secondary private IPs
0 or 1 Public IPv4 address
1 elastic IP per private IPv4 address
0 or more IPv6 addresses
ENIs: How to move software licenses between EC2 instances?
> Attach your licenses to a secondary ENI, since you can later detach and move the secondary ENI to a different instance.
Note that software licenses are typically tied to the MAC address, which comes from the ENI.
ENIs: Do public DNS names get resolved to the public or private IP for an ENI?
Trick question!
Within a VPC, the public DNS name resolves to the private IP.
Outside the VPC, the public DNS name resolves to the public IP.