Compute Services Flashcards
EC2
Elastic Compute Cloud
- allows you to rent and manage virtual servers in the cloud
elastic compute power
can grow and shrink based on the needs put on your application
where do EC2 instances run?
on physical servers in a data center. (they are not serverless)
4 ways to access instances
- AWS Management Console
- SSH (most common)
- EC2 Instance Connect
- AWS Systems Manager
Instance
AWS’ version of a virtual machine
how is computing power billed for EC2?
in compute hours
750 hours per month included on the free tier plan
what are AMIs
Amazon Machine Images for launching your instance
- preconfigured linux, windows or OSX installations which can be installed at the click of a button
EC2 On Demand Pricing
fixed price, billed down to the second
when to use EC2 On Demand Pricing?
- no upfront payment, low cost
- apps with unpredictable workloads that can’t be interrupted
- apps under development
- workloads that won’t run longer than a year
how do you reserve on demand capacity?
on demand capacity reservations
EC2 Spot Instance Pricing
- takes advantage of unused EC2 capacity
- your request is only fulfilled if capacity is available
- 90% cheaper than On-Demand
which EC2 pricing model lets you save 90%
spot instances
when to use EC2 spot instance pricing?
- when you are not concerned about start/stop of your application
- workloads that can be interrupted
- your application is only feasible at very low compute prices
EC2 Reserved Instances (RI)
- requires a 1 or 3 year contract
- can pay up front to get a discount off On-Demand pricing
- save up to 75% off on-demand pricing
- requires a capacity reservation
- provides convertible types at a 54% discount (can change OS, instance family or tenancy model)
EC2 Dedicated Host
- your own dedicated physical server
- bring your own software licenses
- for regulatory or compliance needs
- save up to 70% off on-demand pricing (However, of all the Amazon EC2 options, Dedicated Hosts are the most expensive.)
your instance runs on your dedicated host
EC2 Savings Plans
- 1 or 3 year commitment
- can save up to 72% off on-demand pricing
- does not require a capacity reservation
when to use the EC2 Savings Plan?
- to lower your bill across multiple compute services
- flexibility to change compute services, configurations, or regions
elastic load balancing
distributes incoming application traffic across multiple EC2 instances
what are 4 types of load balancers
- classic
- application
- gateway
- network
EC2 auto scaling
adds or replaces EC2 instances automatically across AZs based on need or changing demands
horizontal scaling
“scaling out”
adding or removing instances based on need
vertical scaling
“scaling up”
adding more CPU or RAM to an instance
AWS Lambda
serverless compute service that lets you run code without managing servers or a coding environment.
functions have a 15 minute time out
benefits of Lambda
- application code (functions) can be authored in many popular programming languages
- scales automatically
- serverless
- lambda can execute code in response to events
- use your favorite IDE
serverless
you don’t have to manage your servers, AWS does it for you behind the scenes
lambda use case examples
- real time file processing
- send email notifications
- back-end business logic
lambda compute time pricing
pay for only the compute time used while your code is actively running
lambda request count pricing
- a request is counted each time it starts execution
- always free - free usage tier includes 1 million requests each month
Fargate
- container management, like Docker
- serverless
- scales automatically
Lightsail
allows you to quickly launch all the resources you need for small projects
easy to use simple screens for people with little cloud experience
- Ex: Wordpress preconfigured apps
what does Lightsail come with?
- virtual machine
- SSD-based storage
- data transfer
- DNS management
- static IP
- low, predictable monthly fee as low as $3.50/mo
Outposts
run cloud services in your internal data center
why use Outposts?
- need your workloads to remain on-prem due to latency or data processing needs
- need a hybrid experience
AWS Batch
- process large workloads in smaller batches
- dynamically provisions the instances it needs based on volume
Which of the EC2 pricing plans is the cheapest
Spot Instances
Which of the EC2 pricing plans is the most expensive?
Dedicated Host