ASP.NET Core Interview Preparation — Master Roadmap¶
README · Cheat Sheet · Traps · Progress Tracker · Question Bank · Diagrams
Legend¶
| Marker | Meaning |
|---|---|
| 🔥 | Near-certain. Asked in almost every ASP.NET Core interview. If you know nothing else, know these. |
| ⭐ | Common. Shows up regularly. Expect at least a few of these per interview. |
| 💻 | Hands-on. You must be able to write this on a whiteboard or in a live-coding round — describing it is not enough. |
| ⚠️ | Trap. A classic gotcha. Interviewers use these to separate people who've read a blog from people who've shipped. |
| 🧠 | Senior. Only needed if you're targeting senior/lead/architect roles. Safe to skip for junior interviews. |
| 🎯 | Diagram. Worth being able to draw. Practise it on paper. |
Checkboxes track "notes written and read." Track your recall confidence separately in PROGRESS.md — the two are not the same thing, and confidence is what actually decays.
Topic numbers are permanent. Once a note file exists at a number, that number never changes. Links below are pre-wired — they will be dead until the corresponding note is written.
Phase 0 — Prerequisites¶
1. C# Language Fundamentals¶
- [x] 1.1 Value types vs reference types, stack vs heap, boxing/unboxing 🔥 ⚠️ 🎯
- [x] 1.2
structvsclassvsrecordvsrecord struct⭐ 💻 - [x] 1.3 String immutability,
StringBuilder, interning ⭐ - [x] 1.4 Access modifiers, including
protected internalandprivate protected - [x] 1.5
static— classes, members, constructors, local functions - [x] 1.6
constvsreadonlyvsinitvsrequired⭐ ⚠️ - [x] 1.7 Inheritance —
virtual/override/new/sealed/abstract🔥 ⚠️ - [x] 1.8 Interfaces — explicit implementation, default methods, vs abstract class 🔥 💻
- [x] 1.9 Polymorphism — overloading vs overriding ⭐
- [x] 1.10 Generics — constraints, covariance and contravariance ⭐ 🧠
- [x] 1.11 Delegates,
Func,Action,Predicate, multicast ⭐ 💻 - [x] 1.12 Events — and the memory leak from unsubscribed handlers ⭐ ⚠️
- [x] 1.13 Lambdas and closures — the captured-loop-variable trap ⭐ ⚠️
- [x] 1.14 Extension methods — resolution rules and appropriate use ⭐ 💻
- [x] 1.15 Nullable value types vs nullable reference types 🔥 ⚠️
- [x] 1.16 Null-handling operators —
??,??=,?.,?[] - [x] 1.17 Pattern matching and switch expressions ⭐ 💻
- [x] 1.18 Tuples, deconstruction,
out/ref/in⭐ - [x] 1.19 Indexers, operator overloading, conversion operators
- [x] 1.20 Exception handling — filters, custom exceptions,
throwvsthrow ex🔥 ⚠️ 💻 - [x] 1.21
IDisposable,using,IAsyncDisposable, finalizers 🔥 💻 - [x] 1.22 Anonymous types,
dynamic,var— and when each is wrong - [x] 1.23 Attributes and reflection basics ⭐
- [x] 1.24 Partial classes, partial methods, local functions
- [x] 1.25
Span<T>,Memory<T>,stackalloc🧠 - [x] 1.26 Modern C# by version (C# 8 → 14) ⭐
2. Collections, LINQ and Async¶
- [x] 2.1
IEnumerablevsICollectionvsIListvsIQueryable🔥 ⚠️ - [x] 2.2 Core collections and their Big-O ⭐ 🎯
- [x] 2.3 Concurrent collections ⭐
- [x] 2.4
IEnumerator,yield return, deferred execution ⭐ 💻 - [x] 2.5 LINQ query vs method syntax; the standard operators ⭐ 💻
- [x] 2.6 Deferred vs immediate execution; multiple-enumeration pitfalls 🔥 ⚠️
- [x] 2.7
IQueryableand expression trees — how LINQ becomes SQL ⭐ 🧠 - [x] 2.8
GroupBy,Join,SelectMany,Aggregate,Zip⭐ 💻 - [x] 2.9
FirstvsFirstOrDefaultvsSinglevsSingleOrDefault🔥 ⚠️ - [x] 2.10 Threads,
ThreadPool,TaskvsThread🔥 🎯 - [x] 2.11
async/await— the state machine underneath 🔥 🎯 🧠 - [x] 2.12
TaskvsValueTask,WhenAll,WhenAny,Task.Run⭐ 💻 - [x] 2.13 Deadlocks —
.Result,.Wait(),ConfigureAwait(false)🔥 ⚠️ - [x] 2.14
CancellationTokenand cooperative cancellation 🔥 💻 - [x] 2.15
async void— why it is almost always wrong 🔥 ⚠️ - [x] 2.16 Exceptions in async code,
AggregateException⭐ ⚠️ - [x] 2.17
IAsyncEnumerable<T>andawait foreach⭐ - [x] 2.18 Thread safety —
lock,SemaphoreSlim,Interlocked,volatile⭐ ⚠️ - [x] 2.19
Parallel.For, PLINQ — and when not to use them ⭐ ⚠️
3. .NET Runtime and Platform¶
- [x] 3.1 .NET Framework vs .NET Core vs .NET 5+ 🔥
- [x] 3.2 CLR, CTS, CLS, IL, JIT, AOT, ReadyToRun ⭐ 🎯
- [x] 3.3 Managed vs unmanaged code,
unsafe, P/Invoke - [x] 3.4 Garbage collection — generations, LOH, GC modes 🔥 🎯
- [x] 3.5 Memory leaks in managed code 🔥 ⚠️
- [x] 3.6 Assemblies, load contexts, NuGet packaging
- [x] 3.7 SDK-style
.csproj, target frameworks, multi-targeting ⭐ - [x] 3.8 .NET CLI essentials ⭐ 💻
- [x] 3.9 .NET Standard — what it was, why it's mostly history
- [x] 3.10 Release cadence — LTS vs STS, current support matrix ⭐
Phase 1 — ASP.NET Core Core Concepts¶
This is the highest-value phase in the entire roadmap. Sections 4–8 are what "ASP.NET Core interview" actually means. Do not skip ahead to EF Core until these are solid.
4. Fundamentals and Application Startup¶
- [x] 4.1 What ASP.NET Core is; differences from ASP.NET (System.Web) 🔥
- [x] 4.2 Cross-platform hosting, Kestrel, the reverse-proxy model ⭐ 🎯
- [x] 4.3
Program.cs— Generic Host vs Minimal Hosting 🔥 💻 - [x] 4.4 The legacy
Startup.csmodel ⭐ - [x] 4.5
IHost,IHostBuilder,IWebHostEnvironment, lifetime interfaces ⭐ - [x] 4.6 Application lifecycle — start, run, graceful shutdown ⭐ 🎯
- [x] 4.7 Environments and
ASPNETCORE_ENVIRONMENT🔥 - [x] 4.8
launchSettings.json— and why it is dev-only ⚠️ - [x] 4.9 Kestrel vs IIS vs HTTP.sys; in-process vs out-of-process ⭐ 🎯
- [x] 4.10
wwwrootand static file serving ⭐ - [x] 4.11 Project structure conventions for a Web API ⭐
5. Middleware and the Request Pipeline¶
- [x] 5.1 What middleware is; the pipeline model 🔥 🎯
- [x] 5.2 Middleware order — and the canonical ordering 🔥 ⚠️ 🎯
- [x] 5.3
UsevsRunvsMapvsMapWhenvsUseWhen🔥 💻 - [x] 5.4 Inline custom middleware ⭐ 💻
- [x] 5.5 Conventional middleware class with
InvokeAsync🔥 💻 - [x] 5.6 Factory-based middleware (
IMiddleware) and scoped services ⭐ ⚠️ - [x] 5.7 Short-circuiting and terminal middleware ⭐
- [x] 5.8
HttpContext— Request, Response, Items, Features, User 🔥 - [x] 5.9 Reading and rewinding the request body (
EnableBuffering) ⚠️ 💻 - [x] 5.10 Tour of the built-in middleware ⭐
- [x] 5.11 Global exception-handling middleware 🔥 💻
- [x] 5.12
IExceptionHandler(.NET 8+) vs developer exception page ⭐ 💻 - [x] 5.13 Middleware vs filters — when to use which 🔥 🎯
- [x] 5.14 Request/response logging middleware and its pitfalls ⭐ ⚠️
6. Dependency Injection¶
- [x] 6.1 Inversion of Control and Dependency Injection 🔥 🎯
- [x] 6.2 The built-in container,
IServiceCollection,IServiceProvider🔥 💻 - [x] 6.3 Service lifetimes — Transient, Scoped, Singleton 🔥 ⚠️ 🎯
- [x] 6.4 The captive dependency problem 🔥 ⚠️
- [x] 6.5 What a scope is; creating manual scopes 🔥 💻
- [x] 6.6
AddvsTryAddvsTryAddEnumerable; keyed services ⭐ - [x] 6.7 Multiple implementations and
IEnumerable<TService>⭐ 💻 - [x] 6.8 Factory registrations and open generics ⭐
- [x] 6.9 Constructor injection vs
[FromServices]vs service locator ⭐ ⚠️ - [x] 6.10 Who disposes what — container-managed disposal ⭐ ⚠️
- [x] 6.11 Third-party containers — Autofac, Scrutor 🧠
- [x] 6.12 Designing for testability through DI ⭐
- [x] 6.13 Classic DI interview traps 🔥 ⚠️
7. Configuration and Options¶
- [x] 7.1 The configuration system — providers and precedence 🔥 ⚠️
- [x] 7.2
appsettings.jsonand environment overrides 🔥 - [x] 7.3 Environment variables, CLI args, User Secrets ⭐
- [x] 7.4 Key Vault / Secrets Manager providers ⭐
- [x] 7.5
IConfigurationAPI — sections,GetValue, connection strings ⭐ 💻 - [x] 7.6
IOptionsvsIOptionsSnapshotvsIOptionsMonitor🔥 ⚠️ - [x] 7.7 Binding configuration to POCOs ⭐ 💻
- [x] 7.8 Options validation and
ValidateOnStart⭐ 💻 - [x] 7.9 Reloadable configuration and its limits ⚠️
- [x] 7.10 Writing a custom configuration provider 🧠 💻
- [x] 7.11 Feature flags and feature management ⭐
8. Routing¶
- [x] 8.1 Endpoint routing fundamentals 🔥 🎯
- [x] 8.2
UseRoutingandUseEndpoints— what happens between them 🔥 ⚠️ - [x] 8.3 Conventional vs attribute routing 🔥 💻
- [x] 8.4 Route templates, parameters, optionals, defaults ⭐ 💻
- [x] 8.5 Route constraints, including custom ones ⭐ 💻
- [x] 8.6 Route tokens, named routes, link generation ⭐
- [x] 8.7 Endpoint selection and precedence — how ties break ⭐ ⚠️
- [x] 8.8 Areas
- [x] 8.9 Route groups (
MapGroup) ⭐ 💻 - [x] 8.10 Catch-all routes, slugs, SEO-friendly URLs
Phase 2 — Building Web APIs and Web Apps¶
9. MVC, Razor Pages and Views¶
- [x] 9.1 The MVC pattern in ASP.NET Core 🔥 🎯
- [x] 9.2
ControllervsControllerBase; action conventions 🔥 - [x] 9.3
IActionResultvsActionResult<T>; result types 🔥 💻 - [x] 9.4 Razor syntax, layouts,
_ViewStart,_ViewImports⭐ - [x] 9.5 Partial views, View Components, Tag Helpers vs HTML Helpers ⭐
- [x] 9.6 ViewData vs ViewBag vs TempData 🔥 ⚠️
- [x] 9.7 Razor Pages and
PageModel⭐ 💻 - [x] 9.8 ViewModels vs entities; strongly-typed views ⭐
- [x] 9.9 Blazor overview — Server vs WASM vs Auto ⭐
- [x] 9.10 Front-end integration, bundling, minification
10. Web API Design and REST¶
- [x] 10.1 REST principles — resources, statelessness, uniform interface 🔥 🎯
- [x] 10.2 HTTP verbs; idempotency and safety 🔥 ⚠️
- [x] 10.3 HTTP status codes that actually get asked about 🔥
- [x] 10.4
[ApiController]— what it changes 🔥 ⚠️ - [x] 10.5 Content negotiation and JSON serialization 🔥 ⚠️
- [x] 10.6 API versioning strategies ⭐ 💻
- [x] 10.7 Pagination, filtering, sorting conventions ⭐ 💻
- [x] 10.8
ProblemDetails/ RFC 7807 and consistent error contracts ⭐ 💻 - [x] 10.9 OpenAPI / Swagger — Swashbuckle, NSwag, built-in OpenAPI ⭐
- [x] 10.10 CORS — preflight, policies, common misconfigurations 🔥 ⚠️ 🎯
- [x] 10.11 DTOs vs entities; mapping approaches 🔥
- [x] 10.12 Minimal APIs — syntax, filters, when to choose them ⭐ 💻
- [x] 10.13 Idempotency keys,
ETag,If-Match🧠 - [x] 10.14 REST vs gRPC vs GraphQL vs SOAP ⭐ 🎯
11. Model Binding and Validation¶
- [ ] 11.1 Binding sources —
[FromBody],[FromQuery],[FromRoute], … 🔥 ⚠️ - [ ] 11.2 How binding works — value providers, prefixes, collections ⭐
- [ ] 11.3 Custom model binders ⭐ 💻
- [ ] 11.4 DataAnnotations validation attributes 🔥 💻
- [ ] 11.5
ModelStateand automatic 400 responses 🔥 💻 - [ ] 11.6 Custom validation attributes and
IValidatableObject⭐ 💻 - [ ] 11.7 FluentValidation ⭐ 💻
- [ ] 11.8 Client-side vs server-side validation ⭐
- [ ] 11.9 File uploads —
IFormFile, streaming, limits, security ⭐ ⚠️ - [ ] 11.10 Over-posting / mass assignment 🔥 ⚠️
12. Filters and Cross-Cutting Concerns¶
- [ ] 12.1 The filter pipeline and the five filter types 🔥 🎯
- [ ] 12.2 Execution order, scopes, and
IOrderedFilter🔥 ⚠️ - [ ] 12.3 Sync vs async filter interfaces ⭐ 💻
- [ ] 12.4
ServiceFiltervsTypeFiltervs plain attribute 🔥 ⚠️ - [ ] 12.5 Exception filters vs exception middleware ⭐ ⚠️
- [ ] 12.6 Result filters and response shaping ⭐ 💻
- [ ] 12.7 Endpoint filters in Minimal APIs ⭐ 💻
- [ ] 12.8 Practical filters — logging, validation, caching, auditing ⭐ 💻
Phase 3 — Data Access¶
13. Entity Framework Core¶
- [ ] 13.1 ORM concepts; EF Core vs Dapper vs ADO.NET 🔥 🎯
- [ ] 13.2
DbContext,DbSet<T>, and context lifetime 🔥 ⚠️ - [ ] 13.3 Code First vs Database First ⭐
- [ ] 13.4 DataAnnotations vs Fluent API;
IEntityTypeConfiguration🔥 💻 - [ ] 13.5 Relationships and conventions 🔥 💻
- [ ] 13.6 Migrations — create, apply, roll back, script 🔥 💻
- [ ] 13.7 Change tracking, entity states,
AsNoTracking🔥 ⚠️ - [ ] 13.8 Eager vs lazy vs explicit loading 🔥 ⚠️
- [ ] 13.9 The N+1 query problem 🔥 ⚠️ 🎯
- [ ] 13.10 Client vs server evaluation 🔥 ⚠️
- [ ] 13.11 Raw SQL safely —
FromSqlRawvsFromSqlInterpolated🔥 ⚠️ 💻 - [ ] 13.12 Transactions and
SaveChangessemantics ⭐ 💻 - [ ] 13.13 Concurrency — optimistic vs pessimistic ⭐ 💻
- [ ] 13.14 Bulk operations —
ExecuteUpdate/ExecuteDelete⭐ - [ ] 13.15 Query performance — projections, split queries, compiled queries ⭐ ⚠️
- [ ] 13.16 Query filters, shadow properties, value converters, owned types ⭐
- [ ] 13.17 Seeding data
- [ ] 13.18 Connection resiliency and retries ⭐
- [ ] 13.19 Repository and Unit of Work — and the case against them 🔥 🧠
- [ ] 13.20 Testing data access — InMemory vs SQLite vs Testcontainers ⭐ ⚠️
14. Databases and Beyond EF¶
- [ ] 14.1 SQL fundamentals — joins, grouping, subqueries, window functions 🔥 💻
- [ ] 14.2 Indexes — clustered vs non-clustered, covering, and when they hurt 🔥 🎯
- [ ] 14.3 Transactions and isolation levels 🔥 ⚠️ 🎯
- [ ] 14.4 Deadlocks — causes and mitigation ⭐
- [ ] 14.5 Stored procedures, views, functions from EF Core ⭐
- [ ] 14.6 Query plans and basic tuning ⭐ 🧠
- [ ] 14.7 Dapper — usage and when it beats EF ⭐ 💻
- [ ] 14.8 NoSQL overview — Mongo, Cosmos, Redis ⭐
- [ ] 14.9 Migrations in CI/CD; zero-downtime schema change 🧠
- [ ] 14.10 Connection pooling and
DbContextpooling ⭐
Phase 4 — Security¶
15. Authentication¶
- [ ] 15.1 Authentication vs Authorization, stated precisely 🔥
- [ ] 15.2 Schemes, handlers,
ClaimsPrincipal,ClaimsIdentity🔥 🎯 - [ ] 15.3 Cookie authentication ⭐ 🎯
- [ ] 15.4 ASP.NET Core Identity ⭐ 💻
- [ ] 15.5 JWT structure — header, payload, signature 🔥 🎯
- [ ] 15.6 JWT bearer authentication and
TokenValidationParameters🔥 💻 - [ ] 15.7 Access vs refresh tokens; rotation and revocation 🔥 ⚠️ 🎯
- [ ] 15.8 OAuth 2.0 — roles, grants, authorization code + PKCE 🔥 🎯
- [ ] 15.9 OpenID Connect over OAuth 2.0 🔥 🎯
- [ ] 15.10 External logins, Duende IdentityServer, Entra ID, Auth0 ⭐
- [ ] 15.11 API keys, HMAC signing, mutual TLS ⭐
- [ ] 15.12 Where to store tokens client-side — cookie vs localStorage 🔥 ⚠️
- [ ] 15.13 Multi-tenant authentication basics 🧠
16. Authorization¶
- [ ] 16.1
[Authorize]and[AllowAnonymous]🔥 💻 - [ ] 16.2 Role-based authorization 🔥 💻
- [ ] 16.3 Claims-based authorization 🔥 💻
- [ ] 16.4 Policy-based authorization 🔥 💻
- [ ] 16.5 Custom requirements and handlers 🔥 💻
- [ ] 16.6 Resource-based authorization ⭐ 💻
- [ ] 16.7 Multiple schemes, fallback and default policies ⭐ ⚠️
- [ ] 16.8 Authorization in views, Razor Pages, Minimal APIs ⭐
- [ ] 16.9 Permission-based authorization at scale 🧠
17. Application Security¶
- [ ] 17.1 OWASP Top 10 mapped to ASP.NET Core defences 🔥 🎯
- [ ] 17.2 SQL injection and how parameterization stops it 🔥 ⚠️
- [ ] 17.3 XSS — Razor encoding,
HtmlString, CSP 🔥 ⚠️ - [ ] 17.4 CSRF — antiforgery tokens and SameSite 🔥 ⚠️ 🎯
- [ ] 17.5 HTTPS, HSTS, certificates, TLS termination ⭐
- [ ] 17.6 Data Protection API — and why it breaks in web farms ⭐ ⚠️
- [ ] 17.7 Secrets management 🔥
- [ ] 17.8 Password hashing — salting, PBKDF2, bcrypt, Argon2 ⭐ ⚠️
- [ ] 17.9 Security headers ⭐
- [ ] 17.10 Rate limiting and throttling ⭐ 💻
- [ ] 17.11 Input sanitization, upload security, path traversal ⭐ ⚠️
- [ ] 17.12 Insecure deserialization, SSRF, IDOR ⭐ 🧠
- [ ] 17.13 Audit logging, PII and GDPR ⭐
Phase 5 — Quality, Performance and Operations¶
18. Logging, Monitoring and Diagnostics¶
- [ ] 18.1
ILogger<T>, log levels, structured logging 🔥 💻 - [ ] 18.2 Logging providers ⭐
- [ ] 18.3 Serilog and NLog ⭐ 💻
- [ ] 18.4 Log scopes and correlation IDs ⭐ 💻
- [ ] 18.5 Health checks — liveness vs readiness 🔥 💻
- [ ] 18.6 Metrics and dashboards ⭐
- [ ] 18.7 Distributed tracing and OpenTelemetry ⭐ 🎯 🧠
- [ ] 18.8 Application Insights and APM tooling ⭐
- [ ] 18.9 Debugging production — dumps and
dotnet-*diagnostic tools ⭐ 🧠 - [ ] 18.10 What to log — and what never to log ⭐ ⚠️
19. Caching and Performance¶
- [ ] 19.1 Caching strategies — cache-aside, read/write-through, write-behind 🔥 🎯
- [ ] 19.2
IMemoryCache🔥 💻 - [ ] 19.3
IDistributedCacheand Redis 🔥 💻 - [ ] 19.4
HybridCacheand stampede protection ⭐ 🧠 - [ ] 19.5 Response caching and
Cache-Control⭐ - [ ] 19.6 Output caching and tag-based invalidation ⭐ 💻
- [ ] 19.7 Cache invalidation strategies and TTL design 🔥 ⚠️
- [ ] 19.8 ETags and conditional requests ⭐
- [ ] 19.9 Response compression
- [ ] 19.10
HttpClientFactoryand socket exhaustion 🔥 ⚠️ - [ ] 19.11 Resilience with Polly — retry, circuit breaker, timeout, bulkhead 🔥 💻 🎯
- [ ] 19.12 Async all the way; thread-pool starvation 🔥 ⚠️
- [ ] 19.13 Reducing allocations — pooling,
ArrayPool, source-generated JSON 🧠 - [ ] 19.14 Benchmarking and load testing ⭐
- [ ] 19.15 Systematic method for diagnosing a slow endpoint 🔥 🎯
20. Testing¶
- [ ] 20.1 The testing pyramid 🔥 🎯
- [ ] 20.2 xUnit vs NUnit vs MSTest;
[Fact],[Theory],[InlineData]🔥 💻 - [ ] 20.3 AAA, naming, and test independence ⭐
- [ ] 20.4 Mocking — Moq / NSubstitute; mocks vs stubs vs fakes 🔥 💻
- [ ] 20.5 FluentAssertions and Shouldly ⭐
- [ ] 20.6 Unit-testing controllers, services, filters, middleware 🔥 💻
- [ ] 20.7 Integration testing with
WebApplicationFactory🔥 💻 - [ ] 20.8 Testing against a real database — Testcontainers, Respawn ⭐ 💻
- [ ] 20.9 Test data builders, AutoFixture, Bogus ⭐
- [ ] 20.10 Code coverage — and why 100% is not the goal ⭐
- [ ] 20.11 TDD and BDD ⭐
- [ ] 20.12 Testing async code, time (
TimeProvider), and randomness ⭐ 💻
Phase 6 — Advanced and Architecture¶
21. Advanced ASP.NET Core Features¶
- [ ] 21.1
IHostedServiceandBackgroundService🔥 💻 - [ ] 21.2 Scoped services inside background services 🔥 ⚠️
- [ ] 21.3 Hangfire, Quartz.NET, and scheduled jobs ⭐
- [ ] 21.4 SignalR — hubs, groups, Redis backplane ⭐ 🎯
- [ ] 21.5 WebSockets vs SSE vs long polling ⭐ 🎯
- [ ] 21.6 gRPC in ASP.NET Core ⭐ 💻
- [ ] 21.7 Minimal APIs deep dive —
TypedResults, AOT ⭐ 🧠 - [ ] 21.8 Localization and globalization ⭐
- [ ] 21.9
IStartupFilterand startup work 🧠 - [ ] 21.10 Native AOT and trimming 🧠
- [ ] 21.11 Streaming requests and responses; large payloads ⭐ 🧠
- [ ] 21.12
IHttpContextAccessor— legitimate uses and dangers ⭐ ⚠️ - [ ] 21.13 Source generators 🧠
- [ ] 21.14 .NET Aspire ⭐
22. Architecture, Patterns and Design¶
- [ ] 22.1 SOLID with concrete C# examples 🔥 💻 🎯
- [ ] 22.2 DRY, KISS, YAGNI, composition over inheritance ⭐
- [ ] 22.3 Creational patterns 🔥 💻
- [ ] 22.4 Structural patterns 🔥 💻
- [ ] 22.5 Behavioural patterns 🔥 💻
- [ ] 22.6 Layered / N-tier architecture ⭐ 🎯
- [ ] 22.7 Clean / Onion / Hexagonal architecture 🔥 🎯
- [ ] 22.8 Domain-Driven Design building blocks ⭐ 🧠 🎯
- [ ] 22.9 CQRS, with and without event sourcing ⭐ 🎯
- [ ] 22.10 MediatR and the in-process mediator — plus the criticism ⭐ 💻
- [ ] 22.11 Vertical slice architecture 🧠
- [ ] 22.12 Event sourcing 🧠
- [ ] 22.13 Specification pattern; Result pattern vs exceptions ⭐ 🧠
- [ ] 22.14 Anti-patterns — anemic model, God object, service locator 🔥 ⚠️
23. Microservices and Distributed Systems¶
- [ ] 23.1 Monolith vs modular monolith vs microservices 🔥 🎯
- [ ] 23.2 Service boundaries and bounded contexts ⭐ 🧠
- [ ] 23.3 Synchronous communication and service discovery ⭐
- [ ] 23.4 Async messaging — RabbitMQ, Kafka, Service Bus ⭐ 🎯
- [ ] 23.5 MassTransit / NServiceBus ⭐
- [ ] 23.6 Message patterns — pub/sub, competing consumers, request/reply ⭐ 🎯
- [ ] 23.7 Delivery guarantees, idempotent consumers, dead-letter queues ⭐ ⚠️
- [ ] 23.8 Saga and Outbox patterns ⭐ 🎯 🧠
- [ ] 23.9 Eventual consistency and CAP ⭐ 🎯
- [ ] 23.10 API Gateway and BFF — YARP, Ocelot, APIM ⭐ 🎯
- [ ] 23.11 Resilience patterns in a distributed system ⭐ 🎯
- [ ] 23.12 Distributed caching and distributed locking 🧠
- [ ] 23.13 Cross-service observability ⭐
- [ ] 23.14 Configuration and secrets across services ⭐
- [ ] 23.15 Versioning and backward compatibility between services ⭐ ⚠️
24. DevOps, Hosting and Cloud¶
- [ ] 24.1 Publishing — framework-dependent vs self-contained, RIDs ⭐ 💻
- [ ] 24.2 Deploying to IIS, Linux + Nginx, Windows Services ⭐
- [ ] 24.3 A good multi-stage
Dockerfilefor ASP.NET Core 🔥 💻 - [ ] 24.4 Docker Compose for local multi-service dev ⭐ 💻
- [ ] 24.5 Kubernetes basics ⭐ 🎯
- [ ] 24.6 Probes, graceful shutdown, readiness in containers ⭐ ⚠️
- [ ] 24.7 CI/CD pipelines for .NET ⭐ 💻
- [ ] 24.8 Environment-specific config in pipelines ⭐
- [ ] 24.9 Azure hosting options compared ⭐
- [ ] 24.10 AWS equivalents
- [ ] 24.11 Blue-green, canary, and feature-flag releases ⭐ 🎯
- [ ] 24.12 Scaling — horizontal vs vertical, statelessness, sticky sessions 🔥 ⚠️ 🎯
- [ ] 24.13 Load balancers,
ForwardedHeaders, real client IP ⭐ ⚠️
Phase 7 — Interview Execution¶
25. Interview Preparation and Practice¶
- [ ] 25.1 The 50 most-asked questions — write out your own answers 🔥
- [ ] 25.2 Narrate the full request lifecycle, end to end 🔥 🎯
- [ ] 25.3 Live-coding drill — CRUD API with validation, auth and tests in 45 minutes 🔥 💻
- [ ] 25.4 Code-review exercises — spot the bug ⭐ 💻
- [ ] 25.5 System design worked examples 🔥 🎯
- [ ] 25.6 Debugging scenarios — slow API, memory growth, random 500s 🔥 🎯
- [ ] 25.7 Talking about your own projects 🔥
- [ ] 25.8 Behavioural questions in STAR format 🔥
- [ ] 25.9 Questions to ask the interviewer ⭐
- [ ] 25.10 What's new in .NET 6 → 10 🔥
- [ ] 25.11 Diagrams worth memorizing 🔥 🎯
- [ ] 25.12 Final-week revision plan and mock checklist 🔥
Suggested study order¶
| Stage | Sections | Focus |
|---|---|---|
| Week 1–2 | 1, 2, 3 | C#, LINQ, async, runtime |
| Week 3–4 | 4, 5, 6, 7, 8 | Pipeline, DI, config, routing — the heart of the framework |
| Week 5 | 9, 10, 11, 12 | Building APIs properly |
| Week 6 | 13, 14 | EF Core and SQL |
| Week 7 | 15, 16, 17 | Security |
| Week 8 | 18, 19, 20 | Logging, performance, testing |
| Week 9 | 21, 22 | Advanced features and architecture |
| Week 10 | 23, 24 | Distributed systems and DevOps |
| Week 11–12 | 25 | Practice, mocks, revision |
If you only have one week¶
Do every 🔥 topic in sections 4, 5, 6, 8, 10, 11, 12, 13, 15, 16, 19, then read CHEATSHEET.md and TRAPS.md twice, and rehearse 25.2 the request lifecycle narrative out loud until it's fluent.
If you have one hour¶
CHEATSHEET.md → TRAPS.md → DIAGRAMS.md. Nothing else.