📁 Sangam Dhakal - Portfolio v2.0 - Netscape Navigator 4.0
_
□
×

πŸ“š .NET Interview Questions

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.

Senior Design Focus

What a senior is expected to discuss in a design: bottlenecks, partitioning and sharding, availability maths, consistency trade-offs, event-driven design, cost optimisation, security boundaries and evolving a system as it grows.

  1. You've drawn a design on the whiteboard and the interviewer asks: "Where does this break first as load grows?" How do you find the bottlenecks in a design? Walk me through the usual suspects — the single database, hot partitions, synchronous call chains and shared locks — how you spot each one from the diagram and the numbers, and what you do about it.

    Finding bottlenecks in a system design: utilisation from capacity estimates, the single database, hot partitions, synchronous call chains, shared locks and serialisation points, and the fix for each.

    Mid-Level Theory Senior Design Focus Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world
  2. Your design has outgrown a single database. How do you partition and shard the data? Explain how you choose a shard key, what hot keys are and how you deal with them, how you reshard when you need more capacity, and what happens to queries that need data from more than one shard. Use Azure SQL and Cosmos DB as examples.

    Partitioning and sharding in system design: choosing a shard key from access patterns, hash vs range vs directory sharding, hot keys, resharding with consistent hashing or a shard map, cross-shard queries, and Azure SQL vs Cosmos DB.

    Senior Theory Senior Design Focus Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world
  3. Your product manager says the new platform must have "five nines". What does that actually mean? Explain how availability is measured, how serial and parallel dependencies combine, what downtime 99.9%, 99.95% and 99.99% allow per month, and how you would design to hit a realistic target on Azure.

    Availability maths for system design: the nines and allowed downtime, composite availability for serial and parallel dependencies, redundancy across zones and regions, SLA vs SLO, MTTR and MTBF, and designing to a realistic Azure target.

    Senior Theory Senior Design Focus Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world
  4. In a design interview you've proposed a cache, a read model and a few services that talk through events. The interviewer asks: "So which parts of this are strongly consistent and which aren't?" How do you decide where a design needs strong consistency and where eventual consistency is fine, how do you make the eventual parts safe, and how do you explain the trade-off to a product owner?

    Consistency trade-offs in system design: classifying data by the cost of staleness, invariants that need strong consistency, where eventual consistency is safe, read-your-writes and other session guarantees, compensations, and explaining it to stakeholders.

    Senior Theory Senior Design Focus Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world
  5. Your team wants to redesign a growing system around events: every service publishes what happened and the others react. When do events actually simplify a system, and when do they just hide the complexity somewhere harder to see? Walk me through how you would decide, what you would make event-driven and what you would keep as direct calls, and how you keep an event-driven design understandable and debuggable.

    Event-driven design trade-offs: decoupling and temporal independence vs hidden flows, eventual consistency, ordering, duplicates and schema evolution; notification vs state-carried events; choreography vs orchestration; and keeping it observable on Azure.

    Senior Architecture Senior Design Focus Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world
  6. Your design works, but finance says the projected Azure bill is too high. How do you treat cost as a design constraint? Walk me through how you estimate the monthly cost of a design from the capacity numbers, which components usually dominate, and the techniques you use to design the cost down without hurting reliability or security.

    Cost as a system design constraint: estimating monthly Azure cost from capacity numbers, the usual cost drivers (compute, database, egress, telemetry, idle environments), design and commercial levers, unit economics, and FinOps practice.

    Senior Architecture Senior Design Focus Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world
  7. The interviewer points at your design diagram and asks: "Where are the security boundaries?" How do you design security boundaries into a system? Explain trust zones, private networking, how services prove their identity to each other, and how you limit the blast radius when one component is compromised, using Azure as the example.

    Security boundaries in system design: trust zones and where to enforce them, private networking (VNets, private endpoints, egress control), workload identity between services, least privilege, data segmentation and blast-radius reduction on Azure.

    Senior Architecture Senior Design Focus Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world
  8. You're the architect for a new consumer product on Azure. It launches with about 1,000 users, but the business plan says 10 million within a few years. How would the design evolve from 1,000 to 10 million users? Tell me what you would build on day one, what changes at roughly each 10× step, what triggers each change, and what you would deliberately not build yet.

    Evolving a system design from 1,000 to 10 million users: a simple day-one architecture, the changes at each order of magnitude (caching, replicas, async work, CDN, partitioning, multi-region, cells), the metrics that trigger each step, and avoiding premature scale.

    Staff / Architect Architecture Senior Design Focus Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world

🌐 Sangam's Webring

βͺ Previous 🏠 Main Next ⏩
πŸ’¬ Chat with me