Q7 — DI Service Lifetimes — Singleton, Scoped, Transient and the Captive Dependency Trap Level: Mid-Level | Topic: ASP.NET Core The Three Lifetimes Singleton: One instance per application. Created once, reused forever. U...
Practical guidance to register and consume services correctly in .NET: lifetimes, scope validation, hosted services, and background work patterns.
Q6 — Explain the ASP.NET Core Middleware Pipeline and Write Custom Middleware Level: Mid-Level | Topic: ASP.NET Core How the Pipeline Works ASP.NET Core processes every HTTP request through a linear chain of middleware c...
1. Introduction to Logging in ASP.NET Core ASP.NET Core logging is built into the framework from day one — no third-party package required to get started. The system is built around three abstractions that compose cleanl...
Q25 — Integration Testing with WebApplicationFactory and Testcontainers Level: Senior | Topic: Testing Why Integration Tests? Unit tests verify logic in isolation. Integration tests verify the full ASP.NET Core pipeline ...
Q26 — Clean Architecture — Solution Structure, Dependency Rule, Layer Responsibilities Level: Senior | Topic: Architecture The Core Principle — Dependency Rule In Clean Architecture, dependencies point inward only . The ...
Monolithic — the starting point for most systems. A traditional monolith is a single process; a modular monolith enforces domain boundaries within it (great for teams not ready for microservices); vertical slice organise...
Design patterns are reusable solutions to common software design problems. They are not copy-paste code templates, but proven architectural ideas that help teams build systems that are easier to extend, test, maintain, a...
A medium-scale Azure design for accepting documents, orchestrating durable processing, persisting results, and operating the workflow safely across the SDLC.
Q2 — Abstract Classes vs Interfaces — Differences and When to Use Each Level: Mid-Level | Topic: C# Fundamentals The Core Distinction Abstract classes express an IS-A relationship — they share state, constructors, and a ...
Q27 — CQRS with MediatR — Commands, Queries, Pipeline Behaviours Level: Senior | Topic: Architecture CQRS in a Nutshell Command Query Responsibility Segregation separates operations that change state (Commands) from oper...
Q10 — Global Exception Handling with IExceptionHandler (.NET 8) Level: Senior | Topic: Web API The Problem Without centralised exception handling, every controller action needs its own try/catch, error responses are inco...
Q22 — OWASP Top 10 — How Each Applies to .NET APIs with Mitigations Level: Senior | Topic: Security The Most Critical Risks A01 — Broken Access Control: Never trust client-sent IDs. Always load the resource then verify o...
Q21 — Rate Limiting in .NET 7+ — Fixed Window, Sliding Window, Token Bucket Level: Senior | Topic: Performance Optimization Why Rate Limiting? Rate limiting protects your API from overload — whether from abusive clients,...