SIMPLE STORAGE SERVICE (S3) Flashcards
Is S3 accessible to the public by default ?
No it’s private by default
S3 Bucket Policies
a form of resource policy that is attached to a bucket
Identity Policy
control what that identity can Access
can only be attached to identities in your account
has to be attached to a valid identity
Resource Policy
controls who can access that resource
Allow/Deny same or different accounts
Allow/Deny anonymous principals
How can you tell the difference between a resource policy and Identity policy
if there is a principle component it’s a resource policy
If your trying to control different resources in the same account. Would you implement a resource policy or Identity policy ?
IAM Policy
Would you use a IAM or Resource Policy if you
want one central place to control access
IAM Policies are the only single place in AWS you can control permissions for everything. you can use resource policies sometimes but you can use IAM policies all the time
What would you use to control
permissions within the same account
IAM policy
What would you use to control the permissions
on one resource like S3
resource policy
When to use IAM vs Resource Policy:
Anonymous or cross-account
resource policy
What are ACLs ?
Access control list Amazon legacy service user before S3 bucket policies
When to use IAM vs Resource Policy:
How about ACLs?
never unless you must
Explain Static Website Hosting in S3
Normal access is via AWS APIs
allows access via HTTP
Index and Error documents are set
Website endpoint is created
Do bucket names matter when hosting a static site in S3?
yes if you have a custom domain via R53
Pricing structure for S3 ?
storage per gb/monthly charge
data transfer in (Free)/out(not fee)
requests and data retrievals per/1,00 requests
How would you disable S3 versioning on an s3 bucket ?
you can’t once it’s been turn on the only way to stop is to suspend that bucket
Object Versioning
versioning lets you store multiple versions of objects within a bucket.Operations which would modify objects generate a new version.
Delete Marker
special version of an object which hides all previous versions of that object
What does deleting the delete marker do ?
restores the deleted version to being active again
Version Delete
you can delete an object by specifying the version. When deleting a current version the prev = current version
How can you reduce cost on a versioned bucket ?
space is consumed by all versions
you are billed for all versions
only way to cut cost to zero is to delete the bucket
MFA Delete
-can be enabled in versioning configuration
MFA is required to change bucket versioning state and delete versions
serial number(MFA) + code is passed with API calls
S3 Performance optimization :
Single Put upload
single data stream to S3
stream fails- upload fails
requires full restart