GWAPT · Question #134
What is the primary role of a web server in web applications?
The correct answer is B. To store and deliver content such as HTML, CSS, and JavaScript files. A web server's primary job is to store and serve static content - HTML, CSS, JavaScript files, and images - to clients that request them over HTTP/HTTPS. Option A describes an application server (e.g., Node.js, Django), which handles business logic; web servers like Nginx or…
Question
What is the primary role of a web server in web applications?
Options
- ATo provide backend logic for user requests
- BTo store and deliver content such as HTML, CSS, and JavaScript files
- CTo manage client-side user sessions
- DTo encrypt data transmitted over the network
How the community answered
(27 responses)- A4% (1)
- B74% (20)
- C7% (2)
- D15% (4)
Explanation
A web server's primary job is to store and serve static content - HTML, CSS, JavaScript files, and images - to clients that request them over HTTP/HTTPS. Option A describes an application server (e.g., Node.js, Django), which handles business logic; web servers like Nginx or Apache can forward dynamic requests to these but don't process them directly. Option C is incorrect because session management is handled by application logic or dedicated session stores (like Redis), not the web server itself. Option D describes a function of TLS/SSL protocols and certificate authorities, not the web server's core role (though a web server can terminate TLS, that's a secondary capability, not its primary purpose).
Memory tip: Think of a web server as a file librarian - it receives a request for a specific resource and hands it back. When the request needs thinking (logic, database calls), the librarian passes it to a specialist (app server).
Community Discussion
No community discussion yet for this question.