| 1 | What is middleware in ASP.NET Core, and how does it form the request pipeline? .NET › ASP.NET Core Middleware & Request Pipeline | .NET | ASP.NET Core Middleware & Request Pipeline | Beginner |
| 2 | What 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 | .NET | ASP.NET Core Middleware & Request Pipeline | Intermediate |
| 3 | How do you register built-in middleware for serving static files in an ASP.NET Core application? .NET › ASP.NET Core Middleware & Request Pipeline | .NET | ASP.NET Core Middleware & Request Pipeline | Beginner |
| 4 | What 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 | .NET | ASP.NET Core Middleware & Request Pipeline | Advanced |
| 5 | Why does the order in which middleware is registered matter so much in ASP.NET Core? .NET › ASP.NET Core Middleware & Request Pipeline | .NET | ASP.NET Core Middleware & Request Pipeline | Intermediate |
| 6 | What's the difference between app.Use, app.Run, and app.Map in configuring the middleware pipeline? .NET › ASP.NET Core Middleware & Request Pipeline | .NET | ASP.NET Core Middleware & Request Pipeline | Intermediate |
| 7 | How 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 | .NET | ASP.NET Core Middleware & Request Pipeline | Advanced |
| 8 | How do you conditionally apply middleware only to certain requests using UseWhen or MapWhen? .NET › ASP.NET Core Middleware & Request Pipeline | .NET | ASP.NET Core Middleware & Request Pipeline | Intermediate |
| 9 | How does the HttpContext object serve as the shared state carrier through the middleware pipeline? .NET › ASP.NET Core Middleware & Request Pipeline | .NET | ASP.NET Core Middleware & Request Pipeline | Intermediate |
| 10 | What are Minimal APIs in ASP.NET Core, and when would you choose them over traditional MVC controllers? .NET › ASP.NET Core Middleware & Request Pipeline | .NET | ASP.NET Core Middleware & Request Pipeline | Intermediate |
| 11 | How does UseRouting and endpoint routing (via MapControllers, MapGet, etc.) fit into the middleware pipeline conceptually? .NET › ASP.NET Core Middleware & Request Pipeline | .NET | ASP.NET Core Middleware & Request Pipeline | Advanced |
| 12 | How does the middleware pipeline interact with asynchronous streaming responses, and what precautions are needed? .NET › ASP.NET Core Middleware & Request Pipeline | .NET | ASP.NET Core Middleware & Request Pipeline | Advanced |
| 13 | How does short-circuiting work in middleware, and when would you deliberately not call next()? .NET › ASP.NET Core Middleware & Request Pipeline | .NET | ASP.NET Core Middleware & Request Pipeline | Intermediate |
| 14 | What is the purpose of UseExceptionHandler and UseDeveloperExceptionPage middleware, and how should they differ between environments? .NET › ASP.NET Core Middleware & Request Pipeline | .NET | ASP.NET Core Middleware & Request Pipeline | Intermediate |
| 15 | How do you write a custom middleware component as a reusable class instead of an inline lambda? .NET › ASP.NET Core Middleware & Request Pipeline | .NET | ASP.NET Core Middleware & Request Pipeline | Intermediate |
| 16 | How do minimal API endpoint filters (IEndpointFilter) compare to traditional middleware for cross-cutting logic? .NET › ASP.NET Core Middleware & Request Pipeline | .NET | ASP.NET Core Middleware & Request Pipeline | Advanced |
| 17 | Why 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 | .NET | ASP.NET Core Middleware & Request Pipeline | Advanced |
| 18 | How 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 Core | ASP.NET Core | Blazor Integration with ASP.NET Core | Beginner |
| 19 | What is the purpose of global exception handling middleware in an ASP.NET Core application? .NET › Global Exception Handling & Middleware | .NET | Global Exception Handling & Middleware | Beginner |
| 20 | What happens by default in ASP.NET Core if you don't configure any global exception handling middleware at all? .NET › Global Exception Handling & Middleware | .NET | Global Exception Handling & Middleware | Beginner |
| 21 | What is the purpose of global exception handling middleware in an ASP.NET Core application? ASP.NET Core › Error Handling | ASP.NET Core | Error Handling | Beginner |
| 22 | What 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 › Filters | ASP.NET Core | Filters | Beginner |
| 23 | Why must UseCors be positioned after UseRouting but before UseAuthorization in the ASP.NET Core middleware pipeline? .NET › CORS & Cross-Origin Resource Sharing | .NET | CORS & Cross-Origin Resource Sharing | Intermediate |
| 24 | What happens by default in ASP.NET Core if you don't configure any global exception handling middleware at all? ASP.NET Core › Error Handling | ASP.NET Core | Error Handling | Intermediate |
| 25 | What 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 Services | ASP.NET Core | gRPC Services | Advanced |
| 26 | How 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 Core | ASP.NET Core | Blazor Integration with ASP.NET Core | Advanced |
| 27 | How 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 Core | ASP.NET Core | Blazor Integration with ASP.NET Core | Advanced |
| 28 | What is authentication in ASP.NET Core, and how does the framework represent an authenticated user? ASP.NET Core › Authentication | ASP.NET Core | Authentication | Beginner |
| 29 | What 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 Core | CORS (Cross-Origin Resource Sharing) | Beginner |
| 30 | What is response caching middleware in ASP.NET Core, and how does it differ from application-level data caching? .NET › Caching (In-Memory, Distributed & Redis) | .NET | Caching (In-Memory, Distributed & Redis) | Intermediate |
| 31 | How do you configure a CORS policy in ASP.NET Core to allow requests from specific origins? .NET › CORS & Cross-Origin Resource Sharing | .NET | CORS & Cross-Origin Resource Sharing | Intermediate |
| 32 | What is the purpose of the authentication middleware's position in the pipeline, and why must UseAuthentication come before UseAuthorization? ASP.NET Core › Authentication | ASP.NET Core | Authentication | Intermediate |
| 33 | Where 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 Core | CORS (Cross-Origin Resource Sharing) | Intermediate |
| 34 | How 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 Java | Java | Design Patterns in Java | Advanced |
| 35 | How 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 | .NET | Global Exception Handling & Middleware | Intermediate |
| 36 | What are Filters in ASP.NET Core MVC? .NET Core › MVC Filters | .NET Core | MVC Filters | Intermediate |
| 37 | What is the difference between authentication and authorization in ASP.NET Core? .NET › Authentication & Authorization (Identity, JWT, OAuth) | .NET | Authentication & Authorization (Identity, JWT, OAuth) | Beginner |
| 38 | What is dependency injection, and how does ASP.NET Core's built-in DI container support it? .NET › Dependency Injection | .NET | Dependency Injection | Beginner |
| 39 | What are the main strategies for versioning an ASP.NET Core API (URL, query string, header, media type)? .NET › API Versioning | .NET | API Versioning | Intermediate |
| 40 | How do you implement URL-based API versioning using the Asp.Versioning.Mvc package in ASP.NET Core? .NET › API Versioning | .NET | API Versioning | Intermediate |
| 41 | How does JWT (JSON Web Token) authentication work at a high level in ASP.NET Core? .NET › Authentication & Authorization (Identity, JWT, OAuth) | .NET | Authentication & Authorization (Identity, JWT, OAuth) | Intermediate |
| 42 | How do you implement a gRPC server method in ASP.NET Core, and how does it integrate with the standard hosting model? .NET › gRPC Services | .NET | gRPC Services | Intermediate |
| 43 | How does the newer Output Caching middleware (introduced in .NET 7) differ from Response Caching middleware? ASP.NET Core › Caching | ASP.NET Core | Caching | Intermediate |
| 44 | What 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 & Templates | ASP.NET Core | Endpoint Metadata, Route Constraints & Templates | Intermediate |
| 45 | What 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 › Filters | ASP.NET Core | Filters | Intermediate |
| 46 | How 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 Checks | ASP.NET Core | Health Checks | Intermediate |
| 47 | How 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) | .NET | Authentication & Authorization (Identity, JWT, OAuth) | Advanced |
| 48 | How does gRPC support interceptors for cross-cutting concerns like authentication, logging, and retries, similar to middleware in a REST pipeline? .NET › gRPC Services | .NET | gRPC Services | Advanced |
| 49 | What is response caching middleware, and how does it differ from application-level data caching? ASP.NET Core › Caching | ASP.NET Core | Caching | Advanced |
| 50 | What 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 Core | CORS (Cross-Origin Resource Sharing) | Advanced |
| 51 | How does IExceptionFilter differ from global exception handling middleware, and when would you choose one over the other? ASP.NET Core › Filters | ASP.NET Core | Filters | Advanced |
| 52 | What is the difference between SaveChanges() and SaveChangesAsync(), and why does it matter for a web application's scalability? .NET › Entity Framework Core & Data Access | .NET | Entity Framework Core & Data Access | Intermediate |
| 53 | How 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 | .NET | Global Exception Handling & Middleware | Advanced |
| 54 | How do you configure a .NET application inside a container to listen on the correct port, and what does ASPNETCORE_URLS control? .NET › Docker & Containerization | .NET | Docker & Containerization | Intermediate |
| 55 | How do you apply a global authorization policy requiring authentication by default for every endpoint, with explicit opt-out for public ones? ASP.NET Core › Authorization | ASP.NET Core | Authorization | Intermediate |
| 56 | What is the purpose of the [AllowAnonymous] attribute, and how does it interact with a controller-level [Authorize] attribute? ASP.NET Core › Authorization | ASP.NET Core | Authorization | Intermediate |
| 57 | What 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 › Caching | ASP.NET Core | Caching | Intermediate |
| 58 | How 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 Core | CORS (Cross-Origin Resource Sharing) | Intermediate |
| 59 | How can filters access route values, query string parameters, or the raw HttpContext during execution? ASP.NET Core › Filters | ASP.NET Core | Filters | Intermediate |
| 60 | What are common patterns for implementing a producer-consumer background processing pipeline using Channel<T> with a BackgroundService? .NET › Background Services | .NET | Background Services | Advanced |
| 61 | What is a CORS preflight request, and when does the browser send one automatically? .NET › CORS & Cross-Origin Resource Sharing | .NET | CORS & Cross-Origin Resource Sharing | Advanced |
| 62 | How would you cache the results of an expensive, paginated database query while correctly handling different page/filter parameter combinations? ASP.NET Core › Caching | ASP.NET Core | Caching | Advanced |
| 63 | What is Blazor, and what are the two primary hosting models (Server and WebAssembly)? .NET › Blazor (Server & WebAssembly) | .NET | Blazor (Server & WebAssembly) | Beginner |
| 64 | What is CORS, and why do browsers enforce it? .NET › CORS & Cross-Origin Resource Sharing | .NET | CORS & Cross-Origin Resource Sharing | Beginner |
| 65 | What is gRPC, and how does it differ from a traditional REST/JSON API? .NET › gRPC Services | .NET | gRPC Services | Beginner |
| 66 | How do you version an API's OpenAPI/Swagger documentation to show separate docs per version? .NET › API Versioning | .NET | API Versioning | Intermediate |
| 67 | How do you call JavaScript from C# code in Blazor (JS interop), and when is it necessary? .NET › Blazor (Server & WebAssembly) | .NET | Blazor (Server & WebAssembly) | Intermediate |
| 68 | How does Blazor handle routing, and what does the @page directive do? .NET › Blazor (Server & WebAssembly) | .NET | Blazor (Server & WebAssembly) | Intermediate |
| 69 | What 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) | .NET | Caching (In-Memory, Distributed & Redis) | Intermediate |
| 70 | What 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) | .NET | Caching (In-Memory, Distributed & Redis) | Intermediate |
| 71 | How 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 | .NET | CORS & Cross-Origin Resource Sharing | Intermediate |
| 72 | How 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 | .NET | gRPC Services | Intermediate |
| 73 | What is gRPC-Web, and why is it needed for calling gRPC services directly from a browser-based JavaScript client? .NET › gRPC Services | .NET | gRPC Services | Intermediate |
| 74 | How can you version a single controller action to support multiple API versions without duplicating the entire controller class? .NET › API Versioning | .NET | API Versioning | Advanced |
| 75 | How does two-way data binding work with @bind in Blazor, and how can you customize the triggering event? .NET › Blazor (Server & WebAssembly) | .NET | Blazor (Server & WebAssembly) | Advanced |
| 76 | How 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) | .NET | Blazor (Server & WebAssembly) | Advanced |
| 77 | What is prerendering in Blazor, and what problem does it solve for initial page load experience? .NET › Blazor (Server & WebAssembly) | .NET | Blazor (Server & WebAssembly) | Advanced |
| 78 | How do you apply different CORS policies to different endpoints or controllers within the same application? .NET › CORS & Cross-Origin Resource Sharing | .NET | CORS & Cross-Origin Resource Sharing | Advanced |
| 79 | How does CORS interact with a reverse proxy or API gateway sitting in front of multiple backend microservices? .NET › CORS & Cross-Origin Resource Sharing | .NET | CORS & Cross-Origin Resource Sharing | Advanced |
| 80 | How do you configure CORS to expose custom response headers to client-side JavaScript using Access-Control-Expose-Headers? .NET › CORS & Cross-Origin Resource Sharing | .NET | CORS & Cross-Origin Resource Sharing | Advanced |