AWS Cloud Developer:Full-Stack -Security and Auth Flashcards

1
Q

Difference between Authorization and Authentication

A

Authentication: Who is asking?
Authorization: Can they ask?

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

How should passwords be stored?

A

Passwords should never be stored.

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

Data in transit should always be encrypted using …

A

ssl or tsl

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

What kind of encryption should be used to encrypt passwords?

A

One Way Hash

With OWH, the server compares hashes not passwords

Reversible encryption algorithms allow anyone with the key to decrypt a password

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

One way hashing algorithms

A

bcrypt
scrypt
SHA-1
MD5

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

What is one way of defeating a One Way Hashing algorithms, and how can we make it more secure?

A

Rainbow tables

This can be prevented by using Salts

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

What are Salts?

A

A random string added to the beginning of a password before it is passed through a One Way Hashing Algorithm. This is to ensure that the same password never outputs the same hash string, making it difficult to decrypt using rainbow tables

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

What is the gold standard for storing passwords?

A

As salted, hashed strings using bcrypt

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

Bcrypt salt rounds

A

the password is passed through the salted hashing function, and the output is again passed through the hashing function in a loop. The more times we iterate on the hashing function, the more we can guard against brute force attacks that try to guess the password. The salt rounds decide how many times to go through this loop. Settings salt rounds to 10 means we iterate on this hashing function 2^10 times.

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

How to avoid having to having to provide user password with every request?

A

Session ids stored on user’s browser, which are then provided in Request headers

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