.NET MVC track

ASP.NET MVC interview questions and answers

Panel-ready ASP.NET MVC questions for freshers and experienced developers. Practice at Coding Cadre in Faridabad, or Online from Delhi NCR.

22 High Performance .NET MVC

How do you reduce view engine lookups?

Short take Full answer on next page

Simple meaning

Precompiled views and predictable locations avoid probing.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
27 High Performance .NET MVC

How do you cache user-specific dashboards?

Short take Full answer on next page

Simple meaning

Cache expensive anonymous fragments and load personal bits separately.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
28 High Ajax .NET MVC

How do you handle antiforgery with fetch POST?

Short take Full answer on next page

Simple meaning

Read the token from a cookie or hidden field and send RequestVerificationToken header.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
29 High Identity .NET MVC

How do you support external login providers?

Short take Full answer on next page

Simple meaning

Add OAuth handlers for Google or Microsoft, store logins in AspNetUserLogins, and link accounts carefully.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
30 High Routing .NET MVC

How do you generate sitemap URLs from MVC?

Short take Full answer on next page

Simple meaning

I enumerate public routes or content ids and build absolute URLs with LinkGenerator.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
32 High Testing .NET MVC

How do you snapshot test Razor output?

Short take Full answer on next page

Simple meaning

Render a view to string with a test host and compare to approved files.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
34 High Security .NET MVC

How do you prevent host header attacks?

Short take Full answer on next page

Simple meaning

AllowedHosts configuration rejects unknown hosts.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
36 High Performance .NET MVC

How do you precompile Razor views in CI?

Short take Full answer on next page

Simple meaning

Enable RazorCompileOnPublish so views become assemblies.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
39 High Identity .NET MVC

How do you migrate legacy password hashes?

Short take Full answer on next page

Simple meaning

On successful login with old algorithm, rehash with Identity hasher and store.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
40 High Architecture .NET MVC

How do you structure large admin MVC areas?

Short take Full answer on next page

Simple meaning

Separate Area with its own layout, auth policies, and menus.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
Prev Page 2 of 3 Next
Chat with us