AWS Practitioner Notes Flashcards
Describe the basic AWS Infrastructure
AWS is split into Regions (based on geography)
Regions are split into Availability Zones (2-6 per region, average 3)
Availability Zones have multiple Data Centers
In addition there are Edge Locations, Local Zones, and Outposts
What are some factors in choosing a Region
Compliance Requirements
Latency
Available Services
Pricing
Shared Responsibility Matrix - AWS Responsibilities
Security OF the cloud
Hardware
Certain Software (offered as a service)
Certain OS (of serverless services)
Networking/Firewalls of serverless services
Shared Responsibility Matrix - Customer Responsibilities
Security IN the cloud
Customer Data
Platforms, applications, IAM, network/firewall of EC2 instances
OS of EC2 instances
Networking traffic
What is IAM
IAM = Identity and Access Management
Describe IAM Users
An IAM User should be a single physical user
Users can be assigned to groups, but don’t have to be
Describe IAM Groups
An IAM Group is a collection of IAM Users
An IAM User can belong to multiple groups
Describe IAM Policies
An IAM Policy can be assigned to a user or a group
An IAM Policy is used to control access to AWS resources
What is an Inline Policy
A policy that is assigned to a user directly
What is the Least Privilege Principle
Only giving a user the bare minimum access they require
How is an IAM Policy Structured
It has a version number, an ID, and a Statement
A statement consists of an ID, Effect (Allow/Deny), Principal (account/user/role to which the statement applies), Action (list of actions the policy allows/denies), and Resources (list of AWS resources that the policy applies to)
IAM Password Policy
Allows you to define the password requirements for all accounts
What is MFA
Multi-factor Authentication - Using both a password and a security device
Can be physical (key or or keyfob that generates MFA codes)
Can be virtual
Name three ways to access AWS
The AWS Management Console (requires password/MFA)
Command Line Interface (requires access keys)
Software Development Kit - SDK (requires access keys)
What is AWS Cloudshell
It is an alternate way to access AWS - private CLI using the browser - does not require access keys
What are IAM Roles
IAM Roles are a way to assign permissions to AWS services
Name two IAM security tools
IAM Credential Reports (account level)
IAM Access Advisor (user level)
What are some IAM best practices
Don’t use the root account unless you absolutely have to - create accounts with administrative access instead
1 physical user = 1 AWS account
Assign Users to Groups, then assign permissions/policies to those groups
Use a strong password policy
Use/enforce MFA
Use roles when giving permissions to AWS services
What is EC2 stand for
Elastic Cloud Compute
Is EC2 IAAS, PAAS, SAAS?
It is IAAS - Infrastructure As A Service
What can you customize in an EC2 instance
Operating System
Number of Cores
RAM
Storage Space
Network Card
What is EC2 User Data
A Bootstrap Script - runs once when the instance starts
What are the different EC2 types
General Purpose - Good for web servers or code repositories
Compute Optimized - Good for high performance processing
Memory Optimized - Good for processing large data sets in memory
Storage Optimized - Good for high sequential r/w access to local datasets
EC2 naming convention - explain the different parts of: m5.2xlarge
m = instance class
5 = generation
2xlarge = size within the instance class
What is a security group
A set of permissions that allows traffic in or out of an EC2 instance
It only has ALLOW rules
Acts as firewall to an EC2 instance
Regulates access to ports, authorized IP ranges (IPV4 and IPV6)
Can be attached to multiple instances
Instances can have multiple security groups assigned to them
Locked to a Region/VPC combination
Lives outside the EC2 instance - if it blocks something, that something never reaches the instance
Describe Important Ports
21 = FTP
22 = SFTP and secure shell
80 = HTTP
443 = HTTPS
3389 = Remote Desktop Protocol
What is SSH
Secure Shell - used to log into Linux, MAC, and Windows (v10+) servers
What is Putty
Used to log into Windows (any version) servers
Describe the EC2 purchasing option On Demand Instances
Good for short workloads
Pricing - Windows/Linux - Pay per second after the first minute
Pricing - Other - Pay per hour
Highest cost, no upfront payment
Describe the EC2 purchasing option Reserved Instances
Good for long workloads
Can reserve for 1 or 3 years
Save up to 72%
Reserve specific instance attributes
Can pay upfront, partially upfront, no upfront
Describe the EC2 purchasing option Savings Plans
Good for long workloads
Can be for 1 or 3 year commitment
Save up to 72%
Commit to specific usage (ex $10/hour) for 100 hours
Usage beyond that is at on demand prices
Describe the EC2 purchasing option Spot Instances
Good for short workloads that can be interrupted
Up to 90% discount
Can lose instance at any time
Use for workloads resistant to failure
Describe the EC2 purchasing option Dedicated Host
Dedicated host - good for when have compliance requirements
Have all of a physical server reserved just for your use, control instance placement
Payment options are on demand or reserved - is very expensive
Describe the EC2 purchasing option Dedicated Instances
No other customer will share your hardware
Multiple instances from the same account may share the hardware
Describe the EC2 purchasing option Capacity Reservations
Reserve an amount of capacity for a specific AZ for any duration
Always have access to the capacity whenever you need it, no time commitment, no billing discounts, can combine with Regional Reserve instances and Savings Plans, charged On Demand prices whether you run instances or not
What is EBS
Elastic Block Storage - network storage
Can be attached to a single instance
Multiple EBS can be attached to a single instance
Has provisioned capacity - can select size and speed when setting up
Billed for the provisioned capacity
Use limited to an AZ
What is an EBS Snapshot
A backup image of an EBS volume
What is the EBS Snapshot Archive
75% cheaper storage tier
24-72 hours to restore from
What is AMI
Amazon Machine Image
A defined configuration for an EC2 instance
Public AMI - provided by Amazon
Private AMI - make and maintain yourself
AWS Marketplace AMI - purchased off the Marketplace
Define the process for building/using an AMI
Create EC2 instance and configure it
Stop the instance
Create the AMI from the stopped instance
Launch new instances from the AMI
What is an Instance Store
Physical storage attached to an EC2 instance
Data is lost if the EC2 instance is stopped
Backup and replication are customer’s responsibility
What is EFS
Elastic File System - network storage that can be attached to multiple EC2 - can be used across AZ’s
What is EFS Infrequent Access
Storage tier up to 92% cheaper than EFS Standard
Files automatically moved to this tier and back to Standard
What is FSx for Windows
Fully managed file system built on Windows File Server
What is FSx for Lustre
File system for high performance computing
Used for ML, analytics, video processing, and financial modeling
What is ELB
Elastic Load Balancing
Describe the two types of scalability
Vertical Scalability - increase/decrease the size of an instance - scale up/down
Horizontal Scalability - increase/decrease the number of instances - scale out/in
What is High Availability
When you are running in multiple AZ’s or Regions
What is Elasticity
The ability to scale in/out to match demand and optimize costs
What is ASG
Auto-Scaling Groups - a service that adds/removes instances automatically
Replaces unhealthy instances automatically
What are 2 types of Load Balancers
ALB - Application Load Balancers - for HTTP/HTTPS traffic (external)
NLB - Network Load Balancers - for TLS/TCP traffic (internal)
What are 4 types of ASG Dynamic Scaling Strategies
Simple/Step Scaling - based on Cloudwatch alarms targeting capacity usage
Target Tracking Scaling - based on average CPU usage
Scheduled Scaling - based on known usage patterns over a period of time
Predictive Scaling - uses ML based on past traffic patterns
What is S3
Simple Storage Service
Create buckets to store objects/files
Regional Service
S3 Bucket Naming Conventions
Must be UNIQUE across all regions/accounts
No uppercase, no underscores
3-36 characters long
Not an IP
Must start with lowercase letter
Can’t start with “xn-“
Can’t end with “-s3alias”
What are characteristics of S3 objects
Object key = is full path and file name of object
Max size is 5TB, if greater than 5GB must upload in pieces
Metadata - key and value pairs
Can tag objects
What are S3 Bucket Policies
Allows access to objects in a S3 bucket
Object Access Control List - Security Policy that details users that can access the object
Bucket Access Control List - Security Policy that details users that can access the bucket
What is the default Security Bucket Policy
As a default, an S3 bucket denies public access to its objects - overrides other specific policies
What is Static Web Hosting
Where the code for a web site is stored in an S3 bucket
Must have public access turned on
What is S3 Versioning
Where objects in S3 buckets are assigned file keys
Previous versions of objects are retained and can be restored
Deleted objects can be restored
What is S3 Replication
Copying a S3 bucket
CRR - Cross Region Replication - copying to another Region
SRR - Same Region Replication - copying to the same Region
Copying is asynchronously
What are the basic S3 Storage Classes
S3 - Standard - 99.99% Availability
S3 Infrequent Access - 99.9% Availability
S3 Zone Infrequent Access - 99.9% Availability - 1 AZ only
S3 Glacier Instant Retrieval - Millisecond retrieval
S3 Glacier Flexible Retrieval - Expedited 1-5 min, Standard 3-5 hr, Bulk 5-12 hr
S3 Glacier Deep Archive - Standard 12 hour, Bulk 48 hour
What is S3 Intelligent Tiering
Storage method where files are automatically moved from one tier to another
Frequent Access Tier (default)
Infrequent Access Tier - objects not accessed for 30 days
Archive Instant Access Tier - objects not accessed for 90 days
Archive Access Tier (optional) - objects not accessed for 90-700 days
Deep Archive Access Tier (optional) - objects not accessed for 180-700 days
What are the S3 encryption options
None
Server side - is encrypted after server receives file
Client side - file is encrypted before being uploaded
Name the 3 Snow Family Devices
Snowcone
Snowball Edge
Snowmobile
Describe Snowcone
Small box, up to 8 TB storage
Can use up to 15 at a time
Describe Snowball Edge
Large server, comes in 2 flavors
Storage optimized - 80 TB storage
Compute optimized - 43 TB storage, has more compute power
Describe Snowmobile
Semitruck, 100 PB storage
High security, 24/7 video surveillance
Temperature controlled
What is AWS Opshub
Graphical interface that allows you to use Snow family devices
What is Hybrid Cloud Storage
Using on premises and cloud storage at same time
What is AWS Gateway
bridge between on premise storage and AWS S3
Describe RDS
Relational Database Service
Fully Managed Relational Databases
Have to provision the EC2 instances
Postgres, MySQL, MariaDB, Oracle, Microsoft SQL Server, Aurora
Cannot SSH into database
What is Aurora
Proprietary database software
Supports Postgres and MySQL
Cloud optimized - better than RDS but more expensive
What are Read Replicas for RDS
Read only versions of your DBS - can have up to 5
What is Multi-AZ for RDS
Where you backup your DB to a different AZ
If main DB fails, restore from backup
What is Multi-Region for RDS
Where you have Read Only versions of your DB in different Regions
What is Elasticache
In memory database with high performance, low latency
Helps reduce load off actual DB
What is Dynamo DB
A noSQL DB managed by AWS
Is a key-value pair DB
Serverless service
Highly scalable - autoscaling
What is Dynamo DB DAX
In memory cache for Dynamo DB
What are Dynamo DB Global Tables
Tables in multiple Regions
Read/write in any Region
What is Redshift
A Postgres DB that is used for Online Analytical Processing
Has SQL interface
What is EMR
Elastic Map Reduce - creates Hadoop cluster
What is Athena
Serverless query service for objects in S3 buckets
What is Quicksight
Serverless machine learning-powered business intelligence service to create interactive dashboards
What is DocumentDB
Serverless implementation of MongoDB (noSQL)
What is Neptune
Fully managed graph DB
What is QLDB
Quantum Ledger DB
Records financial transactions
Data is immutable once entered
What is Managed Blockchain
Managed service to either join public blockchain networks or create your own blockchain network
What is GLUE
Managed Extract/Transform/Load service
What is DMS
Database Migration Service
Source DB remains available during migration
Can be to/from same type DB or different type DB
What is ECS
Elastic Container Service - Docker containers
Customer must provision/maintain EC2 instances
ECS automatically starts/stops containers
Integrated with ELB
What is EKS
Elastic Kubernetes Service
What is Fargate
Serverless service that launches Docker containers
What is the difference between ECS and Fargate
ECS requires customer to provision/maintain EC2 instances on which to run the containers, Fargate manages that for the client
What is ECR
Elastic Container Registry
Where container images are stored and accessed by ECS and Fargate
What is Lambda
Serverless compute service
Virtual functions
Usually execution triggered by event or scheduled
Cheap but powerful
What is an API Gateway
Serverless middleman between external clients and Lambda functions
What is AWS Batch
Fully managed batch processing service
Can be triggered by event or scheduled
Will dynamically launch EC2 instances
Batch jobs are defined as Docker images and run on ECS
What is the difference between Lambda and Batch
Lambda functions have limited run time and resources and is serverless
Batch has no time limit, can have greater resources, is not serverless but servers are managed by AWS
What is Lightsail
Virtual servers, storage, databases, and networking
Simpler than other AWS services, but is very limited
Good for people with little cloud experience
What is Cloud Formation
A declarative method of outlining your AWS Infrastructure, for any resources
Define the services/infrastructure you want, then Cloud Formation creates them
Infrastructure as Code
Gives ability to create and destroy infrastructure on the fly
Can create templates, get templates from Web
Supports most AWS services
Uses JSON/YAML files