Exam Prep Flashcards
The 6 Advantages of Cloud Computing
- Trade capital expense for variable expense.
- Benefit from massive economies of scale
- Stop guessing about capacity
- Increase speed and agility
- Stop spending $$ running and maintaining data centers
- Go global in minutes
3 Types of Cloud Computing
- Infrastructure as a service (IaaS)
- Platform as a service (PaaS)
- Software as a service (SaaS)
Infrastructure as a Service (IaaS)
You mange the server, which can be physical or virtual, as well as the operating system. Usually the data center provider will have no access to your server.
Platform as a Service (PaaS)
Someone else manages the underlying hardware and operating systems. You just focus on your applications. Someone else worries about security patches, updates, maintenance, etc.
Software as a Service (SaaS)
All you worry about is the software and how you use it.
Ex) Gmail
3 Types of Cloud Computing DEPLOYMENT
- Public Cloud - AWS, Azure, GCP
- Hyrbid - Mix of public and private
- Private (On Prem) - You manage it in your data center, open stack or VM
Availability Zone
Data Center
Region
Geographical area, 2+ regions per AZ
Edge Location
Endpoint for AWS that cache content
CloudFront, CDN (Content Delivery Network)
Rank:
Availability Zone
Region
Edge
Availability Zone < Region < Edge
How do you chose the right AWS Region?
Data Sovereignty Laws
Latency to End Users
AWS Services
What is S3
Simple Storage Service Provides secure, durable, highly scaleable object storage. Flat files, pictures, video, doc, etc... Object based storage 0 - 5 TB
S3 Namespace
Universal - must be unique globally
What happens on a successful S3 upload
HTTP 200 Code
Consistency for S3
- Read after write for PUTS of new objects
- if write, data is immediately available - Eventual consistency for overwrite of PUTS and DELETES
- Update or delete may get old version
- Takes time to change
S3 Guarantees
Availability 99.9%
Durability 99.999999999% (11 9’s)
Features of S3
- Tiered storage availability
- Lifecycle management
- Versioning
- Encryption
- Security through Access Control Lists and Bucket Policies
S3 Storage Classes
- S3 Standard - Designed to sustain loss of 2 AZ concurrently
- S3 IA - Less frequent but rapid access, lower fee but includes retrieval fee
- S3 One Zone IA - Lower cost
- S3 Intelligent Tiering - Optimize cost by moving data between tiers using ML
- S3 Glacier
- S3 Glacier Deep Archive - Retrieval time of 12+ hours
How are you charged for S3
Storage Requests Storage Management Pricing Data Transfer Transfer Acceleration Cross Region Replication
S3 Transfer Acceleration
Enables fast, easy, and secure transfer of files.
Takes advantage of CloudFront’s globally distributed edge locations. As the data arrives at an edge location, data is routed to S3 over an optimized path.
Key Fundamentals of S3
Key (name of the object)
Value (data - made up of a sequence of bytes)
What is CloudFront?
A content delivery network (CDN) is a system of distributed servers (network) that deliver webpages adn other web content to a user based on the geographic locations of the user, the origin of the webpage, anda content delivery server.
What is EC2?
Amazon Elastic Compute Cloud (EC2) is a virtual server in the cloud.
Reduces the time required to obtain and boot new server instances to minutes, allowing you to quickly scale capacity, both up and down, as your computing requirements change.
EC2 Pricing Model
- On Demand - fixed rate per hour or second
- Reserved - capacity reservation, 1 to 3 year contracts, significant per hour discount
- Spot - bid on price if flexible start and end times
- Dedicated Hosts - physical EC2 servers, use existing server bound license
On Demand pricing is useful for….
- users who want low cost and flexibility of EC2 without any up front payment or long term commitment
- applications with short term, spiky, or unpredictable workloads that cannot be interrupted
- applications being developed or tested in EC2 for the first time
Reserved pricing is useful for….
- applications with steady state or predictable usage
- applications that require reserved capacity
- users able to make up front payments to reduce their total computing cost even further
Reserved Pricing Types
- Standard Reserved Instance - 75% off on demand, the more you pay up front and the longer the contract, the greater the discount
- Convertible Reserved Instance - 54% off on demand
- Scheduled Reserved Instance - available to launch within window reserved
Spot Pricing is useful for….
- applications that have flexible start and end times
- applications that are only feasible as very low compute prices
- users with urgent computing needs for large amounts of additional capacity
Dedicated Host pricing is useful for….
- regulatory requirements that may not support multi-tenant virtualization
- great for licensing which does not support multi-tenancy or cloud deployments
- can be purchased on demand (Hourly)
- can be purchased as a reservation for up to 70% off the on demand price
What is Amazon EBS?
Allows you to create storage volumes and attach them to EC2 instances. Once attached you can create a file system on top of these volumes, run a database, or use them in any other way you would use a block device. EBS volumes are placed in specific AZ where they are automatically replicated to protect you from failure of a single component.
Types of EBS
SSD
a. General Purpose SSD (GP2) - balances price and performance for a wide variety of workloads
b. Provisioned IOPS SSD (IO1) - highest performance SSD volume for mission critical low latency or high throughput workloads
Magnetic
a. Throughput Optimized HDD (ST1) - low cost HDD volume for frequently accessed throughput, intensive workloads
b. Cold HDD (SCI) - Lowest cost HDD volume for less frequently accessed workloads (file servers)
c. Magnetic - previous generations
If the spot instance is terminated by EC2….
….you will not be charged for a partial hour of usage
If you terminate the EC2 spot instance yourself….
….you will be charged for an hour in which the instance ran
Key Features of Amazon RDS
Multi zone AZ for disaster recovery
Read replicas for performance
Amazon’s Non-Relational Database is called….
DynamoDB
OLTP vs OLAP
Online Transaction Processing (OLTP) differs from Online Analytical Processing (OLAP) in terms of the types of queries ran.
OLTP ex) Order #1234
OLAP ex) Net profit for EMEA and Pacific
Amazon’s data warehouse solution is…
Amazon Redshift
What is ElasticCache
Web service that makes it easy to deploy, operate, and scale an in-memory cache in the cloud. The service improves the performance of web applications by allowing you to retrieve information from fast, managed, in-memory caches, instead of relying on slower disk based databases.
ElasticCache supports 2 open sourced in-memory caching engines
- Memcached
2. Redis
Amazon RDS supports what 6 database engines?
- SQL
- MySQL
- PostgreSQL
- Oracle
- Amazon Aurora
- MariaDB
Which AWS Services are global?
- IAM
- Route53
- CloudFront
- SNS
- SES
Some AWS services give global views but are regional. Which are these?
Amazon S3
Which AWS Services can be used on premise?
- Snowball
- Snowball Edge
- Storage Gateway
- CodeDeploy
- Opsworks
- IOT Greengrass