Technology Flashcards
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
S3 Glacier Deep Archive
Like S3 glacier but longer access times
Retrieval, 2 options:
12 hr
48 hr
Cheapest of all S3 options
Stored across multiple AZs
Durability – 11 9’s
Recommended for:
Long-term data archival accessed once or twice a year
Retaining data for regulatory compliance
S3 Outposts
Object storage on-premises
Single storage class
Stored across multiple devices and servers
Recommended for:
Data that needs to be kept local
Demanding apps performance needs
S3 Real-World Uses:
Static websites combined with CloudFront
Data archive
Analytics Systems with Redshift or Athena
Mobile Apps
When to use Elastic Block Store (EBS)?
Quickly accessible data
Running a database on an instance
Long-term data storage
Elastic Block Store (EBS)
Storage
Think of it like a flash drive that can be attached or remove from your instances
Data persists while instance is not running
Tied to one AZ
Can only be attached to one instance in the same AZ
EC2 Instance Store
Storage
Local storage that is physically attached to the host computer that cannot be removed
Storage is temporary since data loss occurs when EC2 instance is stopped
Faster and higher I/O speeds
Recommended for:
Temp data
Data replicated across multiple instances
Elastic File System (EFS)
Storage
Serverless network file system that allows you to share files
Only supports linux
More expensive than EBS
Accessible across different AZ in the same region
Recommended for:
Main directories for business-critical apps
Lift-and-shift existing enterprise apps
Storage Gateway
Storage
Hybrid storage system
On-premises and cloud data
Recommended for:
Moving backups to the cloud
Reducing costs for hybrid cloud storage
Low latency access to data
CloudFront
Content Delivery Network (CDN)
CDN that provides global distribution with low latency
Can restrict availability based on location
Speeds up delivery of static and dynamic web content
Uses edge locations to cache content
Real-world uses:
S3 static websites deployed globally
Can stop DDoS attacks
Geo-restrictions based on IP
Amazon Global Accelerator
Content Delivery Network (CDN)
Sends users through the AWS global network when accessing your content, speeding up delivery
Improves latency and availability of single-region apps
60% performance boost
Automatically re-routes traffic to healthy available regional endpoints
Amazon S3 Transfer Acceleration
Content Delivery Network (CDN)
Improves uploads and downloads to S3 buckets
Fast transfer of files across long distances
Uses CloudFront’s globally distributed edge locations
Customers around the world can upload to a central bucket