Technology Compute Flashcards

Elastic Compute Cloud
EC2
Allows you to rent and manage virtual servers in the cloud
What are EC2 instances?
The virtual servers running on physical servers
Are instances considered serverless?
NO
EC2 is a foundational service used for managing your _________ _____________
virtual
instances
What are Amazon Machine Image
AMI
A preconfigured template to launch your instance
Can you deploy your applications directly to EC2 instances ?
Yes
EC2
Free Tier plan includes
750 compute hours per month
EC2 in the real world
Mention 2 real world uses
1.-Deploy a Database
(Deploying a database to EC2 gives you full control over the database )
2.- Deploy a Web Application
(Deploy to multiple AZs to make the web application highly available )
Methods to Access an EC2 Instance
1.- AWS Mgmt Console
Config and manage your instances via a web browser
2.- EC2 Instance Connect (EIC)
EIC allow you to use IAM policies to control SSH access to your instances, removing the need to manage SSH keys
3.- Secure Shell (SSH)
SSH allows to establish a secure connection to your instance from your local laptop
4.- AWS Systems Manager
Systems Manager allows you to manage your EC2 instances via web browser or the AWS CLI
Most common vay to connect to Linux EC2 instances
Secure Shell SSH
- Generate a key pair
- -Connect via SSH
What is a key pair
Consists of a private key ( SSH Cliente on laptop )
and
a public key ( EC2 instances )
proves your identity when connecting to an EC2 instance
EC2 Pricing Options
- On-Demand
- Spot
- Reserved Instances
- Dedicated Hosts
- Saving Plans
On Demand
Fix prices, billed down to the second based on instance type. No contract and you pay only for what you use
Fun fact
You can reserve capacity using On Demand Capacity Reservations. EC2 capacity is held whether or not you run the instance
When to use on demand instances
- Care about low cost without any upfront payment or long term commitment
- Your apps have unpredictable workloads that can´t be interrupted
- -Your applications are under development
- Workloads will not run longer than a year
Spot
Let you take advantage of unused EC2 capacity. Your request is fulfilled only if capacity is available
Fun facts
- You can save up to 90% off On Demand prices
- You pay the spot price that´s in effect at the beginning of each hour
CHEAPEST OF OPTION
When to use Spot
- You are not concerned about the start or stop time of your application
- Your workloads can be interrupted
- Your application is only feasible at very low compute prices
Reserved Instances (RIs)
RIs allow you to commit to a specific instance type in a particular Region for 1 or 3 years
Fun facts
- Save up to 75% off On Demand Prices
- Required to sign a contract
- Reserve capacity in an Availability Zone for any duration
- Can pay All Upfront, Partial Upfront, or No Upfront. All Upfront for max term = highest discount
- Provides convertible types at 54% discount
When to use Reserved Instances
- Application has steady state usage, and you can commit to 1 or 3 years
- You can pay money upfront to receive more discount
- You app requieres a capacity reservation
Dedicated Hosts
Allo you to pay for a physical server that is fully dedicated to running your instances
Fun facts
- Save up to 70% off On Demand Prices
- You bring your existing per-socket, per-core, or per-VM SW license
- There is no multi-tenancy, server is not shared with other customers
- Dedicated host is a physical server, whereas a Dedicated Instance runs on the host
When to use Dedicated Host
- You want to bring your own server-bound SW license from vendors like Microsoft or Oracle
- You have regulatory or corporate compliance requierements arond tenancy model
Savings Plan
Allows you to commit to compute usage ( measured per hour ) for 1 or 3 years
Fun facts
- Save up to 72% off On Demand prices
- You are not making a commitment to a dedicated host, just compute usage
- Saving can be shared across various compute services like EC2, Fargate, and Lambda
- Does not provide a capacity reservation
When to use Savings Plans
- Want to lower your bill across multiple compute services
- Want the flexibility to change compute services, instance types, operating systems or Regions
EC2 Features
- Elastic Load Balancing. automatically distributes your incoming application traffic across multiple EC2 instances
- Auto Scaling.- adds or replaces EC2 instances automatically across AZs, based on need and changing demand. Horizontal scaling or scaling out ( reduces the impact of system failures and improves the availability of your applications )
NOTE: Not to confuse Scale out with Scaling up which upgrades an EC2 instance by adding more power (CPU, RAM) to an existing server
Types of load balancers
Classic
Application
Gateway
Network







