Full Stack Flashcards
Remember concepts to do with server side code, DB's, HTTPS, Security (28 cards)
What is the relationship between an HTTPS certificate and the public and private keys in the context of establishing a secure connection?
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.
In HTTPS, which type of encryption is actually used during the communication session after the initial connection is established?
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.
What does HTTP stand for?
Hypertext Transfer Protocol
True or False: HTTPS is the secure version of HTTP.
True
Fill in the blank: HTTPS uses ______ for encryption.
TLS (Transport Layer Security)
What is the main purpose of web security?
To protect data and maintain the integrity, confidentiality, and availability of information.
What does SQL stand for?
Structured Query Language
Which of the following is a NoSQL database? A) MySQL B) MongoDB C) PostgreSQL
B) MongoDB
True or False: NoSQL databases use structured schemas.
False
What type of database is best for unstructured data?
NoSQL databases
What is the primary function of a back end in web development?
To manage the server, application, and database that power the website.
Which JavaScript runtime is commonly used for back end development?
Node.js
True or False: SQL databases are typically relational.
True
What is a common use case for using a NoSQL database?
Handling large volumes of unstructured data or when scalability is a concern.
Fill in the blank: The ______ method is used to send data to the server using HTTP.
POST
What is an API?
Application Programming Interface
What does CRUD stand for in database management?
Create, Read, Update, Delete
True or False: In a RESTful API, the HTTP methods correspond to CRUD operations.
True
What is the purpose of middleware in back end development?
To handle requests and responses between the client and server.
What is the primary benefit of using HTTPS over HTTP?
Data encryption and security during transmission.
Which database type is typically better for complex queries? A) NoSQL B) SQL
B) SQL
What does the term ‘scalability’ refer to in web development?
The ability to handle increasing amounts of work or to be enlarged to accommodate growth.
What is a primary key in a database?
A unique identifier for a record in a table.
True or False: JavaScript can only be used on the front end.
False