Udemy Lecture 3: EC2 Flashcards
What does EC2 stand?
stands for elastic compute cloud & its a way todo infrastructure as a service on AWS
What are the different things EC2 mainly used for?
- Renting virtual machines (EC2)
-Storing data on virtual drives (EBS)
-Distributing load across machines (ELB)
-Scaling the services using an auto-scaling group (ASG)
What do you have to decide when it comes to EC2?
-Operating systems (OS): Linux, Windows or Mac OS
-How much compute power & cores (CPU)
-How much random- access memory (RAM)
-How much storage space (& do you want it networked attached with EBS & EFS or do you want it hardware with EC2 instance store)
-Network card ( speed of the card, public IP address)
-Firewall rules (what type of security group)
-Bootstrap script (configure at first launch called the EC2 user data)
Its possible to bootstrap our instances using an EC2 user ________
data script
Bootstrapping means what?
launching commands when a machine starts
That scripts is only run once at the instance first start
EC2 user data is used to automate boot tasks such as what?
Installing updates
Installing software
Downloading common files from the internet
Anything you can think of
The EC2 data script runs with the _________
root user
What is AWS naming conventions for EC2 instance?
m5.2xlarge
-m: instance class
-5: generation of the instance (AWS improves them over time, so if its a newer version it will be m6 not m5)
-2xlarge: size within the instance class (the larger the size the larger the memory)
What are general Purpose instances best for?
greate for a diversity of workloads such as web servers or code repositories
Good balance between:
Compute
Memory
Networking
t2.micro (is a general purpose EC2 instance)
What are Compute Optimized instance best for?
great for compute -intensive tasks that require high performance processors like (all the compute instances start with a C)
Can use for :
-Batch processing workloads
-Media transcoding
-High Performance webservers
-High performance computing (HPC)
-Scientific modeling & machine learning
-Dedicated gaming servers
What are Memory optimized EC2 instance best for?
fast performance for workloads that process large data sets in memory like (all the memory instances start with R bc R stands for RAM)
Can use for:
-High performance, relational/non-rational databases
-Distributed web scale cache stores
-In-memory database optimized for BI (business Intelligence)
-Applications performing real-time processing of big unstructured data
What are Storage optimized instances best for?
great for storage -intensive tasks that require high, sequential read & write access to large data sets on local storage (storage instances start with an I OR D)
Can use for:
-High frequency online transaction (OLTP) systems
-Relational & NoSQL databases
-Cache for in-memory databases (ex. redis)
-Data warehousing application
-Distributed file systems
________ are the fundamental of network security in AWS and they control how traffic is allowed into or out of our EC2 instance
Security groups
Security groups only contain _________ rules
allow rules
____________ rules can reference by IP or by other security groups
Security groups