EC2 Flashcards
1
Q
What are the components of an EC2 archtecture?
A
- Elastic Compute Cloud
- IAAS
- Made up of:
VM (EC2)
Storing Data (EBS)
Distributing load across machines (ELB)
Scaling / auto-scaling (ASG)
2
Q
EC2 Sizing and Configurations
A
- OS / memory / storage / security / setup are all user configured (t2 Micro => m58 xlarge)
3
Q
What is the purpose of EC2 Security Groups ?
A
- Controls how traffic is allowed into and out of EC2 Instance
- Security groups only contain allow rules
- act as firewall regulating access to ports, IP ranges
4
Q
Classic Ports
A
SSH = 22 FTP = 21 SFTP = 22 HTTP = 80 HTTPS = 443 RDP 3389
5
Q
Connecting to EC2 by OS
A
Mac, Linux - SSH
Windows 7/8 - Putty
Windows 10 - SSH, Putty
EC2 Instance connect (web based) works on all for Amazon Linux
6
Q
Common Issues Connecting to EC2
A
- Linux - adding correct permissions to pem file (chmod 400
- Putty - not converting pem file to Putty format .ppk with puttygen
- incorrect username
Amazon Linux : ec2-user@ipaddress
Ubuntu AMI : ubuntu@ipaddress
Debian AMI : admin@ipaddress
Centos AMI: cents@ipaddress - incorrect IP addres (can change with each restart)
- Port 22 on instance not authorized
- CPU usage is too high
7
Q
EC2 Instance Purchase Options
A
- On-demand instance. For short workload. Highest price. Most Flexible
- Reserved (min. 1 year -> 3 yrs) Large discount. 3yr is cheapest
Reserved instance: long workload (like a db)
Convertible Reserved: long workload with flexible instances (Instance type can be changed)
Scheduled Reserve: For certain day/time - Spot Instance: Deepest discount (90%). Short workloads on spot market. Must be able to save state if AWS shuts it down. Batch work resilient to failure
- Dedicated Host: (3 years, more expensive) AWS hardware dedicated to you. Use case is s/w cpu license, other compliance. Have access to h/w info
- Dedicated Instance - runs on hw dedicated to you, but may host other instances from same account. Don’t have access to h/w info
8
Q
What are the EC2 Hardware types?
A
- Different types for different use cases
- naming convention m5.exlarge
- types m: general purpose
- 5 generation
- T & M are general purpose
- C are compute optimized. Gaming, High performance computing
- ## R : for processing large datasets in memory, graphic processing