Networking - HTTP - multichoice questions

Given the following request message, answer the questions below.

GET ../../6.031/www/fa17/classes/24-sockets-networking/ HTTP/1.1
Host: web.mit.edu
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Keep-Alive: 300
Upgrade-Insecure-Requests: 1
Sec-Fetch-Dest: document

Question 1

What is wrong in the request?

Question 2

For how long the client persists the TCP connection over which requests and responses will be transferred?

Question 3

The server uses HTTP/2. Choose the correct statement:

Question 4

Assume the above request was responded with an HTML page consisting of some text and three images.

Consider the following statement:

For this page, the client will send one request message and receive four response messages.

Question 5

Assume the server response status code is 408. Choose the most likely root cause for this response.

Question 6

Assume the server response status code is 500. How can you advise the client?

Question 7

Assume the RES bash variable contains the response status of some request. Which condition will catch all possible failures (both client and server)?

Question 8

Load balancer is a piece of software that efficiently distributes incoming network traffic across multiple servers.

By default, a load balancer redirects an incoming requests to a random server:

Sometimes, it is useful to redirect incoming requests to the same server with which a given user was originally redirected to. For example, if a given user was redirected to server B when initially accessed the website, from now on, the load balancer will redirect every request of this user to server B/

This process is called a Sticky Session. The load balancer creates an affinity between a client and a specific server for the duration of a session.

How could that be achieved using cookies?

Question 9

Which of the following statements is a misconception of cookies?

Question 10

What is the purpose of a cookie header value in an HTTP GET request?

Question 11

A client sends 2 requests to the server. Here is the response for the first request:

HTTP/1.0 200 OK
Date: Wed, 09 Sep 2020 23:46:21 +0000
Server: Apache/2.2.3 (CentOS)
Last-Modified: Wed, 09 Sep 2020 23:51:41 +0000
ETag:17dc6-a5c-bf716880.
Content-Length: 418
Connection: Close
Content-type: image/html

Was the client used the same TCP socket for both requests?