1. What is the main purpose of a content delivery network (CDN) in web architecture?
Explanation: CDNs help distribute content to users more efficiently by caching content closer to the user's location.
Report for correction2. Which design pattern is commonly used for creating objects in a superclass but allowing subclasses to alter the type of objects that will be created?
Explanation: The Factory Pattern creates objects without specifying the exact class of the object that will be created.
Report for correction3. Which component manages the interaction between the user interface and the database in a three-tier architecture?
Explanation: The Business Logic Tier handles the interaction between the user interface and the database in a three-tier architecture.
Report for correction4. Which design pattern promotes the attachment of additional responsibilities to an object dynamically?
Explanation: The Decorator Pattern allows behavior to be added to individual objects dynamically, at runtime.
Report for correction5. Which component is responsible for handling user interactions in the Model-View-Controller (MVC) architecture?
Explanation: In MVC architecture, the controller manages user inputs, processes them, and interacts with both the model and view.
Report for correction6. What does CORS stand for in web development?
Explanation: CORS is a mechanism that allows resources on a web page to be requested from another domain outside the domain from which the resource originated.
Report for correction7. What role does a load balancer play in web architecture?
Explanation: A load balancer distributes incoming network traffic across multiple servers, optimizing resource utilization and preventing overloading of a single server.
Report for correction8. Which design pattern focuses on the interaction between objects without explicitly exposing their structure?
Explanation:
Report for correction9. Which design pattern separates the user interface from the data model in web applications?
Explanation: The Model-View-Controller pattern separates the user interface from the data model, promoting separation of concerns.
Report for correction10. What is the main benefit of using a stateless communication protocol like HTTP in web applications?
Explanation: Stateless protocols like HTTP enable better scalability because they do not require the server to store session information.
Report for correction11. Which architecture separates the front-end and back-end of an application, allowing them to be developed independently?
Explanation: Microservices architecture separates the front-end and back-end into independent services that can be developed and deployed separately.
Report for correction12. Which type of caching stores a copy of the entire response to a client's request?
Explanation: Page caching stores a copy of the entire response to a client's request, enhancing the speed of subsequent requests for the same content.
Report for correction13. Which type of database is more suitable for handling complex queries and relationships in a web application?
Explanation: Relational databases are structured to handle complex queries and relationships using SQL.
Report for correction14. What role does a reverse proxy play in web application architecture?
Explanation: A reverse proxy sits in front of servers and handles client requests, distributing them to the appropriate backend servers.
Report for correction15. Which design pattern is used to encapsulate requests or operations as objects, allowing parameterization of clients with queues, requests, and operations?
Explanation: The Command Pattern turns requests into objects, allowing parameterization of clients with queues, requests, and operations.
Report for correction16. What does REST stand for in the context of web services?
Explanation: REST is an architectural style that uses a stateless protocol (like HTTP) for communication.
Report for correction17. What is the primary advantage of using a single-page application (SPA) in web development?
Explanation: SPAs provide a seamless and smooth user experience by dynamically updating content without reloading the entire page.
Report for correction18. Which authentication method utilizes tokens to provide access to web resources?
Explanation: OAuth allows access to web resources without sharing user credentials, using tokens instead.
Report for correction19. Which authentication method verifies a user's identity and credentials through a trusted third party?
Explanation: SAML (Security Assertion Markup Language) verifies a user's identity and credentials through a trusted third party.
Report for correction20. Which architecture allows services to be deployed without the need to manage the underlying infrastructure?
Explanation: Serverless architecture allows services to be deployed without the need to manage the underlying infrastructure, focusing on executing code in response to events.
Report for correction21. Which protocol is primarily used for securely transmitting data over the web?
Explanation: HTTPS (Hypertext Transfer Protocol Secure) encrypts and securely transmits data over the web.
Report for correction22. What is Web Application Architecture?
Explanation: Web Application Architecture defines the way web applications interact and the structure behind their functionalities.
Report for correction23. Which architectural style emphasizes separating the presentation, data, and logic layers in web applications?
Explanation: Three-Tier Architecture separates the presentation, data, and logic layers into distinct tiers, facilitating modularity and maintenance.
Report for correction24. In a microservices architecture, what is the primary focus of microservices?
Explanation: Microservices are designed to be small, independent services focused on specific functionalities, enabling scalability and autonomy.
Report for correction25. Which protocol is commonly used for real-time bidirectional event-based communication between clients and servers?
Explanation: WebSockets enable real-time bidirectional communication between clients and servers over a single, long-lived connection.
Report for correction