EC2 Flashcards
What does EC2 stand for?
Elastic compute Cloud
What is the EC2 User Data Script used for?
To automate boot tasks such as installing updates/software, downloading files etc.
What are the use cases for General Purpose EC2 Instance Types?
Web servers, Code repositories etc.
What are 6 example use cases for Compute Optimized EC2 Instances?
- Batch Processing Workloads
- Media Transcoding
- High Performance Web Servers
- High Performance Computing (HPC)
- Scientific Modeling and Machine Learning
- Dedicated Gaming Servers
What are 4 example use cases for Memory Optimized EC2 Instances?
- High Performance databases
- Distributed web scale cache stores
- In-memory databases optimized for BI
- Apps performing real-time processing of big unstructured data
What are 5 use case examples for Storage Optimized EC2 Instances?
- High frequency online transaction processing systems (OLTP)
- Relational and non relational databases
- Cache for in-memory databases (Redis)
- Data Warehousing applications
- Distributed File System
What is a Security Group?
It is like a Firewall
What 4 things do Security Groups Regulate?
- Access to Ports
- Authorized IP ranges
- Control of inbound network
- Control of outbound network
Can a Security Group be attached to multiple EC2 instances?
Yes, and an instance can have multiple security groups
Are Security Groups Global?
No, they are tied to a specific region/VPC combination.
If my application is showing a timeout when I try to connect, what is the likely cause?
A security group misconfiguration
If my application gives a connection refused error, what is the likely cause?
An app error or app failed to launch. The security group config is fine
What are the default inbound/outbound security group settings?
- Inbound traffic is blocked
- Outbound traffic is authorized
What is the SSH port?
22
What is the FTP pport?
21
What is the SFTP port?
22
What is the HTTP port?
80
What is the HTTPS port?
443
Whats is the RDP port?
3389
What are the 4 EC2 Instance purchasing options?
- On-Demand instances
- Reserved Instances
- Spot Instances
- Dedicated Hosts
What are 4 features of On-Demand Instances?
- Pay for what you use
- Highest cost but no upfront payment
- No long term commitment
- Recommended for short term and un-interrupted workloads
What are the 5 features of Reserved Instances?
- Up to 75% discount compared to on-demand
- Reservation periods of 1 or 3 years
- Pay zero upfront, partial or full
- Reserve a specific instnace type
- Recommended for steady state apps like databases
What are the 2 types of Reserved Instances?
- Convertible
- Scheduled
What are 5 features of Spot Instances?
- Up to 90% discount compared to on-demand
- Can lose instances anytime if your bid price gets lower than the spot price
- Most cost-efficient instances
- Useful for workloads that are resilient to failure
- Not suitable for critical jobs or databases