EC2 Flashcards
EC2 Instance Type
Compute Optimized - Batch processing, media transcoding, high performance web servers, scientific modeling, ML, gaming servers
Memory Optimized - High performance RDBMS or NonRDMBS, distributed webscale cache stores, In memory DB for BI, real time proecssing of big structured data
Storage Optimized - OLTP, RDBMS and NoSQL DB, Cache in memory DB like Redis, DW, distributed file system
Security Groups
Firewall around EC2
Only ALLOW
Reference by IP or other SGs
Connecting to EC2
Using SSH, EC2 instance connect and Putty
EC2 Purchase Options
On Demand - Pay by sec after first min (Linux and Windows). For other OS Pay by hour. Stopped instances, however, do not incur charges. [For short term uninterruped workload]
Reserved (1 or 3 years) - Commit to an instance type, Region, Tenancy(host, dedicated, default) and OS. Reserved Instances incur charges for every clock-hour during the selected term, regardless of instance running status [For steady state usage like DB]
Convertible Reserved - Same as Reserved except you can change instance type, family, region, tenancy or OS
Savings Plan (1 or 3 years) - Commit to usage in $ (like $10/hour) instead of instance type. Can change instance size, OS and Tenancy
Spot - Short workloads and can lose the instance [For batch jobs, data analysis, image processing, etc]
Dedicated host - Dedicated entire physical server and unshared. On demand or resereved [For compliance or existing server bound s/w licences]
Dedicated instance - Dedicated entire physical server and shared [No control on instance placement. Can move h/w after stop/start]
Capacity reservations - Reserve capacity in specific AZ for any duration. No time commitment. If you dont run you are still charged. [For short term uninterruped workload in a specific AZ]
Shared Responsibility
Customer responsibility
SG rules
OS patching and update
S/W installed
iAM roles
Data security
EBS
Network drive you can attach to your EC2 instance
Data remains even EC2 instance is terminated
Mounted on 1 instance at a time
Bound to an AZ
Move data from 1 instance to another
EBS Snapshot
Backup of EBS volume at a time
Used to move EBD volume data from one AZ/Region to another
AMI
Amazon Machine Image
Launch EC2 instances from an AMI
You can add your s/w, configurations, OS, monitoring into an AMI
Build for a specific region
AMUI also creates an EC2 instance
EC2 Image Builder
Used to create VMs or container images
Automate the creation, maintain, validate, and test AMIs for EC2 instances
It can run on a schedule
The output is tested AMI which can be distribued to other regions
EC2 Instance Store
Harddrive attached to EC2 instance
Its gone once EC2 instance is terminated
Faster than EBS
Good for temporary content, cache, scratch data
EFS
Network file system (NFS) attached to EC2
It can be attached to more than 1 EC2 instance unlike EBS
EFS works only with your Linux EC2 instances
It works across multiple AZs.
Pay per use and not by capacity
EFS IA = Storage class is going to be cost-optimized for files that you don’t access very often
Shared Responsibiliy for EC2 Storage
Client responsibility
1. Data backup/restore
2. Data encryption
Amazon FSx
Third party high performance (HPC) file system on AWS
Fully managed service
Build on windows file server
Supports SMB and windows NTFS
Integrated with windows active directory
Accessed from AWS or on Premise