Basic ASP.NET Core Interview Questions
-
What is ASP.NET Core and how is it different from ASP.NET Framework?
-
What are the main features of ASP.NET Core?
-
Explain the difference between Kestrel and IIS.
-
What is Middleware in ASP.NET Core? How is it different from HttpModules/HttpHandlers in ASP.NET?
-
What is the Startup.cs file and its significance?
-
How does dependency injection work in ASP.NET Core?
-
What are the different lifetimes available for dependency injection (
Transient
,Scoped
,Singleton
)? -
What is the difference between
IApplicationBuilder
andIServiceCollection
? -
What is the role of
Program.cs
in ASP.NET Core 6 and later versions? -
Explain the concept of configuration in ASP.NET Core. How can you read from
appsettings.json
?
Intermediate ASP.NET Core Interview Questions
-
What is the difference between WebHostBuilder and GenericHostBuilder?
-
How is routing handled in ASP.NET Core? (Conventional routing vs Attribute routing)
-
What are Tag Helpers in ASP.NET Core MVC?
-
Explain Filters in ASP.NET Core (Authorization, Resource, Action, Exception, Result).
-
What is Model Binding in ASP.NET Core?
-
What are Razor Pages and how do they differ from MVC?
-
Explain Middleware pipeline ordering and its importance.
-
How do you enable CORS in ASP.NET Core?
-
What is logging in ASP.NET Core? Which providers are available by default?
-
How does ASP.NET Core handle static files?
Advanced ASP.NET Core Interview Questions
-
Explain the difference between
IHostedService
andBackgroundService
. -
What is Health Checks in ASP.NET Core and how do you implement it?
-
What are gRPC services and how do they differ from REST in ASP.NET Core?
-
How does authentication and authorization work in ASP.NET Core? (JWT, Cookies, Identity)
-
How do you secure secrets in ASP.NET Core applications?
-
What is SignalR and how does it work in ASP.NET Core?
-
What are minimal APIs introduced in ASP.NET Core 6?
-
How does middleware differ from filters in ASP.NET Core?
-
What is the difference between
IFormFile
andFileStream
in file uploads? -
How can you implement global exception handling in ASP.NET Core?
Performance & Deployment Questions
-
What are the ways to improve performance in ASP.NET Core applications?
-
What is Response Caching and Distributed Caching in ASP.NET Core?
-
Explain Data Protection API in ASP.NET Core.
-
How do you host ASP.NET Core applications in Linux and Docker?
-
What is the difference between in-process and out-of-process hosting in ASP.NET Core?
-
How do you deploy ASP.NET Core apps to Azure App Service?
-
What is the role of
app.UseEndpoints
vsapp.UseRouting
? -
How do you enable HTTPS redirection and HSTS in ASP.NET Core?
-
What are Environment variables in ASP.NET Core (
Development
,Staging
,Production
)? -
Explain connection pooling in ASP.NET Core with EF Core.
-
What is the difference between
IActionResult
andActionResult<T>
in ASP.NET Core? -
How do you configure custom middleware in ASP.NET Core?
-
What is endpoint routing in ASP.NET Core?
-
How do you version APIs in ASP.NET Core?
-
What are strongly-typed configurations and how do you bind them from
appsettings.json
? -
How do you handle localization and globalization in ASP.NET Core?
-
Explain the difference between ViewData, ViewBag, and TempData.
-
What are Areas in ASP.NET Core MVC and when would you use them?
-
How do you create custom model binders in ASP.NET Core?
-
What is the difference between synchronous and asynchronous action methods?
-
How do you validate models in ASP.NET Core (Data Annotations vs Fluent Validation)?
-
What are Environment Tag Helpers?
-
How do you configure multiple environments in ASP.NET Core?
-
Explain the concept of request pipeline in ASP.NET Core.
-
What are the differences between
.NET Core
,.NET 5/6/7
, and.NET Framework
for ASP.NET applications? -
How do you handle file uploads and downloads in ASP.NET Core?
-
What is the difference between
AddControllers
,AddControllersWithViews
, andAddRazorPages
? -
What are
conventions
in ASP.NET Core MVC? -
How do you use
Partial Views
andView Components
? -
What is the purpose of
IWebHostEnvironment
and how is it different fromIHostingEnvironment
? -
How do you configure HTTPS certificates in ASP.NET Core Kestrel server?
-
What are anti-forgery tokens and how do you implement CSRF protection in ASP.NET Core?
-
How do you implement custom authorization policies?
-
What is output caching in ASP.NET Core 7?
-
How do you implement gRPC streaming in ASP.NET Core?
-
What is the difference between Blazor Server and Blazor WebAssembly?
-
How does ASP.NET Core handle dependency injection for logging (
ILogger<T>
) compared to manual logger creation? -
How do you register and use custom
IHostedService
? -
What are filters vs middleware — when to use one over the other?
-
How do you configure rate limiting and throttling in ASP.NET Core 7?
-
How do you configure request buffering in ASP.NET Core?
-
What is the difference between
Use
,Run
, andMap
middleware methods? -
How do you handle long-running tasks in ASP.NET Core without blocking requests?
-
How do you configure cookie policies in ASP.NET Core?
-
How do you implement JWT token refresh in ASP.NET Core?
No comments:
Post a Comment