AWS Cloud Developer: FullStack -Storing Data in the Cloud Flashcards

1
Q

Why store data in a database and not in a file?

A

files:

file storage doesn’t scale well (concurrency)
Race conditions
Slow Read and Write speed

Search Speed:
Files have slow search speeds (On) compared to databases which store data as a tree structure (O log n), they also contain indexes and bloom filters which further speeds up search

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

NoSQL

A

Not Only SQL

Stores data as key: value pairs

Data is flexible and fields can be added or removed at runtime

easier to scale-out

DynamoDB, MongoDB, Cassandra

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

SQL

A

Structured Query Language

Store data in relational tables

Models must be defined upfront

Models are heavily normalized (data isn’t repeated)

easier to scale up

AWS RDS, MySQL, PostgresSQL

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

B-Tree

A

a generalization of a binary search tree, which stores sorted data, but can have more than 2 child nodes.

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

Bloom Filters

A

a data structure that is useful for determining if an item is probably in a data set, or definitely not in the data set. Bloom filters don’t actually store the data themselves.

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

primary key and foreign key

A

The primary consists of one or more columns in a table that are unique to each record (each row). A foreign key in a table contains the primary key of another table.

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

Signed Urls

A

SignedURLs allow clients to send and receive data by directly communicating with the file store. This saves the server from using its bandwidth to serve as the intermediary that transmits data to and from the client. This is faster for clients as well.

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

What is the AWS filestore

A

S3 buckets: A directory-like system in which to store data

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

CORS

A

CORS: Cross Origin Resource Sharing: defines how a client can interact with a resource, and what the client can and cannot do with that resource. Setting the CORS policy of our S3 bucket allows our client to communicate with the S3 bucket using the SignedURL pattern.

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

HIPPA

A

HIPPA: HIPAA (Health Insurance Portability and Accountability Act) is a law in the U.S that requires data privacy and security for medical information.

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

IAM service role

A

IAM service role: an IAM role gives a service a set of permissions to access one or more services.

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

Access to data should be…

A

revocable

limited (least privilege)

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

Two different categories of IAM

A

users and services

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

How should policies be assigned?

A

It’s beneficial to create a role that contains a policy group (a set of permissions), rather than to assign individual permissions to a specific user. Imagine if a user leaves the company and a new hire takes their place. Instead of re-assigning all the permissions needed for their job, we can assign the existing IAM role to that new employee.

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

How to install Amazon WEb Services credentials locally?

A

type “aws configure” in cli

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

Where is Web Service credentials stored locally?

A

mac/linus: ~/.aws/config

windows:C:\Users\ USERNAME .aws\config