1325 questions for senior .NET engineer interviews, each with a 30-second answer, the full answer, a deep dive, the follow-ups interviewers ask next, and real-world production problems.
BenchmarkDotNet, the Visual Studio profiler, dotnet-counters, dotnet-trace, dotnet-dump, dotnet-gcdump, dotnet-monitor, PerfView, the Application Insights Profiler and load testing.
The .NET diagnostics CLI toolbox: what dotnet-counters, dotnet-trace, dotnet-dump, dotnet-gcdump and dotnet-monitor each capture, their overhead, and the order you use them in.
Writing trustworthy micro-benchmarks with BenchmarkDotNet on .NET 10: Release builds, warm-up and statistics, MemoryDiagnoser, baselines and ratios, Params, returning results to defeat dead-code elimination, and reading the results table.
CPU profiling .NET 10 services: EventPipe stack sampling with dotnet-trace, flame graphs and call trees in PerfView, Speedscope and Visual Studio, inclusive vs exclusive time, wall-clock vs CPU time, and turning a hot path into a verified fix.
Diagnosing managed memory growth in .NET 10: confirming it with GC counters, comparing dotnet-gcdump snapshots in Visual Studio or PerfView, reading retention paths to the GC root, common leak roots (static caches, events, DI scopes, timers), and verifying the fix.
Production profiling for .NET 10: dotnet-monitor as a sidecar with collection rules and egress, the Application Insights Profiler (classic SDK and the OpenTelemetry preview), overhead and blast radius, authentication, and Privacy Act obligations for diagnostic artefacts.
Load testing ASP.NET Core APIs: test types (smoke, load, stress, soak, spike), realistic workload modelling, open vs closed models and coordinated omission, k6 and Azure Load Testing, reading p50/p95/p99 and finding the saturation point with server-side metrics.
A production-only slow endpoint with no repro: listing what differs in production (data, concurrency, configuration, dependencies, tenants), slicing telemetry to isolate the slow subset, then targeted evidence from distributed traces, Query Store, the Application Insights Profiler and dotnet-monitor triggers, and proving the fix with production percentiles.