Skill Zuno · skillzunos.com · Fullstack
Asp.NET interview questions
Prepare for Asp.NET interviews on Skill Zuno. This practice book covers Asp.NET interview questions across New, Easy, Medium, Hard, and Diff levels so you can work through real interview-style problems on skillzunos.com.
Open Asp.NET on Skill ZunoAlso see the Asp.NET tutorial.
ASP.NET Core is Microsoft's cross-platform framework for building web apps and APIs with C#. It offers MVC controllers, minimal APIs, Razor Pages and Blazor on a configurable middleware pipeline with built-in dependency injection. Interviews cover the request pipeline, DI, routing, model binding, authentication, Entity Framework Core and performance.
Sample Asp.NET interview questions
What is middleware in ASP.NET Core?
Middleware components form a pipeline that each request passes through in order. Each can handle the request, call the next component, and act on the response on the way back. Order matters: authentication must come before authorisation.
What is the difference between app.Use and app.Run?
app.Use adds middleware that can call next() to pass the request on. app.Run adds terminal middleware that ends the pipeline and never calls the next component.
What are minimal APIs?
Minimal APIs map routes straight to lambdas, as in app.MapGet("/todos", ...), with no controller classes. They have less ceremony and good performance, and suit small services and microservices.
Why should you not inject a scoped service into a singleton?
The singleton lives for the whole application, so it would hold one scoped instance, such as a DbContext, forever and share it across requests. ASP.NET Core's scope validation throws an error for this in development.
What is the difference between authentication and authorisation?
Authentication establishes who the user is, for example by validating a JWT. Authorisation decides what they may do, using [Authorize], roles or policies.
What you can practice
- Asp.NET interview questions for beginners and experienced developers
- Level-based practice: New, Easy, Medium, Hard, and Diff
- Fullstack topics alongside Asp.NET on skillzunos.com