Technology Flashcards
(88 cards)
EC2 Pricing Models
On Demand – Typical way, billed by the second of usage
Spot – Take advantage of unused EC2 capacity (Cheapest Option)
Reserved Instances (RI) - Commit to a specific instance type in a specific region for 1 or 3 years
Dedicated Hosts – Pay for a physical server that is fully dedicated to running your instances
Savings Plans – Commit to compute usage for 1 or 3 years, measured by hour
Is EC2 considered serverless?
No, it’s a virtual server running on physical servers
What’s the difference between horizontal and vertical scaling?
Horizontal scaling - Adding or removing servers
Vertical scaling - Increasing technology of existing servers
Elastic load balancing –
automatically distributes traffic across multiple instances
Auto scaling –
Adds or replaces EC2 instances automatically across AZs, based on need and changing demand
EC2 Real world uses:
Deploy a database
Deploy a web app
When to use EC2 On-Demand
You care about low cost without upfront commitment
Apps have unpredictable workloads that can’t be interrupted
Apps are under development
Workloads shorter than a year
When to use EC2 Spot
You are not concerned about start/stop time
Workloads can be interrupted
Your app is only feasible at low prices
Can save up to 90% off On-Demand prices
Pay for the spot price that is in effect at the beginning of each hour
When to use EC2 Reserved Instance (RI)
Your app has a steady state usage for 1 or 3 yr
You can pay money upfront
Your app requires a capacity reservation
Save up to 75% of On Demand prices
Required to sign a contract
Reserve capacity in an availability zone for any duration
You can pay all upfront, partial, or no upfront. All has the biggest discount.
Provides convertible types at 54% discount
When to use EC2 Dedicated Host
You want to bring your own server-bound software licenses
You have regulatory or corporate compliance requirements around tendency model
Save up to 70% off On Demand
Bring existing per-socket, per-core, or per-VM software licenses
No multi-tenancy – meaning the server is not shared with other customers
When to use EC2 Savings Plans
Want lower bill across multiple computing services
Flexibility to change compute services, instance types, OS, or regions
Save up to 72% off On Demand
Not making a commitment to a dedicated host
Savings shared across various compute services, incl. Lambda and Fargate
Does not provide capacity reservation
What do you need to connect to an EC2 instance via SSH?
Keypair
AWS Lambda - Responsibility
You are only responsible for your application code. AWS manages servers, coding environment, and language support.
AWS Fargate
Compute
Serverless compute engine for containers
Lets you manage containers like Docker
Scales automatically
AWS Outposts
Compute
Run cloud services in your datacenter
Supports workloads that need to remain on premises due to latency or data processing needs
Delivers and installs servers in your internal data center
Hybrid experience
Have access to cloud services and APIs to develop apps on-premises
AWS Lightsail
Compute
Great for small projects
Deploy preconfigured apps, like wordpress, with the click of a button
Simple screens for people with no cloud experience
Includes everything you need: SSD-storage, data transfer, DNS management, static IP
Low, predictable monthly fee as low as $3.5/mo
AWS Batch
Compute
Process large workloads in smaller chunks
Run hundreds and thousands of smaller batch processing jobs
Dynamically provision based on volume
Is S3 regional or global?
It’s a regional service, but names must be globally unique
Ways to set security for S3
You can set security at the bucket level or object level using access control lists (ACLs), bucket policies, or access point policies
S3 Standard
General-purpose storage
Stored across multiple AZ
Low latency, high throughput
Durability – 11 9’s
99.99% Availability
Recommended for frequently accessed data
S3 Intelligent Tiering:
Automatically moves data based on access habits
Automatic cost-savings
No retrieval fees
Data stored on multiple AZs
Durability – 11 9’s
99.99% Availability
Recommended for data with unknown or changing access patterns
S3 Standard Infrequent Access (IA)
Accessed less frequently, but requires rapid access
Stored across multiple AZ
Cheaper than S3 standard
Durability – 11 9’s
99.99% Availability
Recommended for
Long-lived data
Infrequently accessed
Millisecond access when needed
S3 One Zone-Infrequent Access:
Similar to S3 Standard IA, but stored in single AZ
Costs 20% less
Data stored in this class can be lost
Durability – 11 9’s
99.95% Availability
Recommended for:
Re-creatable data
Infrequently accessed with millisecond access
Availability and durability not essential
S3 Glacier
Long-term data storage
Retrieval takes longer, 3 options:
1-5 min
3-5 hr
5-12 hr
Data stored across multiple AZs
Durability – 11 9’s
Recommended for:
Long-term backups
Cheap storage option