Origins, Roles & Protocols of Web and Application Servers Quiz

Q1. A developer is using Apache HTTP Server to serve images and static HTML files, while forwarding requests for dynamic API calls to a separate Node.js application server. What does this architecture illustrate?




Q2. During deployment of a web application, the team separates responsibilities between the web server and the application server. Which of the following is typically handled by the web server (and not by the application server)?




Q3. A team notices that their site is slow because the server opens a new TCP connection for every request (HTML, CSS, images). Which HTTP improvement addressed this by allowing a connection to remain open for multiple requests?




Q4. A developer finds that even with persistent connections, HTTP/1.1 requests often still queue up due to head-of-line blocking. Which protocol feature was introduced to allow multiple concurrent requests over a single connection and avoid this bottleneck?




Q5. A user on a high-latency network finds that establishing new HTTPS connections is slow because of the TCP and TLS handshakes. Which HTTP version reduces this setup latency by using a new transport protocol that combines these handshakes?




Q6. A company deploys their web application across three layers. Clients connect first to an Nginx server, which then forwards requests to a pool of application servers, which in turn query a database. What architecture style does this represent?




Q7. A startup places an Nginx reverse proxy in front of its application servers. Which of the following is a benefit of this approach?




Q8. A company finds its application servers are using high CPU to handle SSL encryption for each request. They want to offload TLS encryption and HTTP compression to another component. What solution should they implement?




Q9. A web application is slow to deliver static assets (images, CSS), and the application servers are overburdened serving these files. What strategy would improve load times and reduce server load?




Q10. An organization uses Nginx as a front-end server that terminates SSL, compresses responses, serves static files, and routes requests to backend services. Why is this architecture beneficial?




Q11. Which of the following statements is a common misconception about web servers versus application servers?




Q12. During an interview, a candidate says: "Our web server handles all the business logic and database calls, and our application server is only used for serving static files." What is the problem with this description?




Q13. Which of these websites would NOT require a separate application server to deliver its content?




Q14. In the 1990s, a web server executes a Perl script to generate dynamic content, passing request data via environment variables to the script and reading back the output. Which standard mechanism is the server using to interface with the external program?




Q15. A team builds a web application using Node.js and Express without a separate web server (like Apache or Nginx). In this setup, which statement is true about how the server operates?




software-architecture