Full Stack Flashcards

Remember concepts to do with server side code, DB's, HTTPS, Security (28 cards)

1
Q

What is the relationship between an HTTPS certificate and the public and private keys in the context of establishing a secure connection?

A

The public key in the HTTPS certificate is used by clients to securely send data to the server and establish a secure connection.

HTTPS secure connection steps:

When a client connects to a server over HTTPS, the server presents its SSL/TLS certificate to the client.

The client verifies the certificate’s validity and the identity of the server.

The client then uses the public key in the certificate to encrypt a symmetric session key.

The server decrypts the symmetric session key with its private key.

This symmetric key is then used to encrypt and decrypt data exchanged during the session, providing a secure communication channel.

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

In HTTPS, which type of encryption is actually used during the communication session after the initial connection is established?

A

After the initial TLS handshake, the symmetric encryption key is used to encrypt and decrypt data exchanged during the session. This is much more computationally cheaper than asymmetric encryption.

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

What does HTTP stand for?

A

Hypertext Transfer Protocol

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

True or False: HTTPS is the secure version of HTTP.

A

True

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

Fill in the blank: HTTPS uses ______ for encryption.

A

TLS (Transport Layer Security)

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

What is the main purpose of web security?

A

To protect data and maintain the integrity, confidentiality, and availability of information.

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

What does SQL stand for?

A

Structured Query Language

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

Which of the following is a NoSQL database? A) MySQL B) MongoDB C) PostgreSQL

A

B) MongoDB

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

True or False: NoSQL databases use structured schemas.

A

False

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

What type of database is best for unstructured data?

A

NoSQL databases

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

What is the primary function of a back end in web development?

A

To manage the server, application, and database that power the website.

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

Which JavaScript runtime is commonly used for back end development?

A

Node.js

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

True or False: SQL databases are typically relational.

A

True

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

What is a common use case for using a NoSQL database?

A

Handling large volumes of unstructured data or when scalability is a concern.

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

Fill in the blank: The ______ method is used to send data to the server using HTTP.

A

POST

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

What is an API?

A

Application Programming Interface

17
Q

What does CRUD stand for in database management?

A

Create, Read, Update, Delete

18
Q

True or False: In a RESTful API, the HTTP methods correspond to CRUD operations.

19
Q

What is the purpose of middleware in back end development?

A

To handle requests and responses between the client and server.

20
Q

What is the primary benefit of using HTTPS over HTTP?

A

Data encryption and security during transmission.

21
Q

Which database type is typically better for complex queries? A) NoSQL B) SQL

22
Q

What does the term ‘scalability’ refer to in web development?

A

The ability to handle increasing amounts of work or to be enlarged to accommodate growth.

23
Q

What is a primary key in a database?

A

A unique identifier for a record in a table.

24
Q

True or False: JavaScript can only be used on the front end.

25
What does CORS stand for?
Cross-Origin Resource Sharing
26
Fill in the blank: ______ is a popular framework for building server-side applications with Node.js.
Express.js
27
What is the purpose of a session in web applications?
To maintain state and store user data across multiple requests.
28
Which of the following is a characteristic of NoSQL databases? A) Fixed Schema B) High Scalability C) Relational Data
B) High Scalability