HomeSubjectsUniversityBlogAbout

Web Architecture & Protocols

Topic in Web Development

210 total MCQsShowing 30 with explanations10 Easy10 Medium10 Hard

About This Topic

Web architecture is the structure of clients, servers, networks and protocols that lets browsers request resources and receive responses across the internet. Questions focus heavily on HTTP: methods such as GET, POST, PUT, PATCH and DELETE, idempotency and safety, request and response headers, and status code families, for example 200, 301, 304, 404 and 500. Know how HTTPS adds TLS, what changed in HTTP/2 and HTTP/3, how DNS resolution and TCP handshakes precede a request, and why HTTP is stateless. Architecture-level items cover three-tier and microservice designs, load balancers, reverse proxies, API gateways, caching layers and the CAP theorem.

Below are 30 practice questions from a pool of 210 Web Architecture & Protocols MCQs, one of 17 topics in Web Development. Each shows the correct answer with an explanation; when you are ready, take a timed quiz to test recall under exam conditions.

Practice Questions

Each question below shows the correct answer with a full explanation. Use these to build conceptual understanding before attempting a timed quiz.

Web Architecture & ProtocolsEasy

Q1. What does HTTP stand for?

  1. A.Hyper Text Transport Protocol
  2. B.High Tech Transfer Protocol
  3. C.Hyper Text Transfer Protocol✓ Correct
  4. D.Home Transfer Text Protocol

Explanation

HTTP stands for Hyper Text Transfer Protocol.

Report an error in this question

Web Architecture & ProtocolsEasy

Q2. What is a client in web architecture?

  1. A.The web server that hosts content
  2. B.The database that stores records
  3. C.The network cable carrying signals
  4. D.The device or browser making requests✓ Correct

Explanation

A client (typically a browser) sends requests to a server and displays the response.

Report an error in this question

Web Architecture & ProtocolsEasy

Q3. What is the default port for HTTP?

  1. A.Port 443
  2. B.Port 21
  3. C.Port 8080
  4. D.Port 80✓ Correct

Explanation

Port 80 is the default port for HTTP communication.

Report an error in this question

Web Architecture & ProtocolsEasy

Q4. What does DNS stand for?

  1. A.Dynamic Network Server
  2. B.Data Network Service
  3. C.Digital Naming Standard
  4. D.Domain Name System✓ Correct

Explanation

DNS translates human-readable domain names into IP addresses.

Report an error in this question

Web Architecture & ProtocolsEasy

Q5. Which HTTP method is used to retrieve data from a server?

  1. A.POST
  2. B.DELETE
  3. C.PUT
  4. D.GET✓ Correct

Explanation

The GET method requests data from a resource without modifying it.

Report an error in this question

Web Architecture & ProtocolsEasy

Q6. What is an IP address?

  1. A.A human-readable domain website name
  2. B.A server-side scripting language for web
  3. C.A software application like a web browser
  4. D.A numerical label assigned to each device✓ Correct

Explanation

An IP address is a unique numerical label assigned to each device on a network.

Report an error in this question

Web Architecture & ProtocolsEasy

Q7. What does the status code 200 mean in HTTP?

  1. A.OK (Success)✓ Correct
  2. B.Not Found Error
  3. C.Redirect Response
  4. D.Internal Server Error

Explanation

HTTP 200 means the request was successful.

Report an error in this question

Web Architecture & ProtocolsEasy

Q8. What is the role of a web server in the client-server model?

  1. A.To store only the user password data
  2. B.To forward requests to other clients
  3. C.To process requests and send responses✓ Correct
  4. D.To display web pages to the end user

Explanation

A web server processes client requests and sends back appropriate responses.

Report an error in this question

Web Architecture & ProtocolsEasy

Q9. Which protocol is used for sending emails?

  1. A.SMTP✓ Correct
  2. B.DNS
  3. C.HTTP
  4. D.FTP

Explanation

SMTP is the standard protocol for sending emails.

Report an error in this question

Web Architecture & ProtocolsEasy

Q10. What is a web API?

  1. A.An interface for applications to communicate✓ Correct
  2. B.A CSS framework for responsive design
  3. C.A relational database management system
  4. D.An HTML element used for page layout

Explanation

A web API allows different software applications to communicate over the web.

Report an error in this question

Web Architecture & ProtocolsMedium

Q11. What is the difference between HTTP and HTTPS?

  1. A.HTTPS delivers content more quickly
  2. B.HTTPS encrypts data using TLS/SSL✓ Correct
  3. C.HTTP provides stronger security features
  4. D.There is no practical difference at all

Explanation

HTTPS adds a layer of security by encrypting data in transit using TLS/SSL.

Report an error in this question

Web Architecture & ProtocolsMedium

Q12. Which HTTP status code indicates a resource was not found?

  1. A.200
  2. B.500
  3. C.404✓ Correct
  4. D.301

Explanation

HTTP 404 means the server could not find the requested resource.

Report an error in this question

Web Architecture & ProtocolsMedium

Q13. What is a RESTful API?

  1. A.An API built solely with the React library
  2. B.An API that always requires authentication
  3. C.An API that exclusively uses GET requests
  4. D.An API that follows REST design constraints✓ Correct

Explanation

A RESTful API follows REST principles: stateless, client-server, uniform interface.

Report an error in this question

Web Architecture & ProtocolsMedium

Q14. What is the purpose of the HTTP POST method?

  1. A.To retrieve existing data from a resource
  2. B.To submit data for processing by the server✓ Correct
  3. C.To delete a specific resource from storage
  4. D.To update only the HTTP request headers

Explanation

POST submits data to the server for processing.

Report an error in this question

Web Architecture & ProtocolsMedium

Q15. What is a proxy server?

  1. A.A specialized type of relational database
  2. B.A redundant backup server for data recovery
  3. C.An intermediary server between client and target✓ Correct
  4. D.A domain name resolution DNS server system

Explanation

A proxy server acts as an intermediary, forwarding requests from clients to servers.

Report an error in this question

Web Architecture & ProtocolsMedium

Q16. What is latency in web architecture?

  1. A.The total download size of a given web page
  2. B.The processing speed of the server CPU
  3. C.The number of concurrent users currently online
  4. D.The delay between a request and a response✓ Correct

Explanation

Latency is the time delay between sending a request and receiving the first byte of the response.

Report an error in this question

Web Architecture & ProtocolsMedium

Q17. Which HTTP header specifies the content type of a response?

  1. A.Cache-Control
  2. B.Content-Type✓ Correct
  3. C.Accept-Type
  4. D.Authorization

Explanation

The Content-Type header tells the client what media type the response body contains.

Report an error in this question

Web Architecture & ProtocolsMedium

Q18. What does a CDN do?

  1. A.Manages relational database connections
  2. B.Compiles source code into machine language
  3. C.Distributes content across global servers✓ Correct
  4. D.Designs web page layouts automatically

Explanation

A CDN caches and serves content from servers closer to the user.

Report an error in this question

Web Architecture & ProtocolsMedium

Q19. What is WebSocket used for?

  1. A.Managing relational database schemas and queries
  2. B.Full-duplex real-time client-server communication✓ Correct
  3. C.Applying visual styles to web page elements
  4. D.Compressing files to reduce transfer size

Explanation

WebSocket provides a persistent, full-duplex communication channel for real-time data exchange.

Report an error in this question

Web Architecture & ProtocolsMedium

Q20. What is the purpose of the HTTP PUT method?

  1. A.To update or replace a resource at a URL✓ Correct
  2. B.To delete an existing resource completely
  3. C.To retrieve existing data from a resource
  4. D.To establish a new connection to a server

Explanation

PUT replaces the entire resource at the given URL with the request payload.

Report an error in this question

Web Architecture & ProtocolsHard

Q21. What is the difference between HTTP/1.1 and HTTP/2?

  1. A.HTTP/2 does not support any form of HTTPS encryption
  2. B.HTTP/1.1 is significantly faster in performance than HTTP/2
  3. C.HTTP/2 supports multiplexing requests over one connection✓ Correct
  4. D.HTTP/2 is text-based while HTTP/1.1 uses binary framing

Explanation

HTTP/2 introduces binary framing, multiplexing, header compression, and server push.

Report an error in this question

Web Architecture & ProtocolsHard

Q22. What is CORS in web architecture?

  1. A.Cross-Origin Resource Sharing, allowing cross-domain requests✓ Correct
  2. B.A NoSQL document-oriented database for storing data
  3. C.A lightweight JavaScript library for DOM manipulation
  4. D.A popular CSS utility-first framework for styling apps

Explanation

CORS allows servers to specify which origins can access their resources.

Report an error in this question

Web Architecture & ProtocolsHard

Q23. What is the purpose of the OPTIONS HTTP method?

  1. A.To retrieve existing data from a server resource
  2. B.To update existing data on the specified server
  3. C.To permanently delete a resource from the server
  4. D.To describe the communication options for a resource✓ Correct

Explanation

OPTIONS is used in preflight requests to determine supported HTTP methods and headers.

Report an error in this question

Web Architecture & ProtocolsHard

Q24. What does the HTTP status code 304 indicate?

  1. A.Bad request due to client error
  2. B.Not modified, use the cached version✓ Correct
  3. C.A permanent redirect to another URL
  4. D.Internal server processing error

Explanation

304 tells the client the resource has not changed, so the cached version can be used.

Report an error in this question

Web Architecture & ProtocolsHard

Q25. What is HTTP/3 based on?

  1. A.FTP protocol
  2. B.TCP protocol
  3. C.WebSocket API
  4. D.UDP via QUIC✓ Correct

Explanation

HTTP/3 uses QUIC, a transport protocol built on UDP.

Report an error in this question

Web Architecture & ProtocolsHard

Q26. What is the Same-Origin Policy?

  1. A.A security measure restricting cross-origin script access✓ Correct
  2. B.A policy requiring all files on a single web server
  3. C.A CSS naming convention for component-scoped styling
  4. D.A database access rule governing read-write permissions

Explanation

The Same-Origin Policy restricts web pages from making requests to a different domain, protocol, or port.

Report an error in this question

Web Architecture & ProtocolsHard

Q27. What is a reverse proxy?

  1. A.A client-side mechanism for caching web assets
  2. B.A type of VPN for securing remote connections
  3. C.A proxy system that blocks all incoming traffic
  4. D.A server that forwards client requests to backends✓ Correct

Explanation

A reverse proxy forwards client requests to backend servers while providing load balancing and caching.

Report an error in this question

Web Architecture & ProtocolsHard

Q28. What is content negotiation in HTTP?

  1. A.Negotiating the pricing for a website project
  2. B.The process of agreeing on the response format✓ Correct
  3. C.A handshake protocol for secure connections
  4. D.A type of compression for reducing file sizes

Explanation

Content negotiation uses headers like Accept to agree on the format of the response.

Report an error in this question

Web Architecture & ProtocolsHard

Q29. What is the purpose of an ETag header?

  1. A.To specify the content encoding type
  2. B.To set and manage session cookies
  3. C.To encrypt transmitted data in transit
  4. D.To provide a version identifier for cache✓ Correct

Explanation

An ETag is a unique identifier for a resource version, enabling efficient cache validation.

Report an error in this question

Web Architecture & ProtocolsHard

Q30. What is the difference between stateful and stateless protocols?

  1. A.Stateful protocols are always significantly faster
  2. B.Stateless protocols store all data on the server
  3. C.Stateless protocols do not retain session information✓ Correct
  4. D.Stateful protocols are unable to use any cookies

Explanation

In a stateless protocol like HTTP, each request is independent.

Report an error in this question

Ready to test yourself on Web Architecture & Protocols?

Take a timed quiz drawn from 210+ questions on this topic. No signup required — your progress saves in your browser.

Start Web Architecture & Protocols Quiz