All fields

“Middleware” in Information Technology

191 questions across 9 technologies.

Information Technology

191 questions in 9 technologies

#QuestionTechnologyTopicLevel
1What is middleware in Next.js, and when does it run? Next.js › MiddlewareNext.jsMiddlewareBeginner
2How do you limit which routes your middleware actually applies to? Next.js › MiddlewareNext.jsMiddlewareBeginner
3How would you use middleware to redirect users based on their location or device type? Next.js › MiddlewareNext.jsMiddlewareIntermediate
4How do you rewrite a request to a different path using middleware without changing the URL the user sees? Next.js › MiddlewareNext.jsMiddlewareIntermediate
5What performance considerations should you keep in mind when writing middleware, since it runs on every matched request? Next.js › MiddlewareNext.jsMiddlewareAdvanced
6What is middleware in ASP.NET Core, and how does it form the request pipeline? .NET › ASP.NET Core Middleware & Request Pipeline.NETASP.NET Core Middleware & Request PipelineBeginner
7How do you register built-in middleware for serving static files in an ASP.NET Core application? .NET › ASP.NET Core Middleware & Request Pipeline.NETASP.NET Core Middleware & Request PipelineBeginner
8What is the purpose of global exception handling middleware in an ASP.NET Core application? .NET › Global Exception Handling & Middleware.NETGlobal Exception Handling & MiddlewareBeginner
9What happens by default in ASP.NET Core if you don't configure any global exception handling middleware at all? .NET › Global Exception Handling & Middleware.NETGlobal Exception Handling & MiddlewareBeginner
10Why does the order in which middleware is registered matter so much in ASP.NET Core? .NET › ASP.NET Core Middleware & Request Pipeline.NETASP.NET Core Middleware & Request PipelineIntermediate
11What's the difference between app.Use, app.Run, and app.Map in configuring the middleware pipeline? .NET › ASP.NET Core Middleware & Request Pipeline.NETASP.NET Core Middleware & Request PipelineIntermediate
12How does short-circuiting work in middleware, and when would you deliberately not call next()? .NET › ASP.NET Core Middleware & Request Pipeline.NETASP.NET Core Middleware & Request PipelineIntermediate
13What is the purpose of UseExceptionHandler and UseDeveloperExceptionPage middleware, and how should they differ between environments? .NET › ASP.NET Core Middleware & Request Pipeline.NETASP.NET Core Middleware & Request PipelineIntermediate
14What is middleware in ASP.NET Core, and how does the order in which it's registered affect request handling? .NET › ASP.NET Core Middleware & Request Pipeline.NETASP.NET Core Middleware & Request PipelineIntermediate
15What is the purpose of the express.static() built-in middleware, and how would you use it to serve a folder of static assets? Node.js › Express & MiddlewareNode.jsExpress & MiddlewareBeginner
16What 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
17How do you write a custom middleware component as a reusable class instead of an inline lambda? .NET › ASP.NET Core Middleware & Request Pipeline.NETASP.NET Core Middleware & Request PipelineIntermediate
18How do you conditionally apply middleware only to certain requests using UseWhen or MapWhen? .NET › ASP.NET Core Middleware & Request Pipeline.NETASP.NET Core Middleware & Request PipelineIntermediate
19How does the HttpContext object serve as the shared state carrier through the middleware pipeline? .NET › ASP.NET Core Middleware & Request Pipeline.NETASP.NET Core Middleware & Request PipelineIntermediate
20What is the difference between handling exceptions with middleware versus using try/catch blocks directly in controller actions? .NET › Global Exception Handling & Middleware.NETGlobal Exception Handling & MiddlewareIntermediate
21What is middleware in Express, and what is the significance of the order in which middleware is registered? Node.js › Express & MiddlewareNode.jsExpress & MiddlewareIntermediate
22What is the difference between application-level, router-level, and route-specific middleware in Express? Node.js › Express & MiddlewareNode.jsExpress & MiddlewareIntermediate
23What does the express.json() and express.urlencoded() built-in middleware do, and why must it be registered before routes that need to read req.body? Node.js › Express & MiddlewareNode.jsExpress & MiddlewareIntermediate
24What is the purpose of the helmet middleware package for an Express application, and what specific security headers does it set? Node.js › Express & MiddlewareNode.jsExpress & MiddlewareIntermediate
25What is CORS middleware in Express, and how does the cors package simplify configuring Cross-Origin Resource Sharing? Node.js › Express & MiddlewareNode.jsExpress & MiddlewareIntermediate
26What is Middleware in .NET Core? How does the request pipeline work? .NET Core › Middleware & Request Pipeline.NET CoreMiddleware & Request PipelineIntermediate
27How 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
28How 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
29How do you inject scoped (per-request) services into middleware, given that middleware classes are constructed once at app startup? .NET › ASP.NET Core Middleware & Request Pipeline.NETASP.NET Core Middleware & Request PipelineAdvanced
30How 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
31How do minimal API endpoint filters (IEndpointFilter) compare to traditional middleware for cross-cutting logic? .NET › ASP.NET Core Middleware & Request Pipeline.NETASP.NET Core Middleware & Request PipelineAdvanced
32How does the middleware pipeline interact with asynchronous streaming responses, and what precautions are needed? .NET › ASP.NET Core Middleware & Request Pipeline.NETASP.NET Core Middleware & Request PipelineAdvanced
33What is the recommended standard order for common middleware in a typical ASP.NET Core Web API pipeline, and why? .NET › ASP.NET Core Middleware & Request Pipeline.NETASP.NET Core Middleware & Request PipelineAdvanced
34How would you implement custom middleware to catch and log unhandled exceptions before they reach the exception handler, adding request-specific context? .NET › Global Exception Handling & Middleware.NETGlobal Exception Handling & MiddlewareAdvanced
35How does exception handling middleware interact with model validation errors in ASP.NET Core, and how do they typically produce different error response paths? .NET › Global Exception Handling & Middleware.NETGlobal Exception Handling & MiddlewareAdvanced
36How would you design exception handling middleware to support internationalized (localized) error messages returned to clients in different languages? .NET › Global Exception Handling & Middleware.NETGlobal Exception Handling & MiddlewareAdvanced
37How do you write custom Express middleware that needs to perform asynchronous work, like checking a value against a database, before calling next()? Node.js › Express & MiddlewareNode.jsExpress & MiddlewareAdvanced
38How would you implement request validation middleware in Express using a schema-validation library like Zod or Joi? Node.js › Express & MiddlewareNode.jsExpress & MiddlewareAdvanced
39How would you implement a request-logging middleware in Express that captures method, path, status code, and response time for every request? Node.js › Express & MiddlewareNode.jsExpress & MiddlewareAdvanced
40How would you implement conditional middleware in Express that only applies to certain requests based on a runtime condition? Node.js › Express & MiddlewareNode.jsExpress & MiddlewareAdvanced
41How would you implement a middleware that adds a correlation/request ID to every incoming request for tracing purposes across a distributed system? Node.js › Express & MiddlewareNode.jsExpress & MiddlewareAdvanced
42How would you implement a global request timeout middleware in Express to prevent a slow request from hanging indefinitely? Node.js › Express & MiddlewareNode.jsExpress & MiddlewareAdvanced
43How 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
44What is the purpose of global exception handling middleware in an ASP.NET Core application? ASP.NET Core › Error HandlingASP.NET CoreError HandlingBeginner
45What is multipart/form-data, and why does a Node.js server need special middleware (like multer) to handle file uploads? Node.js › File Uploads & Media ProcessingNode.jsFile Uploads & Media ProcessingBeginner
46What is response caching middleware in ASP.NET Core, and how does it differ from application-level data caching? .NET › Caching (In-Memory, Distributed & Redis).NETCaching (In-Memory, Distributed & Redis)Intermediate
47Why 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
48What is the purpose of the authentication middleware's position in the pipeline, and why must UseAuthentication come before UseAuthorization? ASP.NET Core › AuthenticationASP.NET CoreAuthenticationIntermediate
49How does the newer Output Caching middleware (introduced in .NET 7) differ from Response Caching middleware? ASP.NET Core › CachingASP.NET CoreCachingIntermediate
50Where 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
51What is endpoint metadata, and how do attributes like [Authorize] and custom metadata attach to a specific route for later inspection by middleware? ASP.NET Core › Endpoint Metadata, Route Constraints & TemplatesASP.NET CoreEndpoint Metadata, Route Constraints & TemplatesIntermediate
52What happens by default in ASP.NET Core if you don't configure any global exception handling middleware at all? ASP.NET Core › Error HandlingASP.NET CoreError HandlingIntermediate
53How would you exclude health check endpoints from other cross-cutting middleware like authentication, logging, or rate limiting that shouldn't apply to frequent automated health polling? ASP.NET Core › Health ChecksASP.NET CoreHealth ChecksIntermediate
54What is the Middleware (Chain of Responsibility) pattern as implemented by Express, and how does the 'next()' function drive it? Node.js › Architecture & Design PatternsNode.jsArchitecture & Design PatternsIntermediate
55What is Role-Based Access Control (RBAC), and how would you implement it as Express middleware? Node.js › Authentication & AuthorizationNode.jsAuthentication & AuthorizationIntermediate
56How can you use middleware to protect multiple routes at once for authentication? Next.js › Authentication & Authorization in Next.jsNext.jsAuthentication & Authorization in Next.jsIntermediate
57How can middleware help automatically detect a visitor's preferred language and redirect them accordingly? Next.js › Internationalization (i18n) in Next.jsNext.jsInternationalization (i18n) in Next.jsIntermediate
58How does gRPC support interceptors for cross-cutting concerns like authentication, logging, and retries, similar to middleware in a REST pipeline? .NET › gRPC Services.NETgRPC ServicesAdvanced
59How does the AuthorizationMiddlewareResultHandler let you customize the response returned when authorization fails, beyond the default 401/403? ASP.NET Core › AuthorizationASP.NET CoreAuthorizationAdvanced
60What is response caching middleware, and how does it differ from application-level data caching? ASP.NET Core › CachingASP.NET CoreCachingAdvanced
61How does IExceptionFilter differ from global exception handling middleware, and when would you choose one over the other? ASP.NET Core › FiltersASP.NET CoreFiltersAdvanced
62What are gRPC interceptors, and how do they compare to ASP.NET Core middleware or MVC filters for implementing cross-cutting concerns? ASP.NET Core › gRPC ServicesASP.NET CoregRPC ServicesAdvanced
63How would you use the Chain of Responsibility pattern to implement a request-processing pipeline (such as middleware-style validation/authentication/logging), and how does this relate conceptually to servlet filters or web framework middleware? Java › Design Patterns in JavaJavaDesign Patterns in JavaAdvanced
64What is a centralized error-handling middleware pattern in Express, and what advantages does it provide over handling errors in each individual route? Node.js › Error HandlingNode.jsError HandlingAdvanced
65How 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
66What is the ASP.NET Core Health Checks middleware, and what problem does it solve? ASP.NET Core › Health ChecksASP.NET CoreHealth ChecksBeginner
67What HTTP status code does the health check middleware return by default for each status (Healthy, Degraded, Unhealthy)? ASP.NET Core › Health ChecksASP.NET CoreHealth ChecksBeginner
68How does the UseHttpsRedirection() middleware determine which port to redirect to, and how do you explicitly configure it when the HTTPS port isn't on the default 443? ASP.NET Core › HTTPS, Certificates & Transport SecurityASP.NET CoreHTTPS, Certificates & Transport SecurityIntermediate
69How do middleware, such as Redux Thunk, help handle asynchronous operations like API calls in Redux? React › State Management Libraries (Redux, Zustand & Recoil)ReactState Management Libraries (Redux, Zustand & Recoil)Intermediate
70How do you specify which runtime a specific route or middleware should use in Next.js? Next.js › Edge Runtime vs Node.js RuntimeNext.jsEdge Runtime vs Node.js RuntimeIntermediate
71How would you design a robust global exception handling middleware in ASP.NET Core to convert unhandled exceptions into consistent API error responses? C# › Exception HandlingC#Exception HandlingAdvanced
72How does token validation work under the hood when the JwtBearer middleware receives a request, and what checks does it perform? .NET › Authentication & Authorization (Identity, JWT, OAuth).NETAuthentication & Authorization (Identity, JWT, OAuth)Advanced
73How do you write custom middleware or an endpoint filter that reads endpoint metadata to conditionally alter its behavior per-route? ASP.NET Core › Endpoint Metadata, Route Constraints & TemplatesASP.NET CoreEndpoint Metadata, Route Constraints & TemplatesAdvanced
74How does exception handling middleware interact with model validation errors, and why do they typically produce two entirely separate error response paths? ASP.NET Core › Error HandlingASP.NET CoreError HandlingAdvanced
75How would you design a filter-based rate limiting solution before ASP.NET Core 7's built-in rate limiting middleware existed, and why is the built-in middleware now generally preferred? ASP.NET Core › FiltersASP.NET CoreFiltersAdvanced
76How would you implement a health check specifically for a gRPC service, distinct from the standard ASP.NET Core health check middleware designed for REST endpoints? ASP.NET Core › gRPC ServicesASP.NET CoregRPC ServicesAdvanced
77How do you handle exceptions specifically within minimal API endpoints, given they don't use the traditional MVC exception filter pipeline? .NET › Global Exception Handling & Middleware.NETGlobal Exception Handling & MiddlewareIntermediate
78How do you write an integration test verifying that your global exception handler produces the correct error response shape? .NET › Global Exception Handling & Middleware.NETGlobal Exception Handling & MiddlewareIntermediate
79How do you handle exceptions that occur during response streaming, after the response has already partially started sending to the client? .NET › Global Exception Handling & Middleware.NETGlobal Exception Handling & MiddlewareAdvanced
80What is Express.js, and what problem does it solve compared to using Node.js's raw http module directly? Node.js › Express & MiddlewareNode.jsExpress & MiddlewareBeginner
81What 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
82How does the IExceptionHandler interface (introduced in .NET 8) provide a more structured alternative to the UseExceptionHandler lambda approach? .NET › Global Exception Handling & Middleware.NETGlobal Exception Handling & MiddlewareIntermediate
83How do you map different exception types to different HTTP status codes in a global exception handler? .NET › Global Exception Handling & Middleware.NETGlobal Exception Handling & MiddlewareIntermediate
84How should a global exception handler differentiate between exceptions that should return specific client-facing details versus exceptions that should always show a generic message? .NET › Global Exception Handling & Middleware.NETGlobal Exception Handling & MiddlewareIntermediate
85What is the role of the [ApiController] attribute in automatically handling certain error scenarios without explicit exception handling code? .NET › Global Exception Handling & Middleware.NETGlobal Exception Handling & MiddlewareIntermediate
86What are Minimal APIs in ASP.NET Core, and when would you choose them over traditional MVC controllers? .NET › ASP.NET Core Middleware & Request Pipeline.NETASP.NET Core Middleware & Request PipelineIntermediate
87What is the difference between res.send(), res.json(), and res.end() in Express, and when should each be used? Node.js › Express & MiddlewareNode.jsExpress & MiddlewareIntermediate
88How 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
89Why is it dangerous to capture and store an HttpContext reference in a singleton-scoped service, and what should you use instead? .NET › ASP.NET Core Middleware & Request Pipeline.NETASP.NET Core Middleware & Request PipelineAdvanced
90What is ProblemDetails (RFC 7807/9457), and how does ASP.NET Core support it for standardized error responses? .NET › Global Exception Handling & Middleware.NETGlobal Exception Handling & MiddlewareAdvanced
91What information should be excluded from error responses in production to avoid leaking sensitive implementation details? .NET › Global Exception Handling & Middleware.NETGlobal Exception Handling & MiddlewareAdvanced
92How would you structure a large Express application using the Router to organize routes into feature-based or resource-based modules? Node.js › Express & MiddlewareNode.jsExpress & MiddlewareAdvanced
93How 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
94What is the difference between authentication and authorization in ASP.NET Core? .NET › Authentication & Authorization (Identity, JWT, OAuth).NETAuthentication & Authorization (Identity, JWT, OAuth)Beginner
95What is Blazor, and what are the two primary hosting models (Server and WebAssembly)? .NET › Blazor (Server & WebAssembly).NETBlazor (Server & WebAssembly)Beginner
96What is CORS, and why do browsers enforce it? .NET › CORS & Cross-Origin Resource Sharing.NETCORS & Cross-Origin Resource SharingBeginner
97What is dependency injection, and how does ASP.NET Core's built-in DI container support it? .NET › Dependency Injection.NETDependency InjectionBeginner
98What is gRPC, and how does it differ from a traditional REST/JSON API? .NET › gRPC Services.NETgRPC ServicesBeginner
99What is authentication in ASP.NET Core, and how does the framework represent an authenticated user? ASP.NET Core › AuthenticationASP.NET CoreAuthenticationBeginner
100How does Blazor integrate with ASP.NET Core's hosting model, and what are the two primary interactive render modes? ASP.NET Core › Blazor Integration with ASP.NET CoreASP.NET CoreBlazor Integration with ASP.NET CoreBeginner
101What is CORS, and why does an ASP.NET Core API need to explicitly configure it for browser-based clients on a different origin? ASP.NET Core › CORS (Cross-Origin Resource Sharing)ASP.NET CoreCORS (Cross-Origin Resource Sharing)Beginner
102What are MVC filters in ASP.NET Core, and what are the main filter types in the pipeline (authorization, resource, action, exception, result)? ASP.NET Core › FiltersASP.NET CoreFiltersBeginner
103How would you create a basic HTTP server in Node.js using only the built-in node:http module, without any framework? Node.js › HTTP & Web ServersNode.jsHTTP & Web ServersBeginner
104How would you create a basic HTTP server using only Node's built-in node:http module, without a framework like Express? Node.js › HTTP & HTTPS ModulesNode.jsHTTP & HTTPS ModulesBeginner
105What is the difference between authentication and authorization in a Next.js application? Next.js › Authentication & Authorization in Next.jsNext.jsAuthentication & Authorization in Next.jsBeginner
106What is the difference between the Edge Runtime and the Node.js Runtime in Next.js? Next.js › Edge Runtime vs Node.js RuntimeNext.jsEdge Runtime vs Node.js RuntimeBeginner
107Why is the Edge Runtime generally faster for responding to users around the world? Next.js › Edge Runtime vs Node.js RuntimeNext.jsEdge Runtime vs Node.js RuntimeBeginner
108What is a rewrite in Next.js, and how is it different from a redirect? Next.js › Redirects & Rewrites ConfigurationNext.jsRedirects & Rewrites ConfigurationBeginner
109What 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
110What 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
111How 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
112What are the main strategies for versioning an ASP.NET Core API (URL, query string, header, media type)? .NET › API Versioning.NETAPI VersioningIntermediate
113How do you implement URL-based API versioning using the Asp.Versioning.Mvc package in ASP.NET Core? .NET › API Versioning.NETAPI VersioningIntermediate
114How do you version an API's OpenAPI/Swagger documentation to show separate docs per version? .NET › API Versioning.NETAPI VersioningIntermediate
115What HTTP status code and response should an API return when a client requests a version that no longer exists or was never supported? .NET › API Versioning.NETAPI VersioningIntermediate
116How does JWT (JSON Web Token) authentication work at a high level in ASP.NET Core? .NET › Authentication & Authorization (Identity, JWT, OAuth).NETAuthentication & Authorization (Identity, JWT, OAuth)Intermediate
117What are the security risks of storing JWTs in browser localStorage versus HttpOnly cookies? .NET › Authentication & Authorization (Identity, JWT, OAuth).NETAuthentication & Authorization (Identity, JWT, OAuth)Intermediate
118How do you call JavaScript from C# code in Blazor (JS interop), and when is it necessary? .NET › Blazor (Server & WebAssembly).NETBlazor (Server & WebAssembly)Intermediate
119How does Blazor handle routing, and what does the @page directive do? .NET › Blazor (Server & WebAssembly).NETBlazor (Server & WebAssembly)Intermediate
120What HTTP caching headers (Cache-Control, ETag) can a client and CDN use, and how do they relate to server-side caching strategies? .NET › Caching (In-Memory, Distributed & Redis).NETCaching (In-Memory, Distributed & Redis)Intermediate
121What are the risks of caching sensitive or user-specific data, and how do you avoid cache poisoning across users? .NET › Caching (In-Memory, Distributed & Redis).NETCaching (In-Memory, Distributed & Redis)Intermediate
122How do you validate configuration options at application startup to fail fast on misconfiguration? .NET › Configuration & Options.NETConfiguration & OptionsIntermediate
123How do you configure a CORS policy in ASP.NET Core to allow requests from specific origins? .NET › CORS & Cross-Origin Resource Sharing.NETCORS & Cross-Origin Resource SharingIntermediate
124What is the difference between CORS and CSRF (Cross-Site Request Forgery), and how does CORS relate to (but not fully prevent) CSRF? .NET › CORS & Cross-Origin Resource Sharing.NETCORS & Cross-Origin Resource SharingIntermediate
125How do you troubleshoot a CORS error reported in browser developer tools, and what does the error message typically indicate? .NET › CORS & Cross-Origin Resource Sharing.NETCORS & Cross-Origin Resource SharingIntermediate
126How do you register multiple implementations of the same interface, and how do you resolve all of them together? .NET › Dependency Injection.NETDependency InjectionIntermediate
127What is a memory dump, and how do you capture and analyze one for a .NET application experiencing high memory usage or a crash? .NET › Diagnostics & Performance.NETDiagnostics & PerformanceIntermediate
128How do you configure a .NET application inside a container to listen on the correct port, and what does ASPNETCORE_URLS control? .NET › Docker & Containerization.NETDocker & ContainerizationIntermediate
129What is the difference between SaveChanges() and SaveChangesAsync(), and why does it matter for a web application's scalability? .NET › Entity Framework Core & Data Access.NETEntity Framework Core & Data AccessIntermediate
130How do you define a gRPC service contract using Protocol Buffers (.proto files), and how does code generation work in a .NET project? .NET › gRPC Services.NETgRPC ServicesIntermediate
131How do you implement a gRPC server method in ASP.NET Core, and how does it integrate with the standard hosting model? .NET › gRPC Services.NETgRPC ServicesIntermediate
132What is gRPC-Web, and why is it needed for calling gRPC services directly from a browser-based JavaScript client? .NET › gRPC Services.NETgRPC ServicesIntermediate
133How do you apply a global authorization policy requiring authentication by default for every endpoint, with explicit opt-out for public ones? ASP.NET Core › AuthorizationASP.NET CoreAuthorizationIntermediate
134What is the purpose of the [AllowAnonymous] attribute, and how does it interact with a controller-level [Authorize] attribute? ASP.NET Core › AuthorizationASP.NET CoreAuthorizationIntermediate
135How does exception handling work differently for Blazor components compared to a typical MVC controller action or minimal API endpoint? ASP.NET Core › Blazor Integration with ASP.NET CoreASP.NET CoreBlazor Integration with ASP.NET CoreIntermediate
136What is the risk of caching sensitive or user-specific data with an incorrectly scoped cache key, and how do you prevent cross-user data leakage? ASP.NET Core › CachingASP.NET CoreCachingIntermediate
137What security risk does dynamically reflecting the Origin header back as Access-Control-Allow-Origin introduce, and why is it a dangerous anti-pattern? ASP.NET Core › CORS (Cross-Origin Resource Sharing)ASP.NET CoreCORS (Cross-Origin Resource Sharing)Intermediate
138How would you troubleshoot a CORS error in browser developer tools, and what's the most common root cause? ASP.NET Core › CORS (Cross-Origin Resource Sharing)ASP.NET CoreCORS (Cross-Origin Resource Sharing)Intermediate
139What does GetService<T>() return compared to GetRequiredService<T>() when a service isn't registered, and which should application code generally prefer? ASP.NET Core › Dependency InjectionASP.NET CoreDependency InjectionIntermediate
140How does the IExceptionHandler interface (introduced in .NET 8) provide a more structured alternative to the UseExceptionHandler lambda approach? ASP.NET Core › Error HandlingASP.NET CoreError HandlingIntermediate
141How do you map different custom exception types to different HTTP status codes in a global exception handler? ASP.NET Core › Error HandlingASP.NET CoreError HandlingIntermediate
142How should a global exception handler differentiate between exceptions meant for client-facing details versus exceptions that should always show a generic message? ASP.NET Core › Error HandlingASP.NET CoreError HandlingIntermediate
143What is an IResourceFilter, and how does its position in the pipeline (before model binding) make it useful for short-circuiting expensive work? ASP.NET Core › FiltersASP.NET CoreFiltersIntermediate
144How can filters access route values, query string parameters, or the raw HttpContext during execution? ASP.NET Core › FiltersASP.NET CoreFiltersIntermediate
145How do you handle and propagate errors in gRPC, given it doesn't use standard HTTP status codes the way REST does? ASP.NET Core › gRPC ServicesASP.NET CoregRPC ServicesIntermediate
146What is a common anti-pattern with catching exceptions too broadly (catch (Exception e) or worse, catch (Throwable t)), and why is it generally discouraged? Java › ExceptionsJavaExceptionsIntermediate
147What is Passport.js, and how do its 'strategies' provide a consistent authentication abstraction across different methods? Node.js › Authentication & AuthorizationNode.jsAuthentication & AuthorizationIntermediate
148What is CSRF (Cross-Site Request Forgery), and how do you protect a Node.js session-based application against it? Node.js › Authentication & AuthorizationNode.jsAuthentication & AuthorizationIntermediate
149Why doesn't Express automatically catch errors thrown inside an async route handler in versions prior to Express 5, and how do you work around this? Node.js › Error HandlingNode.jsError HandlingIntermediate
150How would you implement a global 'not found' (404) handler in Express for any route that doesn't match a defined endpoint? Node.js › Error HandlingNode.jsError HandlingIntermediate
151How would you validate and restrict uploaded file types and sizes using multer to prevent malicious or oversized uploads? Node.js › File Uploads & Media ProcessingNode.jsFile Uploads & Media ProcessingIntermediate
152What is the difference between upload.single(), upload.array(), and upload.fields() in multer? Node.js › File Uploads & Media ProcessingNode.jsFile Uploads & Media ProcessingIntermediate
153What is the purpose of the HTTP OPTIONS method, and how does it relate to CORS preflight requests? Node.js › HTTP & Web ServersNode.jsHTTP & Web ServersIntermediate
154How do JWTs, OAuth, and Passport.js fit together in a typical Node.js authentication architecture? Node.js › Authentication & Authorization (JWT, OAuth, Passport)Node.jsAuthentication & Authorization (JWT, OAuth, Passport)Intermediate
155How would you protect a page in the App Router so only logged in users can access it? Next.js › Authentication & Authorization in Next.jsNext.jsAuthentication & Authorization in Next.jsIntermediate
156How would you conditionally redirect users based on something dynamic, like whether they are logged in, rather than a fixed rule in next.config.js? Next.js › Redirects & Rewrites ConfigurationNext.jsRedirects & Rewrites ConfigurationIntermediate
157How do you set security related HTTP headers, such as Content Security Policy, in a Next.js application? Next.js › Security Best Practices in Next.jsNext.jsSecurity Best Practices in Next.jsIntermediate
158What is Dependency Injection (DI) in .NET Core? How is it implemented? .NET Core › Dependency Injection in .NET Core.NET CoreDependency Injection in .NET CoreIntermediate
159What is the difference between Kestrel and IIS? .NET Core › Kestrel vs IIS.NET CoreKestrel vs IISIntermediate
160What are Filters in ASP.NET Core MVC? .NET Core › MVC Filters.NET CoreMVC FiltersIntermediate
161How does the $_SERVER superglobal provide useful information about the current request and server environment? PHP › Constants & SuperglobalsPHPConstants & SuperglobalsIntermediate
162How 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
163How 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
164How 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
165How can you version a single controller action to support multiple API versions without duplicating the entire controller class? .NET › API Versioning.NETAPI VersioningAdvanced
166What is the 'tolerant reader' pattern, and how does it reduce the need for frequent API versioning? .NET › API Versioning.NETAPI VersioningAdvanced
167How does ASP.NET Core support multiple authentication schemes simultaneously (e.g., cookies for a web UI and JWT for an API in the same application)? .NET › Authentication & Authorization (Identity, JWT, OAuth).NETAuthentication & Authorization (Identity, JWT, OAuth)Advanced
168What are common patterns for implementing a producer-consumer background processing pipeline using Channel<T> with a BackgroundService? .NET › Background Services.NETBackground ServicesAdvanced
169How does two-way data binding work with @bind in Blazor, and how can you customize the triggering event? .NET › Blazor (Server & WebAssembly).NETBlazor (Server & WebAssembly)Advanced
170How does Blazor's render mode system (Static, Interactive Server, Interactive WebAssembly, Interactive Auto) work in .NET 8+'s unified Blazor model? .NET › Blazor (Server & WebAssembly).NETBlazor (Server & WebAssembly)Advanced
171What is prerendering in Blazor, and what problem does it solve for initial page load experience? .NET › Blazor (Server & WebAssembly).NETBlazor (Server & WebAssembly)Advanced
172What is a CORS preflight request, and when does the browser send one automatically? .NET › CORS & Cross-Origin Resource Sharing.NETCORS & Cross-Origin Resource SharingAdvanced
173How do you apply different CORS policies to different endpoints or controllers within the same application? .NET › CORS & Cross-Origin Resource Sharing.NETCORS & Cross-Origin Resource SharingAdvanced
174What security risks does an overly permissive CORS policy (like AllowAnyOrigin with credentials attempted, or reflecting the Origin header) introduce? .NET › CORS & Cross-Origin Resource Sharing.NETCORS & Cross-Origin Resource SharingAdvanced
175How does CORS interact with a reverse proxy or API gateway sitting in front of multiple backend microservices? .NET › CORS & Cross-Origin Resource Sharing.NETCORS & Cross-Origin Resource SharingAdvanced
176How do you configure CORS to expose custom response headers to client-side JavaScript using Access-Control-Expose-Headers? .NET › CORS & Cross-Origin Resource Sharing.NETCORS & Cross-Origin Resource SharingAdvanced
177How does gRPC handle errors and status codes, and how does this differ from HTTP status codes in REST? .NET › gRPC Services.NETgRPC ServicesAdvanced
178How does prerendering work when a Blazor component is embedded within a traditional Razor Pages or MVC view, and what is the purpose of Component Tag Helpers? ASP.NET Core › Blazor Integration with ASP.NET CoreASP.NET CoreBlazor Integration with ASP.NET CoreAdvanced
179How would you configure and use output caching or response caching for the static, non-interactive portions of a Blazor application? ASP.NET Core › Blazor Integration with ASP.NET CoreASP.NET CoreBlazor Integration with ASP.NET CoreAdvanced
180How would you cache the results of an expensive, paginated database query while correctly handling different page/filter parameter combinations? ASP.NET Core › CachingASP.NET CoreCachingAdvanced
181How do you validate configuration options at application startup to fail fast on misconfiguration, using ValidateDataAnnotations and ValidateOnStart? ASP.NET Core › Configuration & Options PatternASP.NET CoreConfiguration & Options PatternAdvanced
182How do you write a custom IValidateOptions<T> implementation for validation logic beyond what DataAnnotations attributes can express? ASP.NET Core › Configuration & Options PatternASP.NET CoreConfiguration & Options PatternAdvanced
183How would you configure an API to return Problem Details (RFC 7807) formatted error responses consistently across all content types, not just JSON? ASP.NET Core › Content Negotiation & Output FormattersASP.NET CoreContent Negotiation & Output FormattersAdvanced
184What is a CORS preflight request, and when does the browser automatically send one before the actual request? ASP.NET Core › CORS (Cross-Origin Resource Sharing)ASP.NET CoreCORS (Cross-Origin Resource Sharing)Advanced
185How would you write an integration test verifying that your global exception handler produces the correct error response shape for a specific exception type? ASP.NET Core › Error HandlingASP.NET CoreError HandlingAdvanced
186How would you implement a filter that modifies the action's result based on the outcome, such as wrapping every successful response in a standard envelope? ASP.NET Core › FiltersASP.NET CoreFiltersAdvanced
187How would you design and implement a global, centralized exception-handling strategy for a Java application (such as a top-level handler in main(), or an uncaught exception handler for background threads), ensuring no exception silently crashes the application without being logged? Java › ExceptionsJavaExceptionsAdvanced
188What is a layered (n-tier) architecture in a Node.js/Express application, and what are its typical layers? Node.js › Architecture & Design PatternsNode.jsArchitecture & Design PatternsAdvanced
189How would you optimize a Node.js application's JSON serialization performance for API responses with very large or very frequent payloads? Node.js › Performance Optimization & ProfilingNode.jsPerformance Optimization & ProfilingAdvanced
190What security risks are associated with directly trusting values from superglobals like $_SERVER, and how should applications guard against header spoofing? PHP › Constants & SuperglobalsPHPConstants & SuperglobalsAdvanced
191How 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