White Paper Flashcards
Learn aws
What are the 6 advantages of cloud computing
Trade capital expense for variable expenses
Benefit from massive economics of scale
Stop guessing capacity
Increase speed and agility
Stop spending money maintaining data center
Go global in minutes
Types of cloud computing
Saas
End user apps
Entire stack managed for you
PAAS
data
Applications
Iaas O/S Manage middeware Runtime Data Applications
On-premises Network Storage Servers Compute Virtualization o/s Middeware Run intime Data Applications
Deployment Models
Cloud
100% in the cloud
Hybrid
Connect existing resources to cloud based resources
Common to extend existing on premises
And cloud bro grow an organization connect to apis to internal sys
On-premises
Deployment resources on premises with virtualization aka private cloud
Region
Availability zone
R: physical location with availability zones, each region is independent of others
Az: one or more data centers with redundant power, networking, connectivity,
Offer ability to operate production apps, dbs more highly available
Each availability zone is designed to be an independent failure zone. Physically separate
Benefits of aws security
1 keeps data safe
2 meet compliance requirements
3 save money
4 scale quickly
Sdks
Software development kits for your language or platform
Amazon Athena
Serverless Query s3 data with sql
No infrastructure pay as you go
No need for ETL
Out of the box uses aws glue
Don’t have to spin up server
All taken care of
Auto performative
CloudSearch
Manages all server resources need to build and deploy indexes
Search over your data
When search data but don’t want overhead of managing indexes yourself
The Amazon CloudSearch console enables you to easily create, configure, and monitor your search domains, upload documents, and run test searches.
Amazon CloudSearch supports 34 languages and popular search features such as highlighting, autocomplete, and geospatial search.
_ data centers per region
At least 2
Edge locations
Data centers designed to deliver services with the lowest latency possible.
Closer than regions or availability zones
Edge locations are used by: Cloudfront Most used cached content in edgeLocations Route 53 Web application firewall aws shield AWS Global Accelerator
Edge locations only used by Amazon’s managed services
Separation of responsibilities
On-premises:
Manage everything
Network, storage, servers, virtualization, o/s, middeware, runtime, data, applications
IAAS:
O/S, middeware, runtime, data, applications
PAAS:
Applications, data
SAAS:
You don’t manage anything
Wavelength zones
5 g
What does an ec2, rds db, redshift need to exist in?
Vpc
S3 bucket is where?
Outside VPC
Security group vs
Nacl
Security group state full, allow rules , instance level
Nacl stateless, deny rule,subnet level
Servers in private network what do you do
Need NAT gateway
Config main route table
VPC spans how far?
Entire region
Ipsec vpn connection
Vpn tunnel In public internet encrypted
High bandwidth low latency
AWS direct connect
High bandwidth low latency
Needs fiber optic laid down to aws partner
Most expensive
Bypass public internet
AWS vpn cloudHub
If you have multiple site to site connections
Connect multiple sites into VPC
Uses spoke-hub model
Uses virtual private gateway of a single vpc
Site to site vpn needs
Need vpn gateway customer gateway
Need to set up route tables
VPN direct connect
Fiber optic cable connection
Virtual interface
Hybrid cloud solution
Peering
Cheeper to communicate over private VPC vs over public internet
Traffic in aws backbone
Can only connect two VPCs together
Transitive routing isn’t allowed in pure peering
AWS VPC endpoint
2 types
Interface endpoints
For support services like sns, cloudwatch, aws config
Gateway endpoints
For S3 or dynamodb
Fir these services the target is the gateway endpoint
Sending traffic to intent from private subnet target is
Nat gateway
AMI
Amazon machine image:
Info of an instance of a virtual server
That has software config for the type (o/s, server)
What is amazon Athena?
Amazon Athena is an interactive Serverless service used to analyze data directly in amazon Simple storage service (s3)
VPC basic 5
1 VPC spans all Az in region
2 Launch services such as EC2
3 Must specify block of range of IPc4 addresses in classless inter-domain routing
4 Add one or more subnets in each Availability zone in the VPC
5 has internet gateway to access resources inside the VPC from outside
Subnet basics 3
1 Is a range of ip addresses in VPC
2 specify ipv4 classless inter-domain routing that is a subset of the VPC cidr block
3 each subnet is entirely in one availably zone
A db instance in a VPC can be accessed by a different ec2 in a different VPC with?
Peering,
Diff VPCs can communicate if they are in the same network.
Can create VPC peering connection between VPCs, VPCs in another account,or VPCs in a different aws region
3 Db instance classes
Standard m
Memory optimized
Burstable (cheapest)
What subnet group is needed for the db?
Db subnet group with private instances
A database will need security group rules that
Allow traffic on the port (tcp) (fourth layer) of the database engine
DynamoDB overall supports:
Key value and document data structures
How can you speed up DynamoDB?
DynamoDB Accelerator for read performance is a caching fully managed in memory cache
Data replicated in at least 3 Availability zones
DynamoDB streams has added
Data for Functionality to allow ways to trigger events
What is private cloud?
Public cloud?
On premises infrastructure but exposes apis that allow self service that can use the aws inhouse that is not public
Public is allowing apis to anyone.
Local zones && wavelength zones are both
Closer to customers
Single digit latency
*Wavelength for mobile phones, for 5g network
Edge locations allow you to
Host content closer to users in a caching approach.
Data centers that have a lot of storage equipment
Reduces latency
Build a CDN with aws cloudfront service
AWS outposts
Brings aws infrastructure on premise
Hardware Racks and servers
Helps to build hybrid
in house
Many companies are just starting or need
Local service like person Identification
Federated users
Are external to aws account access to internal services in aws account
Iam
Identity and Access Management
Allows access to services and resources
Manage users or groups
Use permissions to Allow or deny
Iams 3 services
Identity
Authentication
Authorization
Iam root can
Create multiple Iam users for the account
Can do all services
Must give permissions (Policies) to other iam users, Groups, and Roles
Can make 5000 iam users
Can make iam accounts for apps called identity accounts to
to use credentials to for example use database and read and write to it
Get Iam access by (2)
Username, password
Access key I’d, secret access keys for cli programmatic access or sdks
IAM groups
Different permissions for the different group via permissions Policies
Not an indentiey so can’t login as group
Group is a best practice
IAM Roles
Iam identity that gives set of permissions for service requests
People, users, applications, or services like ec2 can assume the role
Iam role will have trust policy
When a user uses the role it Will have Security token service give temp credentials to the user allowing the user any permissions in the trust policy
Security Token Service
Is a backend fully managed service
Permission policy vs trust policy
The permissions policy grants the user of the role the needed permissions to carry out the intended tasks on the resource. The trust policy specifies which trusted account members are allowed to assume the role.
Types of managed policies
Managed
Custom managed
Inline policies -> 1 person needs this policy etc
Mfa
2 factor authentication with 2 types + either physical device (phone) or virtual device
token
Token lasts 30 seconds
Way to increase security
Add mfa to root user
In real world add mfa tokens for iam users
Scope of STS
Global but can be restricted for regions
Iam users can change password policy for
All of users and enforce users to have specific rules such as forcing them to change their password after x amount of time
VPC enpoints enable _
Private connection to aws supported services
S3, IAM, and DynamoDB are what
Global services
S3 global however bucket is regional (think china and banning things in s3 bucket)
How to login to AWS console?
Username, password
How to secure root user?
Enable multi factor authentication
Directory Service gives
Managed Active Directory give everything allows microsoft SQL authentication
How to get credentials report?
AWS management console can download credentials report to see a list of users and status of various credentials like password, access keys, and mfa devices
Also from cli and aws sdks
If you’re data access pattern is unknown what tier should you choose?
Intelligent tiering (latency access tiers)
Intelligent access has what lifecycle?
30 date standard
90 days glacier
180 days deep glacier
FSx for windows is
Fully managed file storage built on windows server
Access keys are _ term?
Long
For buckets to be replicated from source to destination what must be enabled?
Versioning
Amazon storage gateway is
Is a hybrid cloud storage service that gives on-premises access to virtually unlimited cloud storage
What is difference between EFS and EBS?
Elastic File system can be accessed by different instances at same time
Elastic block store can only he used by one instance at a time
S3 can store how many objects?
Unlimited
Amazon EMR is for?
Amazon elastic map reduce
Service big data platform to process vast amounts of data
Amazon Kinesis is for
Real timr streaming data to gain insights and react to information
What is amazon SQS?
Decoupled architecture Pull based Message order not guaranteed Don't use is order is mandatory SQS qing system holy holds 14 days
Amazon ebs
Elastic block storage Attached to server, can be detached Ssd volume low latency Hdd high throuput SSD relational db, nosql
With multi-attached up to 16 ec2 instances
The ebs and ec2 must be in the same AZ
AWS trusted advisor
Provides recommendations to follow best practices.
Evaluates your account with checks. Finds ways to optimize infrastructure, improve security, performance, reduce costs, monitor service quotas.
5 checks Cost optimization Performance Security Fault tolerance Service limits
Trusted advisor levels
Basic: free
No tech support
Developer: greater than 29$/mo or 3% of monthly usage
Support over email
Business: general guidance < 24 hrs
System impaired: < 12 hrs
Production system impaired <4 hrs
Production system down <1 hr
Price >100$ mo
Enterprise on-ramp:
> $5500 mo
Enterprise:
$15000 mo
Organizations is for
A collection of accounts that are centrally managed together using consolidated billing,
Organized hierarchically with OUs
AWS cost explorer
Visualize, understand, manage your aws costs
AWS well architected tool in general
Free
Evaluate apps
Gives recommends
IDs high risk issues
AWS kms
Key management service
Create, manage cryptographic keys
And control use in a side range of services
Well architected tool pillars
Operational excellence Security Reliability Performance effeminacy Cost optimization Sustainably (not on test)
S3 uses what type of storage?
Object
S3 standard has durability meaning
Kept in 3 az
S3-ia
Have cheaper storage cost but more expensive retrieval cost
S3 glacier retrieve time
Minutes to hours
Amazon EFS
Simple, serverless, set-and-forget, elastic file system
Can be shared to 1000s of ec2 instances
File storage system
Amazon RDS
Relational database Service
Fully managed database service
Save time,
Amazon aurora
Under amazon RDS engines
3 x faster postgres
5x faster mysql
6 copies under the hood
Can also get replication copies
Scalable
S3 is bad for saving relational data because?
Can’t handle computation of join etc
DynamoDB
Handles up to tillions of requests a day
Consistent performance
Single digit millisecond response time
Amazon DMS
Databases migration service
Can migrate db type x to database y type
Or x to x
A EFS stores data in
Multiple AZ
Shared responsibility model
You take care what goes IN the cloud
Patching ec2 instances is who’s responsible
You
IAM empowers you to
Take care of your responsibilities
Roles _
Allow a user to do tasks based on permissions
SCPs can be applied to
OU
Individual account
AWS artifact
Think Compliance
Allows you to check compliance of the cloud
See compliance reports
Accept agreements
Amazon WAF
Sees up address not permitted will block
Web application firewall
Works with Use for application load balancer
Stops sql injection
AWS WAF is a web application firewall that helps protect your web applications or APIs against common web exploits and bots that may affect availability, compromise security, or consume excessive resources. AWS WAF gives you control over how traffic reaches your applications by enabling you to create security rules that control bot traffic and block common attack patterns, such as SQL injection or cross-site
Amazon Shield
Basic free protection
Paid deeper protection
Dos ddos attacks
Inspector
Automated inspection to make sure
Vulnerability management continually scans aws workloads for vunerabilities
Guard duty
Intelligent threat detection protection of threats
Won’t protect can review
Inspects logs to see if s threat exists
AWS CloudWatch
Metrics in real time
Can config automatic alerts
See if you need to auto scale
Gives Dashboard
AWS CloudTrail
Can backtrack user activities based on api calls
Filter through logs generated
See who stopped what
What did x occur
Why did y change
When did z do that
Trusted advisor
Automatically records information
Then can receive real time guidance for best practices
Makes suggestions
Recommendation in 5 areas
Cost opt. Perform. Securi fault tol. Service limits
Save u $. I in 1 az
Add az
Always free
DynamoDB
Lambda
12 months free overall with limits
S3 standard storage
EC2
Free trial
X time free trial
Ec2 750 free hours