All fields

“Routing & Middleware” in Information Technology

23 questions across 4 technologies.

Information Technology

23 questions in 4 technologies

#QuestionTechnologyTopicLevel
1What is routing in a PHP web application, and how does a router determine which piece of code should handle a specific incoming request? PHP › Routing & MiddlewarePHPRouting & MiddlewareBeginner
2What is middleware in the context of a web application, and how does it let you run logic before or after a request is handled by its intended route? PHP › Routing & MiddlewarePHPRouting & MiddlewareBeginner
3How does a middleware pipeline execute multiple middleware in sequence, and how does the concept of calling the next middleware let each one decide whether to continue processing the request? PHP › Routing & MiddlewarePHPRouting & MiddlewareIntermediate
4How can route groups let you apply shared configuration, such as a common URL prefix or a set of middleware, to several related routes at once? PHP › Routing & MiddlewarePHPRouting & MiddlewareIntermediate
5How does middleware priority and ordering affect application behavior when multiple middleware, such as authentication and rate limiting, are applied to the same route together? PHP › Routing & MiddlewarePHPRouting & MiddlewareAdvanced
6How can a custom routing system be designed to support efficient route matching performance even as an application grows to have hundreds or thousands of defined routes? PHP › Routing & MiddlewarePHPRouting & MiddlewareAdvanced
7How do route parameters and route constraints let you capture dynamic segments of a URL while also restricting what values are actually considered a valid match? PHP › Routing & MiddlewarePHPRouting & MiddlewareIntermediate
8How does UseRouting and endpoint routing (via MapControllers, MapGet, etc.) fit into the middleware pipeline conceptually? .NET › ASP.NET Core Middleware & Request Pipeline.NETASP.NET Core Middleware & Request PipelineAdvanced
9What is middleware in Next.js, and when does it run? Next.js › MiddlewareNext.jsMiddlewareBeginner
10How do you limit which routes your middleware actually applies to? Next.js › MiddlewareNext.jsMiddlewareBeginner
11Why must UseCors be positioned after UseRouting but before UseAuthorization in the ASP.NET Core middleware pipeline? .NET › CORS & Cross-Origin Resource Sharing.NETCORS & Cross-Origin Resource SharingIntermediate
12Where must UseCors be positioned in the middleware pipeline relative to UseRouting and UseAuthorization, and why does this order matter? ASP.NET Core › CORS (Cross-Origin Resource Sharing)ASP.NET CoreCORS (Cross-Origin Resource Sharing)Intermediate
13How does Symfony's routing system let you map URLs to controller actions, and what are the different ways routes can be defined? PHP › Symfony Framework EssentialsPHPSymfony Framework EssentialsBeginner
14How does routing work in Laravel, and how do you define routes that map incoming URLs to specific controller actions? PHP › Laravel Framework EssentialsPHPLaravel Framework EssentialsIntermediate
15How does Laravel's middleware system let you filter and process HTTP requests before they reach your application's route handlers, and how do you create custom middleware? PHP › Laravel Framework EssentialsPHPLaravel Framework EssentialsAdvanced
16How does Blazor handle routing, and what does the @page directive do? .NET › Blazor (Server & WebAssembly).NETBlazor (Server & WebAssembly)Intermediate
17What is the MVC architectural pattern, and how do the Model, View, and Controller components each play a distinct role in a PHP application? PHP › MVC Architecture in PHPPHPMVC Architecture in PHPBeginner
18What is a RESTful API, and how do standard HTTP methods like GET, POST, PUT, and DELETE map to common data operations? PHP › RESTful API Development with PHPPHPRESTful API Development with PHPBeginner
19How does the $_SERVER superglobal provide useful information about the current request and server environment? PHP › Constants & SuperglobalsPHPConstants & SuperglobalsIntermediate
20How does a typical request flow through an MVC based PHP application, from the initial incoming HTTP request to the final rendered response? PHP › MVC Architecture in PHPPHPMVC Architecture in PHPIntermediate
21How should a well designed RESTful API structure its endpoints and URL naming conventions to remain intuitive and consistent as it grows? PHP › RESTful API Development with PHPPHPRESTful API Development with PHPIntermediate
22What security risks are associated with directly trusting values from superglobals like $_SERVER, and how should applications guard against header spoofing? PHP › Constants & SuperglobalsPHPConstants & SuperglobalsAdvanced
23How should a RESTful API handle versioning as its design evolves over time, and what are the tradeoffs between common approaches like URL based versioning and header based versioning? PHP › RESTful API Development with PHPPHPRESTful API Development with PHPAdvanced