Technology Flashcards
What are the EC2 pricing options? (5)
- On-Demand
- Spot
- Reserved Instances
- Dedicated Hosts
- Savings Plans
EC2 pricing options: On-Demand
You pay by the hour or by the second without pre-paying
EC2 pricing options: - Spot:
spare capacity is available
EC2 Savings Plans commit to compute usage measured
per hour for a 1- or 3-year term
EC2 On-Demand is best used for applications that are (3)
- Under development
- Have Unpredictable workloads that CAN’T be interrupted
- Workloads will not run longer than a year
EC2 Spot is best used for applications that have (3)
- No concern for start or stop time of App
- Workloads that Can be interrupted
- The Cheapest EC2 Option
With EC2 Reserved Instances you pay for
1-3 years upfront to get max discount; however you pay regardless of usage
With EC2 Dedicate Host you bring your own server-bound
software license from vendors like Microsoft or Oracle
An ideal use case of the EC2 Savings Plan would be if you wanted to
lower your bill across multiple compute services
What are the 4 types of load balancers?
- Classic Load Balancers
- Application Load Balancers
- Gateway Load Balancers
- Network Load Balancers
A Network Load Balancer makes routing decisions at the
transport layer (TCP/SSL).
A Gateway Load Balancer operates at the
the network layer of the OSI Model
Real-world usage of EC2 instances would be to deploy a
database or a web application
Horizontal scaling vs. vertical scaling
Horizontal scaling: adds or replaces instances whereas Vertical scaling,
upgrades an existing instance
What are the benefits of Auto Scaling
- Improves the availability of your applications by auto-increasing capacity as needed.
- Not to be confused it with load balancing
What do you need in order to connect to an EC2 instance from your local machine?
A key pair is needed to access an EC2 instance from your local machine.
Lamda is a serverless compute service that falls into the
Function As A Service (FAAS) category.
In Lambda you can author an application code called
functions, using many popular languages like node.js, Java, Go, PowerShell, Python, and Ruby.
How does Lamda manage growth over time?
on-demand cloud computing that auto-scales to meet your requirements
What is the time out period on a single Lambda function?
Lambda functions have a 15-minute timeout.
EC2 biggest advantage would have to be that it can
scale up or down based on activity which saves on the operational cost of having more hardware on hand than required.
While there are similarities between EC2 and Lambda the difference between the two is
Lambda is event-driven and EC2 would be used for a more customized solution that goes beyond a single event.
Lambda you are only charged for the number of requests made and
their duration.
Lambda always free The free usage tier includes
1 million free requests each month.