EC2 Flashcards
EC2
Batch processing media transcoding high performance web servers scientific modeling ML gaming servers. What type of EC2 instance?
Compute Optimized
High performance RDBMS or NonRDMBS, distributed webscale cache stores, In memory DB for BI, real time proecssing of big structured data. What type of EC2 instance?
Memory Optimized
OLTP, RDBMS and NoSQL DB, Cache in memory DB like Redis, DW, distributed file system. What type of EC2 instance?
Storage Optimized
It’s a firewall around EC2
Only ALLOW
Reference by IP or other SGs
Security Groups
Ways to connect to EC2
Using SSH, EC2 instance connect and Putty
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]
On Demand
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]
Reserved (1 or 3 years)
Same as Reserved except you can change instance type, family, region, tenancy or OS Savings Plan (1 or 3 years) -
Convertible Reserved
(like $10/hour) instead of instance type. Can change instance size, OS and Tenancy
Commit to usage
Short workloads and can lose the ec2 instance [For batch jobs, data analysis, image processing, etc]
What type of instance?
Spot
Dedicated entire physical server and unshared. On demand or resereved [For compliance or existing server bound s/w licences]
Dedicated host
Dedicated entire physical server and shared [No control on instance placement. Can move h/w after stop/start]
Dedicated instance
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]
What type of reservation?
Capacity reservations
Network drive you can attach to your EC2 instance
Data remains even EC2 instance is terminated
Mounted on 1 instance at a timeBound to an AZ
Move data from 1 instance to another
EBS(Elastic Block Storage)
Backup of EBS volume at a time
Used to move EBD volume data from one AZ/Region to another
EBS Snapshot
Launch EC2 instances from it
You can add your s/w, configurations, OS, monitoring into it
Build for a specific region
AMI
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 Image Builder
Hard drive attached to EC2 instance
Its gone once EC2 instance is terminated
Faster than EBS
Good for temporary content, cache, scratch data
EC2 Instance Store
Network file system (NFS) attached to EC2
It can be attached to more than 1 EC2 instance unlike EBS
it works only with your Linux EC2 instance
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
EFS(Elastic File System)
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
Amazon FSx
ELB and ASG
ELB and ASG
Running your application in at least two Azs. What is it?
Application can take greater loads either by increasing the size (verticle) or add more instances (horizontal). What is it?
Same as horizontal scalability. What is it?
Availability, Scalability and Elasticity
Spread load across more than 1 instance based on incoming traffic
TYPES
1. (Layer 7)(HTTP/HTTPS, uses DNS or URL)
2.(Layer 4) (TCP/UDP, users Static IP)
- (Layer 3, GENEVA, used for intrusion detection and routes to third party security virtual appliances before sending it to EC2)
1.Application, 2.Network and 3.Gateway load balancers
Scale out (add) and Scale in (remove) the EC2 instance based on loadWe have to set minimum and maximum number of EC2 beforehand.
ASG(Auto Scaling Group)