EC2 Flashcards
What does EC2 stand for ?
Elastic Compute Cloud
What kind of as a service is ec2?
IaaS
EC2 conists of what?
- renting virtual machines (ec2)
- storing data on virtual drives (EBS)
- distributing load across machines (ELB)
- scaling services using auto-scaling group (ASG)
Knowing EC2 is fundamental to understand what?
how the Cloud works
what OS are available in ec2?
Linux, Windows, Mac OS
What are the config and sizing options
CPU, RAM, storage space
how is the amount of storage space configured?
Network-Attached (EBS and EFS); hardware (ec2 instance store)
ec2 network card
speed of card; public ip address
firewall roles
security group
Bootstrap script (configure at first launch):
EC2 User Data
what does bootstrapping mean?
launching commands when a machine starts
What is EC2 User Data Script for?
bootstrap our instances
When is the ec2 user data script run and how many times?
script is only run once at the instance first start
EC2 user data is used to automate boot tasks such as:
- Installing updates
- Installing software
- Downloading common files from the internet
- Anything you can think of
The EC2 User Data Script runs with
the root user
what is the naming convention for aws ec2 instance types?
instance class (letter), generation (number), size within the instance class name (example: m5.2xlarge)
what are ec2 instance general purpose type?
Great for a diversity of workloads such as web servers or code repositories
ec2 general purpose type balance between:
- Compute
- Memory
- Networking
ec2 compute optimized type
Great for compute-intensive tasks that require high performance processors: • Batch processing workloads • Media transcoding • High performance web servers • High performance computing (HPC) • Scientific modeling & machine learning • Dedicated gaming servers
EC2 Instance Types – Memory Optimized
Fast performance for workloads that process large data sets in memory
use cases for memory optimized
Use cases:
• High performance, relational/non-relational databases
• Distributed web scale cache stores
• In-memory databases optimized for BI (business intelligence)
• Applications performing real-time processing of big unstructured data
EC2 Instance Types – Storage Optimized
Great for storage-intensive tasks that require high, sequential read and write access to large data sets on local storage
storage optimized use cases
Use cases:
• High frequency online transaction processing (OLTP) systems
• Relational & NoSQL databases
• Cache for in-memory databases (for example, Redis)
• Data warehousing applications
• Distributed file systems
what are the ec2 instance types?
general-purpose, compute-optimized, memory-optimized, storage optimized