.NET track

.NET and C# interview questions

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

24 High Security .NET

How do you harden cookie authentication?

Short take Full answer on next page

Simple meaning

HttpOnly, Secure, SameSite, short lifetimes, and sliding refresh with care.

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

Read full answer Example · Mistake · Say this
25 High EF Core .NET

How do you tune EF Core for bulk inserts?

Short take Full answer on next page

Simple meaning

I batch with AddRange, raise MaxBatchSize, or use bulk extensions for millions of rows.

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

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

How do you design a modular monolith in .NET?

Short take Full answer on next page

Simple meaning

I split by bounded context folders or projects with clear interfaces, one deployable host.

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

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

When would you choose gRPC over REST in .NET?

Short take Full answer on next page

Simple meaning

gRPC shines for internal service-to-service with protobuf and HTTP/2 streaming.

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

Read full answer Example · Mistake · Say this
28 High EF Core .NET

How do you implement soft delete safely?

Short take Full answer on next page

Simple meaning

I add IsDeleted and a global query filter, plus careful unique indexes that include the flag.

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

Read full answer Example · Mistake · Say this
29 High EF Core .NET

How do you bulk insert efficiently?

Short take Full answer on next page

Simple meaning

For huge loads I use bulk extensions, COPY-like tools, or raw SQL, not SaveChanges per row.

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

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

How do you rotate JWT signing keys?

Short take Full answer on next page

Simple meaning

I publish multiple validation keys and phase old ones out after token lifetime.

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

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

How do you make message consumers idempotent?

Short take Full answer on next page

Simple meaning

I store processed message ids or use natural idempotency keys before side effects.

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

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

How do you version APIs in ASP.NET Core?

Short take Full answer on next page

Simple meaning

URL versioning or header versioning with Asp.Versioning packages.

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

Read full answer Example · Mistake · Say this
38 High EF Core .NET

How do you split queries for collections?

Short take Full answer on next page

Simple meaning

AsSplitQuery avoids cartesian explosion from multiple includes.

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

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

How do you secure SignalR hubs?

Short take Full answer on next page

Simple meaning

Authorize hubs and methods, validate users on connect, and avoid trusting client payloads.

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

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

How do you handle multi-tenancy in EF Core?

Short take Full answer on next page

Simple meaning

I add tenant id filters globally and set tenant from the request.

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