AWS-SA-2020 Flashcards
What AWS functionality is used to move S3 data from one storage class to another
Life cycle policies
s3 durability
11 x 9
For all s3 storage classed how my zones are data stored in?
3 except for single zone s3
what should you use for hot or fast backup
IA standard (infrequent access, fast)
srr vs crr
same region replication vs cross region
when to use crr
compliance, latency (users in different locations), ops efficiency (compute clusters in different locations)
before setting up cross region replication you must
enable versioning
If object locking is enabled can you use regional replication?
yes
What types of access control exists for s3?
ACLs, bucked policy, iam
s3 standard replication to # of az?
3 availability zone replication
s3 intelligent does what
moves data to the most cost-effective access tier
s3 one zone ia
also s3 IA
one zone, used to be RRS, costs 20% less than standard IA vs
s3 IA is multi zone (3)
Glacier AZ, cost, retrieval
Multiple AZ, retrieve in minutes or hours, low cost
Glacier deep dive details
lowest cost, accessed 1,2x per year compliance types, 12 hours, 3 AZ
for cross region replication to work + what happens to new/old/deleted files
1 versioning must be enabled on both
2 existing files not auto replicated, new will
3 deletes not replicated
object vs block and which is s3
object = files, block = os, s3 is object
bucket names are
are universal, unique
4 types of at rest encryption
s3 managed keys (sse-s3 / aes-256
aws key mgt - sse-kms
server side w/client keys sse-c
or client side and upload
transfer accelerator uses
edge locations to speed up transfer
What is cloudfront
content delivery network - simple api that allows files to be delivered to end-users using a global network of edge locations
What are the main logical components of AWS IAM?
Users, Groups, Roles, Permission Policies
Can a user assume a role in another account?
Yes, a user can assume a role in another account by calling assume-role using the CLI or using the Web console switch role function. With the CLI asume-role requires an –role-arn and a –role-service-name.
From an IAM perspective, what should I do with the root user first thing after setting up a new account?
- Remove the access key.
- Set an extremely secure password on the root user.
- Do not use the root password only;y in emergencies
- Enable MFA and lock away the security key.
List the EC2 instance categories?
Spot Instance, On-Demand Instances, Reserved Instances.
3 types of LB
app - intelligent
network - performance
basic - easy
x-forwarded-for
if you need the ip of end user
instances reported by ELB are reported as
inService, out of service
LB have their own DNS name but never
never an IP
sticky sessions can be set with these types of lb
classic, application (target group level)
cross-zone lb
balancing across AZ
path pattern
route based on path (images or content, different paths)
multi-az vs read replicas
az is for DR, Read replicas for performance
Cloudformation is
script cloud environment - Create Your AWS Stack From a Recipe
Quickstart cloudformation
templates already built to create environments
Elastic Beanstalk is for
developers can upload code and elatic beanstalk handles deployment, scaling,etc
SQS is
decouple components, stores messages in que
acts as buffer
pull not pushed
types of sqs queues
standard - unlimited transactions per second
fifo - exactly once, first in/out 300ps
SQS retention period
default 4 days
can be 1min to 14 days
sqs visibility timeout
re appears if ec2 doesn’t delete after pickup
SWF is
SWF as a fully-managed state tracker and task coordinator that runs background jobs
SNS
web notifications
push, delivers messages to subscribers
elastic transcoder is
converts media files to other formats
api gateway can access
can access ec2 or serverless
api gw features
cache, auto scale, can throttle for attacks, cloudwatch logging
What is CORS
allows webpages to talk to resources in another domain
what if you get “Origin policy cannot be read at remote source”
enable CORS API GW
Kinesis is used for
streaming data
3 types of Kinesis & define
Streams - endpoints stream and its stored in shards
Firehose - no storage, need to process asap
Analytics - analyzes streams/firehose and stores data
Cognito is
AWS web ID federation
cognito user vs identity pools
cognito aws user - registration, accounts
identity - grants IAM roles
lambda is
compute service, upload code and go
very cheap, scales out auto (not up)
serverless
aws x-ray
debug lambda
lambda can do global activities like
backup s3 bucket
What can’t trigger lambda
rds, ec2
IAM is universal or regional
Universal
root account
account created when you setup account that has admin access
new users have _ permission
no permissions
new users are assigned a
access key and secret access key to access system - cannot use this to access console
2 types of aws access for user
console and programmatic
s3 file size, and maximum
0 to 5TB, unlimited
s3 namespace is _
universal, global, creates http://xxxname
successful s3 upload
200 ok
how to protect objects in s3
mfa
s3 file fundamentals & components
key - name value - data version id metadata sub resources like acls and torrents
s3 PUTS new ojbects =
read after write (instant)
s3 overwrite PUTS or deletes
eventual consistency
control access to buckets using
bucket ACL or policy
Versioning can be use for backups and w/lifecycle rules
yes
Can versioning use MFA for delete
yes, adds extra security
Lifecycle management summary
moves object between tiers of storage
can be used with versioning
applies to current/past versions
cross-region replication versioning
must be enabled on source and destination bucket
cross-region replication regions must be
unique
what is an edge location, is it read or write
where content is cached
can read and write
CloudFront originates from what AWS services
s3 bucket, ec2 instance, elb, rt53
Cloudfront distribution points are what
collection of edge locations given to CDN
For streaming what does each stand for : WEB vs RTMP
websites vs media streaming
what is snowball & where does it import/export
Petabyte scale transport system, big disk
import/export to s3
termination protection is turned _ by default
off
EBS backed instance default action is for root EBS volume to be _ on termination
deleted
Can root volume of default ami be encrypted
yes
Security group defaults
all inbound traffic blocked, outbound allowed
security groups applied to EC2 max
no max, both directions (EC2 in sec groups)
Can you block a IP using security groups
no
can you set deny rules in a security group
no, they deny all by default
can volumes exist on ebs
yes, its a virtual hard disk
where do snapshots live
s3, like a photo of the disk
what is a snapshot
point in time copy of volume
are snapshots incremental
yes
Should you stop an instance before taking snapshot of the root volume
yes
can you take a snaphot while instance is running
yes, but should only of not root volumes
what can you change for a used ebs volume
can change on the fly
can change type
How to move ec2 volume from one AZ or region to another
take snapshot
create ami
launch ec2 instance in new az
for regions you have to copy the ami to new region first
instance store volumes are sometimes called
ephemeral
instance vs ebs backed - will you lose data
if instance host fails data is gone, ebs will stay
what happens to root volumes on instance termination
they are deleted unless you told aws to keep ebs