Development Flashcards

1
Q

Authentication vs Authorization

A

Authentication is verifying the user’s identity. Eg: We verify the user is legit by matching their password.

Authorization determines what the user can access.

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

sessionStorage vs localStorage vs Cookies

A

Persistence: localStorage data are stored indefinitely, cookies are set to expire in a defined amount of time and sessionStorage data is deleted once the tab is closed.

Size: cookies can store only small amount of data (about 4kb) whereas, sessions can store large amount of data.

Cookies are automatically sent in every http request to the server. Whereas the session data are availabale to only client side scripts

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

Containers vs VM

A

asca

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

component lifecycle stages

A

initialization, mounting, updatation, unmount

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

first contentful paint

A

is the time delay between the first request that a user made to the backend and the first component mounting/displayed on the UI

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

hydration

A

the event at which the client-side JavaScript is loaded- that enables us to interact with html components- like clicking a button, opening a dropdown…

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

service worker

A

allows working out of the main thread

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

What is DOM

A

Document Object Model provides an interface to access and modify documents. Documents like HTML, XML…

Document Object Model (DOM) is a platform and language-neutral interface that allows programs and scripts to dynamically access and update the content, structure, and style of a document

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