AWS Flashcards

1
Q

What is AWS?

A

AWS is a collection of Cloud Computing Services that can work together or independently to run or support a computer program.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is an Amazon EC2 instance?

A

An Amazon EC2 instance is a virtual server in Amazon’s Elastic Compute Cloud (EC2) for running applications on the Amazon Web Services (AWS).

EC2 is a service that enables to run application programs in the computing environment. It can serve as a practically unlimited set of virtual machines (VMs)

Elastic - Instances running computing operations can increase or decrease at will

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Whats is an Amazon Machine Images (AMI)?

A

It is a combination of operating system and applications preinstalled.
Amazon updates the image software (but not your instance).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are Security Groups?

A

IP-based communication rules for a single or group of EC2 instances. (Firewall between instances - controls which IP’s an instance can talk to and what it can access it)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is S3?

A

S3 (Simple Storage Services) provides developers with secure,durable, highly-scalable object storage.

  • Object-based - allows to upload files
  • Maximum size of 5 terabytes.
  • Files are stored in bucket

Features:

  • Tiered Storage Available
  • Lifecycle Management
  • Versioning
  • Encryption
  • Secure your data using Access Control Lists
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a Bucket?

A

A bucket is your root resource to which you can add, remove or modify objects when it comes to Simple Storage Service.

S3 is a universal namespace - that means names must be unique globally

Buckets can:

  • Trigger events when objects are added/modified/deleted
  • Preserve older versions of objects
  • Replicate objects across different regions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is an example of an S3 Bucket URL?

A

https://s3-us-west-1.amazonaws.com/okfido.org/img/okfido_logo.png

With the url you can access the objects within them.
When the permissions for objects are modified to allow anonymous access, S3 can be used to host static files as websites.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the way to solve latency problems in S3?

A

With S3 you can automatically replicate files to other regions, but there is a better solution…

with Cloudfront (cdn), you can cache your content at locations around the world.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is Relational Database Service (RDS)

A

TODO

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is Route53?

A

Route53 is Amazon’s service for management of DNS both inside and outside of AWS.

It allows to easily configure domain names to resolve internal AWS services.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is Lambda?

A

Lambda provides function code executions as a service. (Serverless or Funciton as a service)

  • Executes code
  • No server management required
  • is also great for small, irregular tasks

Function:

1) Bundle of code with specified execution entry point
2) For a specific platform type like go, node, java
3) has invocation gateways
4) has additional configuration options

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is DynamoDB?

A

DynamoDB is a managed NoSQL database from Amazon that supports document and key-value models.

  • Core structure in DynamoDB is a table (root point of your data storage)
  • Stored on SSD storage
  • Spread across 3 geographically distinct data centres
  • Eventual Consistent Reads (Default) (if data written will not be read within 1 sec) / Strongly Consistent Reads
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is Provisioned Throughput Capacity (DynamoDB)?

A

Number of Read/Write Units per second to provision the table with.
Read unit is limited to 4kb
Write unit is limited to 1kb

Any requests above those sizes would consume additional read/write units.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is CloudFront?

A

CloudFront is a CDN that allows you to serve files globally with very fast connections.

1) You begin by setting up a CloudFront distribution (A distribution defines a set of content to distribute the files from.)
2) Specify an original location of the resource (Like S3 bucket).
3) Once a distribution is created an unique URL will be created.
4) You can also set up configuration options (like Allowed HTTP Methods, Edge Locations, SSL certificates)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is an Edge Location (CloudFront)?

A

This is the location where content will be chached. Separate to an AWS Region/AZ

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the Origin (CloudFront)?

A

Origin of all the files that the CDN will distribute. This can be an S3 Bucket, EC2 Instance, Elastic Load Balancer or Route53

17
Q

What is the Distribution (CloudFront)?

A

Name of the given CDN, which consist of a collection of Edge Locations

18
Q

How does data consistency work for S3?

A
  • Read after Write consistency for PUTS of new Objects

- Eventual Consistency for overwrite PUTS and DELETES

19
Q

What is DAX (DynamoDB)?

A

DAX is a DynamoDB Accelerator.

  • It provides fully managed, highly available, in-memory cache
  • 10x performance improvement
  • Reduces request time from milliseconds to microseconds
  • Completely compatible with existing DynamoDB API calls
20
Q

What are Transactions (DynamoDB)?

A
  • Multilple all-or-nothing operations
  • Under the hood DynamoDB performs two underlying reads or writes for transactions - prepare/commit
  • Operate up to 25 items or 4 MB of data
21
Q

What are the properties of On-Demand Backups and Restore (DynamoDB)?

A
  • Full backups at any time either through AWS console or an API call.
  • Zero impact on table performance or availability

Point-in-Time Recovery:

  • Allows restore to any point in the last 35 days
  • Incremental backups
  • Lates restorable time (5 mins)
22
Q

What are Global Tables (DynamoDB)?

A
  • Managed Multi-Master, Multi-Region Replication
  • Globally distributed applications
  • Based on DynamoDB streams (requires DynamoDB Streams)
  • Multi-region redundancy for DR or HA
  • Replication latency under one second
23
Q

What are Cognito User Pools?

A

User Pools are user directories used to manage sign-up and sign-in functionality for mobile and web applications. Cognito acts as an Identity Broker between the ID provider and AWS. Successful authentication generates a number of JSON Web tokens (JWTs)

24
Q

What are Identity Pools?

A

Identity Pools enable you to create unique identities for your users and authenticate them with identity providers. With an identity you can obtain temporary, limited-privilige AWS credentials to access other AWS services

25
Q

What are API Gateway Security Mechanisms?

A

1) IAM Authorisers
2) Lambda Authorisers
3) Cognito user pools authorisers

Authorisers are a security feature of API Gateway, that help us to validate the request

Apart from that

  • CORS
  • SSL client side certificate
  • AWS WAF
  • Usage plans and API keys
26
Q

Explain Lambda Authoriser scenario.

A

Whenever a request is coming into API Gateway, it will be first read by the Authoriser.

In this case it is a lambda, that will execute some operation - request or token validation. If the validation is OK, it will pass the request to the next lambda which contains business logic.

27
Q

Explain Cognito User Pools Authoriser scenario.

A

Allow us to customize user pools, so we can control who can call the API.

  • Create an Authoriser of Cognito User Pool type.
  • Configure method to use this Authoriser.

Flow:

1) When a client wants to use the API, he will get signed in with Cognito first. It will obtain some kind of token or identity.
2) With that, the client can call API Gateway, which will validate that this token is valid.
3) If it’s ok it will proceed to call the lambda.

28
Q

Explain the IAM Authorisers

A
  • Set up the Authoriser of API Gateway to IAM.

1) The client that wants to use this API needs to login to a user pool
2) get a valid role from Cognito Identity Pools
3) Then, he will execute API Gateway with a valid role
4) Execute the lambda

29
Q

What is a Hosted Zone?

A

Hosted Zone is a feature of AWS Route53, it is a container for all of individual records or entries for things in that domain name.

dev. example.com
www. example.com
test. exampe.com

30
Q

What is a name server record?

A

Specifies that a DNS Zone (Hosted Zone) is delegated to specific Authoritative name server and provides the address of the name server.

In AWS registration of a Hosted Zone by default creates this record, which contains of total of 4 name servers. This set of name servers is called a delegation set.

31
Q

What is an A record?

A

An “A” record is the fundamental type of DNS record. The “A” stands for “Address”. The A record is used to translate the name of the domain to an ip address. For example

http://www.acloud.guru might point to http://123.10.80

32
Q

What is a CNAME record?

A

Canonical name, means that for the value of pointer, you do not provide an IP address, but another dns name. When the DNS lookup happens, the end user will get the IP address of that other dns name.

33
Q

What is an Alias and why is it important?

A

Alias records are used to map resource record sets in your hosted zone to Elastic Load Balancers Cloudfront distributions or S3 buckets that are configured as websites.

Imagine a situation, that you want to point to above resources. All of those things, have IP addresses that can change, so you do not want to hardcore the IP address to that resources.

“Alias” tells the Route53, to fetch the current IP address of selected resource, that you are targetting.