1. Junior

    How do Minimal APIs differ from traditional Controllers in ASP.NET Core?

    Minimal APIs map routes directly through lightweight Lambdas with less overhead and faster startup, while Controllers provide a traditional structure suited to large, complex projects.

    Read the full explanation
  2. Junior

    How does the Middleware Pipeline work in ASP.NET Core, and why is registration order critical?

    Each middleware runs code before calling next(), then waits for the response to return; order matters because UseAuthentication must come before UseAuthorization.

    Read the full explanation
  3. Senior

    How was Kestrel designed to become one of the world's fastest web servers, and what is a Reverse Proxy?

    Kestrel uses non-blocking I/O built on Socket Pipelines and MemoryPools; it runs behind a Reverse Proxy (such as Nginx or IIS) for security and SSL management.

    Read the full explanation
  4. Mid-level

    What are the five ASP.NET Core Controller Filter stages, and in what order do they run?

    The order is Authorization Filters, Resource Filters, Action Filters, Exception Filters, and finally Result Filters.

    Read the full explanation
  5. Junior

    How does Model Binding work in ASP.NET Core, and how do [FromBody], [FromRoute], and [FromQuery] differ?

    It extracts request data and converts it to strongly typed C# objects; [FromBody] reads JSON, [FromRoute] reads URL path values, and [FromQuery] reads query parameters.

    Read the full explanation
  6. Mid-level

    How do IOptions, IOptionsSnapshot, and IOptionsMonitor differ in the Options Pattern?

    IOptions is a fixed Singleton, IOptionsSnapshot is recomputed for each HTTP request to support live updates, and IOptionsMonitor is a Singleton that receives file-change notifications without a request context.

    Read the full explanation
  7. Mid-level

    How do you apply the built-in Rate Limiting Middleware in .NET 7+?

    Call builder.Services.AddRateLimiter, configure algorithms such as FixedWindow, SlidingWindow, or TokenBucket, and apply them with [EnableRateLimiting].

    Read the full explanation
  8. Junior

    What is the ProblemDetails standard (RFC 7807), and how do you enable it for ASP.NET Core errors?

    It standardizes HTTP error responses as structured JSON; enable it with builder.Services.AddProblemDetails().

    Read the full explanation
  9. Senior

    How does Output Caching in .NET 7+ improve on the older Response Caching Middleware?

    It stores complete responses in server memory or Redis, supports cache invalidation by Tags, and uses locking to prevent a Stampede; the older middleware handled only client headers.

    Read the full explanation
  10. Mid-level

    How do you run continuous background tasks with BackgroundService, and what are the risks of injecting Scoped services into it?

    Inherit from BackgroundService and write the logic in ExecuteAsync(); Scoped services cannot be injected directly because the service is a Singleton, so create a scope manually with IServiceScopeFactory.

    Read the full explanation