How The Web Works (THM).2 Flashcards

(50 cards)

1
Q

What is the first step of DNS request?

A

Comp checks local cache

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

What is step 2 of DNS request?

A

If Comp doesn’t have, request to Recursive DNS Server

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

Who provides a recursive DNS Server?

A

ISP
Yourself

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

What is step 3 of DNS request?

A

If recursive DNS server doesn’t have, request sent to root server

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

What is step 4 of DNS request?

A

Root server sends request to right TLD server.

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

What is Step 5 of DNS Request?

A

TLD server finds the authoritative DNS server.

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

What is Step 6 of DNS Request?

A

Authoritative DNS server address is sent back to Recursive DNS server

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

What is Step 7 of DNS Request?

A

DNS Record is cached at DNS Server and given a TTL

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

What is HTTP?

A

HyperText Transfer Protocol

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

What is HTTPS?

A

HyperText Transfer Protocol Secure

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

What is the purpose of HTTP?

A

Rules for communicating website data.

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

What is the purpose of HTTPS?

A

Authenticating and encrypting website data.

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

What is a URL?

A

Uniform Resource Locator

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

What are the components of a URL in order?

A

Scheme-user-host/domain-port-path-query string-fragment

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

What is the Scheme of a URL?

A

what access protocol to use

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

Give examples of URL Schemes

A

HTTP
HTTPS
FTP

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

What is the User component of a URL?

A

username/password (if required)

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

What is the Host component of a URL?

A

the domain name or IP address of the server you want to access

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

What is the Port component of a URL?

A

The port you want to connect to

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

What is the Query String portion of the URL?

A

extra info to access the right page

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

What is the Fragment component of a URL?

A

Location on requested page

22
Q

What are the different HTTP methods?

A

GET Request
POST Request
PUT Request
DELETE Request

23
Q

When an HTTP Server responds, what is on the first line?

A

HTTP Status Code

24
Q

What is an HTTP Status Code 100-199?

A

Information Response

25
What is an HTTP Status Code 200-299?
Success
26
What is an HTTP Status Code 300-399?
Redirection
27
What is an HTTP Status Code 400-499?
Client Errors
28
What is an HTTP Status Code 500-599?
Server Errors
29
HTTP Status Code 200?
Ok
30
HTTP Status Code 201?
Created
31
HTTP Status Code 301?
Moved permanently
32
HTTP Status Code 302?
Found
33
HTTP Status Code 400?
Bad Request
34
HTTP Status Code 401?
Unauthorized
35
HTTP Status Code 403?
Forbidden
36
HTTP Status Code 405?
Method Not Allowed
37
HTTP Status Code 404?
Page Not Found
38
HTTP Status Code 500?
Internal Service Error
39
HTTP Status Code 503?
Service Unavailable
40
What are HTTP headers?
Extra data for web server requests
41
What are some common Request Headers?
Host (Domain name) User-Agent Content-Length Accept-Encoding Cookie
42
What is a User-Agent Request Header?
Your browser software and version number (for formatting)
43
What is a Accept-Encoding Request Header?
The compression methods your browser supports
44
What is a Cookie Request Header?
Your data the server should remember
45
What are the Common Response Headers?
Set-Cookie Cache-Control Content-Type Content-Encoding
46
What is the Set-Cookie Response Header?
Info stored and to be sent to web server on every access
47
What is the Cache-Control Response Header?
How long to store response content before next request
48
What is the content-encoding response header?
Method of compression by server
49
What are some examples Content-Type Response Headers?
HTML CSS JavaScript Images PDF Video
50