Which statement about how a web server responds to requests is true?

A web server responds to requests with a static set of HTML files only.

A web server responds to requests by sending resources and status codes that indicate the result of the request.

When a web server answers a request, it sends back both the requested content (the resource) and a status code that shows what happened with the request. The resource can be HTML, but it can also be other data like images, JSON, CSS, or dynamically generated content. The status code communicates the outcome: 200 means everything went fine and the resource is delivered; 404 means the resource wasn’t found; 301 or 302 indicates a redirect to another URL; 500 signals a server error, and so on. This combination of data and status codes is how the server tells the client what it received, what it delivered, and what to do next.

Other statements miss the essential idea. A web server can serve more than static HTML and isn’t limited to a single kind of response. It doesn’t primarily route packets between networks (that’s what routers do), and generating random data for testing isn’t how it responds to normal requests.

A web server routes packets between networks.

A web server generates random data for testing.

Want more questions?

All options are one-time payments.

$25.99

30 day pass for new members

All the basics to get you started

  • Ad-free experience
  • View your previous attempt history
  • Mobile app access
  • In-depth explanations
  • 30 day premium pass access
$59.99$171.99 usd

6 month DELUXE pass (most popular)

Full access FOR 6 MONTHS! & the ultimate digital PDF study guide (BONUS)

  • $171.99 usd value for $59.99! You save $106!
  • Ad-free experience
  • View your previous attempt history
  • Mobile app access
  • In-depth explanations
  • 6 months of full access
  • Ultimate digital PDF study guide included
  • Priority support
$15.99 $24.99

Ultimate digital PDF study guide

For those that prefer a more traditional form of learning

  • Available for instant download
  • Available offline
  • Hundreds of practice multiple choice questions
  • Comprehensive content
  • Detailed explanations
Image Description
Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy