RandomNuggets Flashcards
SQL
Too many connections error
ERROR 1040
Scale UP
Increase instance size
Scale UP
Increase max instances up to Max # of open shards
Scale Up
Increase # shards
S3
Encrypt all objects uploaded by their app to S3 with
SSE-S3
S3
Header used by SSE-S3
x-amz-server-side-encryption
Encryption
Encrypt plaintext data with a data key
then
encrypt the data key with a top-level plaintext master key.
Envelope Encryption
Requests
2 eventually consistent read requests are equal to
One STRONG read request
Deployments
Deploy new version to all EXISTING only
No new EC2
All at once
Deployments
New version in batches to Existing - no new resources
Rolling
CloudWatch
Collects system metrics and log files from EC2 and on premises servers
CloudWatch Agent
X-Ray
Trace and analyze user requests as they travel through API-Gateway to underlying services.
X-Ray
DynamoDB streams
Life expectancy is like a fly’s
24 hours
Dev Tools
CodeCommit is like
Git
Dev Tools
Code Build is like
Jenkins
Dev Tools
Automates code deployment to instances - EC2
Code Deploy
Authentication
A directory in Amazon Cognito
User pool
Shards
Two eventually Consistent
1 Read
Role
To assume a role an app calls AWS STS and passes the ARN of the role to use.
AssumeRole
Scale
Vertical
Scale Up
Scale
Horizontal
Adding More of what you have
Security
These are STATEFUL
Security Groups
Security
All outbound traffic
permitted
File
File system used with EC2
Elastic File System
EFS
Networking
Network device attached to EC2 to accelerate learning apps and High Performance Computing (HPC)
Elastic Fabric Adapter
Lambda
zipp archives
Distribution mechanism for libraries, custom run times and other dependencies
Layers
Lambda
Trigger and executer
Trigger
Lambda
Compute model
Serverless
Lambda
Stores code in S3 and encrypts it
At rest
Lambda
Package code and dependencies in a deployment package
Function
Lambda
Log streams are monitored by
CloudWatch
Lambda
To create lambda function
Upload deployment package
Lambda
Basic function settings
Description
Memory Usage
Execution timeout
Role
Lambda
If variables need to reference more than 1 function
Parameter Store
Authentication
Rotates keys or variables automatically
Secrets Manager
Lambda Edge
Run lambda functions to custom content that is delivered by CloudFront
LambdaEdge
Lambda. with *CloudFront
AFTER *
BEFORE. *
AFTER. *
BEFORE. *
Receives Request
Forwards Request
Receives Request
Forwards
ECS: Deployment
Service scheduler replacing current running version of container with latest # of tasks and or removed from service is controlled by deployment and config
MiN/MAX
Rolling
ECS: Deployment
Verify new deployment of a service before send prod traffic to it and must be configured to use ALB or NLB
Blue Green with AWS Code Deploy
Task Placement Strategy
Least available amount of CPU or Memory
Binpack
Task Placement Strategy
Place tasks randomly
Random
Task Placement Strategy
Evenly based on specified values - default is spread across AZs
Spread
Task Placement Strategy
The types can be
Combined
S3
For object > 5 GB - 5TB
Use Multi-part upload
S3
Pull out ONLY the data that you need from an object
S3 Select
CloudWatch
Metrics are by default
5 mins
CloudWatch
Can be
1 min
S3
Event histories recorded in S3 are recorded in
CloudTrail
S3
To make objects publicly readable
Get Object Permission
S3
Asynchronous copying of objects across buckets in different AWS regions
Cross Region Replication
S3
Cross Region Replication requirement
Source and Destination have versioning enabled
Different regions
S3 must have permission to replace from source to destination.
EFS
To access EFS in a VPC you create one or more
Mount targets in VPC
EFS
Automatically mount your file system using mount helper
fstab
Database
Atomicity/Consistency/Isolation/Durability
ACID
Aurora
Minimum storage
10 GB
Database
One or more DB instances and cluster volumes that manage data for them
DB Cluster
Database
Virtual database storage volume that spans multiple AZs with each AZ have a copy of the DB cluster
Cluster Volume
Cluster
Primary read/write ops and performs all data mods to cluster volume
Primary
Aurora
Each Aurora DB cluster has
One primary database
Aurora
Same storage volume as Primary DB
Aurora Replica
Aurora Endpoint
Current primary DB instance for DB cluster
Cluster
Aurora Endpoint
One available aurora replica for DB cluster
used for Read-Queries
Reader
Aurora Endpoint
Set of DB instances you choose when you connect aurora
Custom
performs load balancing