Server Flashcards

1
Q

Server

A

Is a generic term referring to either software or hardware that processes request from clients. A server offers shared resources that can be requested for use by a client.

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

Client

A

Is software that sends a request to a server to access a shared resource and processes the response returned from the server.

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

http://www.techelevator.com:80/events/current?month=march&day=27#00h02m30s

A

http:// Protocol
www.techelevator.com Domain
:80 Port
/events/current Path to resource
? Query
month=march&day=27 Parameters
#00h02m30s Anchor/Fragment

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

Domain names

A

Are composed of parts, each separated by a period. Domains start a top-level domain and then form a hierarchy of subdomains, each a child of the higher-level domain.

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

dashboard.techelevator.com

A

.com is the top-level domain
.techelevator is a subdomain of .com
dashboard. is a subdomain of .techelevator.

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

IP (Internet Protocol) Address

A

Identifies a computer or device on a network (including the internet). All devices/computers on a network must have an IP address to communicate with other devices/computers on the network. It gives the location of the device like the street address of a house.

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

Types of IP Address

A

IPv4 - dotted-decimal notation

IPv6 - in hexadecimal

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

DNS (Domain Name System)

A

Allows for easy-to-remember names for IP address. Like a map with string keys (techelevator.com) and IP address values (198.49.23.144)

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

Port

A
Used to identify which server application should handle the request.
        Port 80 - HTTP
	Port 443 - HTTPS
	Port 25 - SMTP (Email Mail)
	Port 21 - FTP (File Transfer)
	Port 22 - SSH (Secure remote terminal)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

HTTP (HyperText Transfer Protocol)

A

It is a defined language and process they will use when the client makes a request and the server returns a response.

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

Parts of an HTTP Request

A
  1. Method.
  2. Requested Resource.
  3. Header.
  4. Parameters.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Parts of an HTTP Response

A
  1. Status Code.
  2. Header.
  3. Content-Type.
  4. Content (Body).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Method (VERB) parts of an HTTP Request

A

GET - Retrieves information
POST - Adds information
PUT - Updates information
DELETE - Deletes information

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

Method (VERB) part of an HTTP Request

A

GET - Retrieves information
POST - Adds information
PUT - Updates information
DELETE - Deletes information

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

Requested Resource part of an HTTP Request

A

A resource is something shared by the client. It can be an HTML page, CSS, a file like an image or pdf document, information from a database, access to a stream, or anything else the server can deliver.

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

Header part of an HTTP Request

A

The header contains details about the request, such as the browser, IP address, preferred language, etc.

17
Q

Parameters part of an HTTP Request

A

Parameters include data to be used to fulfill the request. Similar to arguments sent to a Java method.

18
Q

Status Code part of an HTTP Response

A

1xx - Informational
2xx - Success: 200 - OK, 201 - Created
3xx - Redirected: 301 - Moved Permanently
4xx - Client Error: 400 - Bad Request, 401 - Unauthorized, 403 - Forbidden, 404 - Resource Not Found
5xx - Server Error: 500 - Server Exception

19
Q

Header part of an HTTP Response

A

Meta Information about the response.

20
Q

Content-Type

A

The type of content being returned: text, JSON, image, stream, etc.

21
Q

Content (Body)

A

The output of the response. HTML, image, data, etc.

22
Q

API Application Programming Interface

A

Is a way for software components to talk to each other. The methods and properties in our classes that are exposed as the public are the API of the object.

23
Q

Web Service (Web API)

A

A Web Service or Web API is an API that allows for applications to communicate with each other across the internet. All Web Services are APIs, however, not all APIs are Web Services.

24
Q

REST (REpresentational State Transfer)

A

Is a software architectural pattern that defines a set of constraints and standards for how 2 applications on a network should communicate.

25
Q

Rules of REST:

A
  1. Uniform Interface (URI, URL).
  2. Stateless.
  3. Cacheable.
  4. Client-Server.
  5. Layered System.
26
Q

REST Uniform Interface (URI, URL)

A

The uniform interface constraint defines the interface between clients and servers. It simplifies and decouples the architecture, which enables each part to evolve independently.

27
Q

REST Stateless

A

The necessary state to handle the request is contained within the request itself

28
Q

REST Cacheable

A

As on the World Wide Web, clients can cache responses.

29
Q

REST Client-Server

A

Clients are not concerned with data storage, which remains internal to each server so that the portability of client code is improved. Servers are not concerned with the user interface or user state so that servers can be simpler and more scalable.

30
Q

REST Layered System

A

Layers may also enforce security policies.

31
Q

REST Web Service (Web API)

A

Web Services that implement the REST standard are said to be RESTful. Commonly use JSON as a response.

32
Q

JSON (JavaScript Object Notation)

A

Is a messaging format that is commonly used by RESTful Web Services.
Uses key/value pairs to represent objects.
Objects are identified by { }, Arrays by [ ]
Objects have properties and values separated by a colon. The property names are Strings in double-quotes. The value can be a number, String (with double quotes), Array, or Object.
Each property/value pair, object, or array is separated by a comma.