Back to all roles

.NET / C# Developer Interview Questions

Core Overview

Practice .NET and C# Developer interview questions covering C# language fundamentals, value and reference types, memory management, async/await and concurrency, ASP.NET Core web APIs, application architecture, Entity Framework Core, testing, performance, security, and production reliability.

Reviewed using official technical documentation.
Resume Preparation

Preparing for .NET / C# Developer interviews?

Make sure your resume is positioned for the same role. Check your resume against the job description and identify gaps before you apply.

Check My ResumeFree to get started

Ready to test your knowledge?

Launch a focused practice session to review questions without distraction.

|
beginnerC# Language, Types & Memory

What is the difference between value types and reference types in C#, and how do value semantics and reference identity differ in practice?

beginnerC# Language, Types & Memory

How do nullable value types and nullable reference types differ in C#, and why are nullable reference types considered compiler-assisted static analysis?

intermediateC# Language, Types & Memory

How do struct, class, and record differ in C#, and when should you choose value semantics over reference identity?

intermediateC# Language, Types & Memory

What are boxing and unboxing in C#, and why do generics prevent unnecessary heap allocations and runtime overhead?

intermediateC# Language, Types & Memory

How do the Garbage Collector (GC), IDisposable, and using statements collaborate to manage memory and resources in .NET?

Resume Positioning

Getting ready for the interview?

Your interview prep and your resume should tell the same story. See how well your resume matches the role you're targeting.

advancedC# Language, Types & Memory

In an ASP.NET Core file import pipeline suffering from rising process memory, handle exhaustion, and frequent GC pauses without corresponding managed heap growth, how do you diagnose root causes, stabilize the system, and establish robust resource ownership?

beginnerAsync/Await, Tasks & Concurrency

How do async, await, and Task work in C#, and how does asynchronous I/O complete without blocking a thread?

beginnerAsync/Await, Tasks & Concurrency

What does Task.WhenAll do in C#, and what considerations must be addressed when coordinating concurrent asynchronous operations?

intermediateAsync/Await, Tasks & Concurrency

How does cooperative cancellation work with CancellationToken in .NET, and how should cancellation tokens be propagated and handled?

intermediateAsync/Await, Tasks & Concurrency

What problem does ConfigureAwait(false) address in C#, and how does its necessity differ between UI applications, class libraries, and modern ASP.NET Core?

intermediateAsync/Await, Tasks & Concurrency

How do lock and SemaphoreSlim differ in C#, and why is lock incompatible with async/await workflows?

advancedAsync/Await, Tasks & Concurrency

When an ASP.NET Core service experiences rising p95/p99 latency, ThreadPool queue growth, and worker thread spikes under load while CPU and downstream dependencies remain healthy, how do you diagnose sync-over-async starvation, stabilize production, and redesign the architecture?

beginnerASP.NET Core, APIs & Application Architecture

How does the ASP.NET Core request pipeline process incoming HTTP requests, and why does middleware ordering matter?

beginnerASP.NET Core, APIs & Application Architecture

What are Transient, Scoped, and Singleton service lifetimes in ASP.NET Core dependency injection, and why are captive dependencies dangerous?

intermediateASP.NET Core, APIs & Application Architecture

How should an ASP.NET Core API separate model binding, input validation, business rule validation, and authorization?

intermediateASP.NET Core, APIs & Application Architecture

How should an ASP.NET Core API map failures to standard HTTP responses, and how does Problem Details provide consistent error contracts?

intermediateASP.NET Core, APIs & Application Architecture

How should responsibilities be separated between controllers/endpoints, application services, domain models, and data access in ASP.NET Core?

advancedASP.NET Core, APIs & Application Architecture

In an ASP.NET Core payment API where network timeouts trigger blind client retries resulting in double charges and inconsistent order states, how do you diagnose the failure, establish end-to-end idempotency, and design a resilient transactional workflow?

beginnerEntity Framework, Testing & Tooling

What is the role of DbContext in Entity Framework Core, how does change tracking work, and what happens during SaveChanges?

beginnerEntity Framework, Testing & Tooling

What is the difference between unit tests and integration tests in a .NET application, and how should their boundaries be established?

intermediateEntity Framework, Testing & Tooling

What is the difference between tracking and no-tracking queries in EF Core, and how should queries be shaped for performance?

intermediateEntity Framework, Testing & Tooling

How does EF Core manage database transactions and detect concurrency conflicts using optimistic concurrency tokens?

intermediateEntity Framework, Testing & Tooling

How does WebApplicationFactory facilitate integration testing in ASP.NET Core, and why is relational database isolation essential over the InMemory provider?

advancedEntity Framework, Testing & Tooling

In an ASP.NET Core orders API where endpoint latency jumped from 100 ms to several seconds due to an N+1 query regression and inefficient query shapes, how do you diagnose the root cause, stabilize the database, and re-architect the data access path?

beginnerProduction .NET, Performance, Security & Reliability

What are the distinct roles of logs, metrics, and distributed tracing in production .NET observability, and how do they collaborate?

beginnerProduction .NET, Performance, Security & Reliability

How does ASP.NET Core distinguish between authentication and authorization, and how should application secrets be managed securely?

intermediateProduction .NET, Performance, Security & Reliability

How does .NET generational garbage collection work, what causes allocation pressure, and why is Large Object Heap fragmentation hazardous?

intermediateProduction .NET, Performance, Security & Reliability

What are the trade-offs between in-memory caching and distributed caching in .NET, and how should expiration and cache invalidation be designed?

intermediateProduction .NET, Performance, Security & Reliability

How should production ASP.NET Core services implement health checks, and why must liveness probes be decoupled from external dependency readiness?

advancedProduction .NET, Performance, Security & Reliability

In an ASP.NET Core catalog service where IMemoryCache usage causes steady memory growth, surging Gen 2 collections, and severe tail-latency spikes under traffic growth, how do you diagnose root causes, distinguish leaks from retention, and architect bounded caching?

Related Interview Questions

Explore complementary technical interview questions and preparation guides.

Want to tailor your resume for .NET / C# Developer roles?

Connect your interview preparation with actionable resume optimization and application tracking.

Primary

Optimize Your Resume

Compare your resume with the role you're targeting and identify areas to strengthen.

Check My Resume

Track Your Applications

Keep applications, interview stages, follow-ups, and notes organized in one place.

Open Job Tracker

View a .NET / C# Resume Example

Explore an ATS-friendly, high-impact resume blueprint tailored for .NET / C# Developer candidates.

View Resume Example