Web Technology Basics

A web system is built in three tiers: a web server, an application server and a database server. Which of the following is the processing that the application server mainly handles?

  1. AIt receives user input, performs business processing such as checking logins and registering orders, and produces results using the database
  2. BIt accepts HTTP requests from browsers and returns unchanging files such as images and CSS as they are
  3. CIt stores data in the form of tables and searches or updates it in response to SQL queries from applications
Show answer and explanation

Answer: A. It receives user input, performs business processing such as checking logins and registering orders, and produces results using the database

In a three-tier setup, the web server accepts HTTP requests from users, returns static files and passes requests that need processing to the application server. The application server performs business processing in programs and leaves reading and writing of data to the database server. Separating the roles makes it possible to scale up each tier separately and to place the database where it cannot be reached directly from outside. In small systems, one computer may handle several tiers.

  • A. Correct. It performs the business processing and produces results using data obtained from the database.
  • B. This is the main role of the web server.
  • C. This is the role of the database server.
Practice this topic Back to topic

Books on Web Technology Basics Ad

As an Amazon Associate I earn from qualifying purchases.

More Web Technology Basics questions

  1. Which of the following correctly describes a reverse proxy?
  2. With CGI, the web server starts the program as a new process every time it receives a request, and the process ends when processing is finished. Which of the following is the main reason that FastCGI and application-server approaches can handle many requests more efficiently than CGI?
  3. Among the ways of producing the pages of a website, which of the following generates the HTML files of all pages in advance at the build stage and returns those files as they are in response to requests?
  4. Which of the following correctly lists the elements in the first line (the request line) of an HTTP/1.1 request?
  5. Among HTTP methods, which of the following is not "safe" (not intended to change the state of resources on the server) but is "idempotent" (sending the same request any number of times leaves the same state as sending it once)?