Elastic Cloud Compute (EC2) Flashcards
List the 4 Pricing Options for EC2 Instances Most expensive to Least expensive
(1) Dedicated Host
(2) On-Demand
(3) Reserved
(4) Spot
What is the use case for On Demand EC2 Instances
- General production workloads
- Pay as you go
- Pay only for what you use.
What is the use case for Reserved EC2 Instances
A variation on on-demand where you sign a contract for 1-3 years to get big discounts
You pay less the more you pay upfront, and the longer the term
What is the use case for Spot EC2 Instances? How does it work?
- How it works
- Analogous to eBay. you “bid” on unused compute capacity, getting up to a 90% discount. The prices fluctuate with supply and demand.
- Typical Use Cases
- Fault-tolerant apps with flexible use patterns
- Spikey workloads
- Stateless applications
What is the use case for Dedicated Host EC2 Instances
Physical EC2 Instance for your own use. Typically used for hardware bound licenses.
What is different about a convertible reserved instance?
Cheaper than on demand, more expensive than reserved instances. Allows you to change the class of the EC2 instance.
What is the preferred method for granting access to AWS resources to your EC2 Instance
- Assign policies to roles .. then
- Assign those roles to resources
What is a bootstrap script used for?
Runs with root access, runs commands in your EC2 instance when starting.
Are security groups open or closed by default?
- Default security groups are CLOSED (inbound) by default.
- You must add access to the ports you want access to the EC2 instance. Outbound traffic is allowed.
- Up to 5 security groups may be associated with an EC2 instance
What is user data vs metadata?
User data is the startup script. Metadata is the data about the server. Both can be accessed with a specific URL to the EC2 instance.
http://169.254.169.254/latest/meta-data
What are the networking options with EC2 ordered from least to most performant?
(1) ENI - elastic Network Interface
(2) EN = Enhanced Network
(3) EFA - Elastic Fabric Adapter
What is the use case for ENI (Elastic Network Interface)
- Basic networking
- Low budget, high availability
- < 10gbps network speed
- Allows you to set up separate networks (Example: Production vs QA)
What is the use case for EN (Enhanced Networking)? What are the two types of EN?
- Higher Performance
- Lower Latency
- Network speeds from 10-100Gbps
- Variants include
- ENA (better choice)
- VF
What is the use case for EFA and what does it stand for?
- Very high performance
- Used for HPC and Machine learning
- OS-bypass for Linux only
What are the types of EC2 Placement Groups
- Cluster
- Partition
- Spread