Skip to content
Tech Intuition
Tech Intuition

Appearance

Theme

Signal · Dark with amber

Background

Slow stars and the odd comet

Connect

Read first: How big-tech interviews work, round by round

By the end you will be able to
  • Use your C# and .NET background as an advantage in coding rounds without leaning on it as a crutch.
  • Explain the core C# and runtime topics (value types, LINQ, async/await, garbage collection) clearly and correctly.
  • Map general system design components to Azure services, concept first and product second.
  • Prepare behavioural stories that show learning, feedback and collaboration.

1 code sample (14 lines), collapsed so the explanation stays in focus.

This lesson is for engineers whose daily language is C# and who are aiming at Microsoft or similar .NET-heavy teams. It contains no insider information: processes vary by team, level and year, so treat everything about the loop as the common shape and confirm details with your recruiter.

The Microsoft interview loop, as commonly described

Candidates usually report a recruiter conversation first, then a set of interviews in one sitting (often called a loop) that mixes coding, design and behavioural questions, with a manager or senior interviewer in the mix. The mix depends on level: early-career loops lean on coding, and senior loops add design depth and scope. This is reported, not published: Microsoft describes an initial interview and a final round for selected candidates, but not an exact structure, and the structure varies by team, level and year. See how big-tech interviews work for the shape and for what to ask your recruiter, including which languages are allowed and which tools are used.

Use C# on purpose in Microsoft interviews

If your interviewers allow your preferred language (confirm this), C# is a good choice. You are fluent in it, and its standard library has what coding rounds need: Dictionary, HashSet, Queue, Stack, PriorityQueue and StringBuilder. Do your coding practice in C# for the same reason, so that the standard library is second nature on the day.

Habits that read well in an interview:

  • Idiomatic but plain. Clear names, early returns, TryGetValue, foreach over index loops where you do not need the index. Avoid cleverness.
  • LINQ with care. It is great for clarity, but know the cost. A query is lazy, and re-enumerating it repeats the work. In a hot loop, a plain loop is often clearer and cheaper.
  • State the numeric limits. int overflows silently, so say when you would use long.
  • Do not over-engineer. Interfaces and dependency injection are good engineering, but a 45-minute coding round rewards a correct, tested solution, not an architecture.
  • Never say "the library does it" and stop. If you use Array.Sort or PriorityQueue, state the complexity and what it does.

C# and runtime topics to know cold

Interviewers for .NET roles often probe the language and runtime to see whether you understand what your code does. Be ready to explain, in plain words and with an example:

TopicWhat to be able to say
Value vs reference typesA struct is copied on assignment and stored inline; a class is a reference. Converting a value type to object or an interface boxes it (allocates). Prefer small, immutable structs.
stringImmutable. == on strings compares contents. Building a string in a loop with += is O(n²); use StringBuilder.
IEnumerable<T> and LINQQueries are lazy (deferred execution) and re-run each time they are enumerated. ToList() materialises. IQueryable<T> builds an expression tree for a provider such as a database.
async / awaitawait frees the thread while an operation is pending and resumes afterwards; it does not by itself create a thread. Blocking on .Result or .Wait() can deadlock where a synchronisation context exists (UI apps, classic ASP.NET).
Garbage collectionA generational GC (young objects are collected most often). Very large objects (around 85,000 bytes and up) go on the large object heap. The GC manages memory, not other resources.
IDisposable and usingusing guarantees Dispose runs, which releases unmanaged resources such as files and connections promptly. A finalizer is only a backstop.
EqualityEquals, GetHashCode and == must agree for types used as dictionary keys. Records give value equality for free.
Delegates, lambdas, closuresA lambda can capture variables, not just values, so be careful with loop variables and with lifetimes.
Concurrencylock, Interlocked, ConcurrentDictionary, Task. Know what a race condition is and one way to avoid it.
GenericsConstraints (where T : ...), and why generics avoid boxing for value types.

A good answer is short, correct and has a concrete example. For instance, deferred execution is something you can show:

C#14 lines
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;

var source = new List<int> { 1, 2, 3 };
var query = source.Where(x => x > 1);            // nothing has run yet
source.Add(4);
Debug.Assert(query.Count() == 3);                // runs now, over the current data: 2, 3, 4

var snapshot = source.Where(x => x > 1).ToList();    // runs once, right now
source.Add(5);
Debug.Assert(snapshot.Count == 3);               // unchanged: a copy of the earlier result
Debug.Assert(source.Where(x => x > 1).Count() == 4);

The point of an example like this is not the syntax. It is that you can predict what happens, say why, and name the fix (materialise once with ToList()).

System design with Azure vocabulary

The design principles do not change: use the framework, estimate scale, choose components for stated reasons, and discuss failure. If you work in the Microsoft ecosystem, it helps to know where the generic building blocks map to Azure services. Lead with the concept, then name the product.

Generic componentAzure examples
Load balancer / traffic routingAzure Load Balancer, Application Gateway, Front Door
CacheAzure Cache for Redis
Message queueAzure Service Bus, Storage Queues
Event streaming (log)Azure Event Hubs
Relational databaseAzure SQL Database
NoSQL / globally distributed storeAzure Cosmos DB
Object storageAzure Blob Storage
ComputeApp Service, Azure Functions, Azure Kubernetes Service
API gatewayAzure API Management
IdentityMicrosoft Entra ID

Treat this as vocabulary, not a requirement. An answer built on clear concepts (caching, queues, sharding, consistency) is better than a list of product names. Offer a product when it clarifies a point, for example "I would use a managed queue such as Service Bus so we get retries and dead-lettering without building them."

The growth-mindset theme at Microsoft

Microsoft's leadership has publicly described a culture built around a growth mindset: curiosity, learning from mistakes and feedback, and collaboration. Whatever the team, behavioural questions often probe those qualities. Prepare stories that show:

  • You learned something hard quickly, and how.
  • You received difficult feedback and changed.
  • You owned a mistake and fixed the cause.
  • You made a colleague or a team better.
  • You worked across disciplines or teams to solve a problem.

Do not recite the phrase "growth mindset". Show it through specific, honest examples.

Adapting the 12-week plan for Microsoft

Keep the 12-week structure and adjust:

Plan element.NET adjustment
Coding practiceDo all of it in C#. Re-type the common templates (two pointers, sliding window, binary search) from memory.
Weeks 1 to 2Add a few short sessions reviewing the C# topics above.
System designPractise saying each component concept first, then one Azure example.
Mock interviewsAsk your partner to probe C# and runtime questions in a coding round.
BehaviouralAdd two growth-oriented stories to your bank.

Common mistakes in Microsoft interviews

  • Relying on library calls without stating their complexity.
  • Writing enterprise-style code (many classes, interfaces) in a coding round.
  • Treating "I know .NET" as an answer. Interviewers want mechanism, not familiarity.
  • Name-dropping Azure products without explaining the design.
  • Ignoring the behavioural round because the technical one feels like home ground.

Summary

Use C# deliberately: idiomatic, simple code with stated complexities and limits. Know the runtime topics well enough to apply them to new cases, map general design components to Azure vocabulary after the concept, and prepare behavioural stories that show learning and collaboration. Confirm the specifics of the loop with your recruiter.

Check yourself

Try answering out loud before you reveal each answer.

QuestionWhat does deferred execution mean for a LINQ query, and what is the usual fix when it causes repeated work?Reveal answer

The query does not run when you define it; it runs each time you enumerate it, over the data as it is at that moment. Materialise it once with ToList() or ToArray() when you need a stable result or want to avoid re-running it.

QuestionDoes await create a new thread?Reveal answer

Not by itself. It frees the current thread while the operation is pending and resumes the method afterwards. Blocking on .Result or .Wait() can deadlock when a synchronisation context exists, such as in a UI app.

QuestionWhy prefer concepts first and Azure product names second in a design answer?Reveal answer

The interviewer is assessing your reasoning about components and trade-offs, which transfers to any platform. A product name is only useful once the concept it implements is clear.

Sources

Lesson 3 of 14

Nice. Lock it in, then keep going.

Up next · Lesson 4Microsoft system design interview: how to prepareWhat Microsoft publishes about its interviews, the five Well-Architected pillars as a trade-off checklist, the Azure patterns worth naming, a worked file-sync design with senior follow-ups, and a tested C# circuit breaker.

Send a message

It goes straight to my inbox. I usually reply within a few days.