Technology Flashcards
How is the AWS global infrastructure organised?
Regions, Availability Zones and Edge locations
What is a region?
Physical geographical area consisting of 2 or more AZs
What is an availability zone?
One or more discrete data center with own redundant power, networking and connectivity, housed in separate facilities.
What is an edge location?
Endpoints for AWS used for caching content (typically CloudFront, AWS’s CDN). There are more edge locations than regions
Explain how an edge location works
If someone in London is trying to access a file stored in New York, it will query the edge location. As this is the first time, it will download it from NY. It will be cached here for TTL, meaning the next time someone needs it it will be much quicker
How do you choose which AWS region to select?
1) Data sovereignity laws: data may only be able to reside in certain countries
2) Latency to end user: where are the majority of your customers based?
3) AWS services: US East 1 has the most services, and other regions may be slower to gain access to services
What is the use case for developer support plan?
Experimenting with AWS
What is the use case for business support plan?
Production use of AWS
What is the use case for enterprise support plan?
Mission critical use of AWS
What is special about the enterprise support plan?
Receive a TAM (technical Account Manager). This is 1-1 with an account, and provides proactive guidance and best practices to help plan, develop and run your AWS solution, a support concierge who provides billing and account analysis and supports product launches and promotions
What is a billing alarm?
Sends a notification (SNS) whenever your bill goes over a certain amount. Important, as in the free tier whilst a lot is free, some services are not. Located in CloudWatch
How can you get automatic notifications if your account goes over £1000?
Set up a Billing Alarm in CloudWatch and set an SNS topic to email whenever you go over a threshold
What is IAM
Identity Access Management is a global service
Allows you to create users, groups and roles and give access to different levels
This is done from a root account
1) Activate MFA on your root account (google authenticator)
2) Create individual IAM users
3) User groups to assign permissions
4) Apply an IAM password policy (e.g. 8 letters, 1 capital)
What are the 3 kinds of access for IAM Users?
1) AWS Management Console: enables a password that allows users to sign into the console
2) Programmatic access using Command Line Interface (CLI): enables an access key ID and secret access key for AWS API, CLI, SDK and other development tools
3) SDK (software development kit)
What are user policies?
Always written in JSON format with key value pairs and version. Outlines permissions the user/group is allowed e.g. Admin Access. These can be copies from an existing user or attached directly
What is a root account?
The email address you use to set up your AWS account. This will always have full admin access to credentials should never be shared, instead create a user for each individual. Always secure the root account using MFA
What is a IAM group?
A place to store your users. These will inherit all permissions given to that group eg. HR, finance, sales
What is S3?
Simple Storage Service
One of the longest AWS services, it provides developers and IT teams with secure, durable and highly scalable object storage with a simple web interface to store and retrieve any amount of data from anywhere
Stores flat files (text, pictures, video).
What do objects consist of?
Key (name of the object) Value (data, made up of bytes) Version ID Metadata Sub resource (access control list and Torrent) Files can be 0 bytes - 5TB Unlimited storage
What are S3 buckets and how are they stored
Files are stored in buckets (folder in the cloud). S3 is a universal namespace, meaning names must be unique globally.
Bucket names make up the DNS: s3.region.amazonaws.com/bucket name
What happens when you upload a file to S3
Receive a HTTP200 code if successful
How does data consistency work for S3?
Read after Write Consistency for PUTS of new objects: if you are writing another file (PUTTING it into S3) and read i immediately after, it will be available)
Eventual Consistency for overwrite PUTS and DELETES: if you update/delete an existing file and read it immediately, you may get an older version or may get new version. Takes time to propagate
What is the different between object based storage and block based storage
Object based storage (S3) allows you to upload flat files that don’t change. EBS allows you to install an OS or DB
What guarantees do Amazon offer for S3?
1) Built for 99.99% availability
2) 99.999999999 (11 9s) durability meaning you wont lose access to the file