📁 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.

Phase 21 — System Design

System design interviews for senior .NET engineers: a repeatable method from requirements to capacity estimates, API, data, caching, scaling and failure design; the classic systems to design; and the trade-offs, bottlenecks and costs a senior is expected to discuss.

  1. How do you gather requirements in a system design interview, and which non-functional requirements do you always ask about?

    DUPLICATE STUB created by mistake by the scheduled run on 2026-11-22 (follow-up text did not match). Full question is 1051. Please delete; not linked anywhere.

    Beginner Theory Core System Design
  2. Walk me through a capacity estimate: from daily active users to requests per second, storage and bandwidth, including peak factors.

    DUPLICATE STUB created by mistake by the scheduled run on 2026-11-22 (follow-up text did not match). Full question is 1052. Please delete; not linked anywhere.

    Beginner Theory Core System Design
  3. What is a system design interview, and what is the interviewer actually looking for? Walk me through a step-by-step method you could use for any design question, from the first five minutes to the last.

    What a system design interview tests and a repeatable eight-step method: requirements, estimates, API, data model, high-level diagram, deep dives, failure modes and trade-offs.

    Beginner Theory Core System Design Β· πŸ”— 3 follow-ups
  4. In a system design interview, how do you gather requirements? Explain the difference between functional and non-functional requirements, the questions you always ask, and how you write down assumptions and what is out of scope before you design anything.

    Requirements gathering for a design: functional vs non-functional requirements, the standard clarifying questions (scale, latency, availability, consistency, security, data residency), and recording assumptions and scope.

    Junior Theory Core System Design Β· πŸ”— 3 follow-ups
  5. Walk me through a capacity estimate: from daily active users to requests per second, storage and bandwidth, including peak factors. Use a worked example, show the arithmetic, and tell me how the numbers change your design.

    Back-of-the-envelope capacity estimation: DAU to average and peak requests per second, storage per year, bandwidth and cache size, with useful rounding numbers and how the result drives design choices.

    Intermediate Theory Core System Design Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world
  6. In a system design, how do you choose the data store? Compare relational, document, key-value, search and blob storage, explain how you start from the access patterns rather than the technology, and tell me when you would use more than one.

    Choosing data stores from access patterns: relational (Azure SQL), document (Cosmos DB), key-value (Redis), search (Azure AI Search) and blob storage, with consistency, query and cost trade-offs and when polyglot persistence is worth it.

    Intermediate Theory Core System Design Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world
  7. What is your scaling strategy for a web system as load grows? Compare vertical and horizontal scaling, explain why stateless services matter, and when you would add caching, read replicas, partitioning and queues — in what order, and why.

    A staged scaling strategy: vertical vs horizontal scaling, stateless ASP.NET Core services, caching, read replicas, queue-based load levelling and partitioning, with the order to apply them and the trade-offs of each.

    Mid-Level Theory Core System Design Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world
  8. How do you design a system for fault tolerance? Explain redundancy, availability zones and regions (for example Australia East and Australia Southeast), timeouts, retries and circuit breakers, and graceful degradation — and how you decide how much resilience a system actually needs.

    Designing for fault tolerance: eliminating single points of failure, zone and region redundancy in Australia East/Southeast, timeouts, retries with backoff, circuit breakers, bulkheads, graceful degradation, RTO/RPO and choosing the right level of resilience.

    Mid-Level Theory Core System Design Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world
  9. How do you build security and observability into a system design from the start rather than bolting them on later? In a design interview, what do you say about trust boundaries, identity, data protection and privacy, and about logs, metrics, traces and SLOs?

    Security and observability as first-class design concerns: trust boundaries, identity between services, encryption and secrets, privacy and data residency, plus logs, metrics, traces, SLOs and alerts designed alongside the architecture.

    Mid-Level Theory Core System Design Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world
  10. How do you drive a system design interview? Tell me how you manage the time, think aloud, use the whiteboard, handle an interviewer who pushes back on your choices or drops a hint, and recover when you realise part of your design is wrong.

    The behavioural side of system design interviews: time management, thinking aloud, structuring the whiteboard, treating pushback and hints as signals, changing course gracefully and closing with trade-offs.

    Senior Behavioral Core System Design Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world
  11. How do you generate unique, short IDs across many service instances without a single database bottleneck?

    Distributed ID generation for short codes: leased ID ranges, Snowflake-style 64-bit IDs and UUIDv7, with their length, coordination, ordering and failure trade-offs.

    Mid-Level SystemDesign Systems to Design
  12. Design a URL shortener like the ones used in marketing emails and SMS. Clarify the requirements, estimate the scale, then walk me through the API, how you generate short codes, the data model, how redirects stay fast at peak, and what fails first.

    A full URL shortener design: requirements, capacity estimate, API, short-code generation (counter + Base62 vs hashing vs random), data model, read-heavy caching with a CDN and Redis, 301 vs 302 redirects, abuse and failure modes, mapped to Azure and .NET 10.

    Mid-Level SystemDesign Systems to Design Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world
  13. Design a rate limiter for a public API used by thousands of partner API keys. Each plan has its own limits, the API runs on many instances in more than one region, and partners need to know when they can retry. Walk me through the algorithm, where the limiter sits, the shared state, and what happens when that state is unavailable.

    A full distributed rate limiter design: requirements and plans, algorithm choice (token bucket vs sliding window), placement (edge, gateway, in-app), shared state in Redis with atomic Lua scripts, per-key and per-region limits, 429 with Retry-After, fail-open vs fail-closed, and the .NET 10 rate limiting middleware.

    Mid-Level SystemDesign Systems to Design Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world
  14. Design a notification system that sends email, SMS and push notifications for many product teams. Users have channel preferences and quiet hours, providers fail and throttle, and some messages (password resets) are urgent while others (marketing) are not. Walk me through the API, the pipeline, retries, deduplication and rate limits.

    A full multi-channel notification platform design: requirements, capacity estimate, send API with idempotency keys, templating and preference checks, priority queues per channel, provider adapters with retries, failover and throttling, deduplication, delivery tracking, Spam Act consent, mapped to Azure Service Bus, Communication Services and Notification Hubs.

    Senior SystemDesign Systems to Design Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world
  15. Design a chat system like a customer-support or team messaging app: one-to-one and group conversations, real-time delivery to web and mobile, message history, read receipts and offline users. How do you deliver messages in real time with SignalR at scale, store history, keep ordering, and handle reconnects?

    A full chat system design: requirements, connection and message estimates, real-time delivery with ASP.NET Core SignalR and Azure SignalR Service, message storage partitioned by conversation in Cosmos DB, per-conversation sequence numbers, client message ids for dedup, offline delivery via push, read receipts, presence and failure modes.

    Senior SystemDesign Systems to Design Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world
  16. Design the payment integration for an Australian e-commerce site that takes card payments through a payment service provider. Walk me through the payment flow and state machine, how you keep PCI DSS scope small, how you make charges idempotent when a request times out, how you handle webhooks, and how you reconcile with the provider's settlement reports.

    A full payment gateway integration design: requirements and volumes, hosted fields and tokenisation to minimise PCI DSS scope, a payment state machine with 3-D Secure, idempotency keys and unknown-outcome handling, verified and deduplicated webhooks, daily reconciliation against settlement reports, and failure modes, in .NET on Azure.

    Senior SystemDesign Systems to Design Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world
  17. Design the money-transfer core of a bank or digital wallet: customers move money between their own accounts and to other customers. How do you model the ledger with double-entry bookkeeping, keep balances correct under concurrent transfers, guarantee a transfer is applied exactly once, handle transfers to other banks that settle later, and make everything auditable?

    A full banking transfer design: requirements and volumes, an append-only double-entry ledger with journal entries and postings, balance maintenance with concurrency control and overdraft checks, idempotency keys, pending and clearing accounts for external transfers, hot accounts, auditability with immutable records and SQL ledger tables, and reconciliation, in .NET on Azure SQL.

    Senior SystemDesign Systems to Design Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world
  18. Design the checkout for an e-commerce site that must never oversell, including during a Black Friday flash sale where thousands of people try to buy the last few hundred units of one product. Walk me through cart, inventory reservation, payment and order confirmation, how reservations expire, and what happens when payment fails or a service crashes mid-checkout.

    A full e-commerce checkout design: requirements and peak estimates, atomic inventory reservation with expiry, the order saga across inventory, payment and orders with compensation, idempotent steps, hot-SKU contention in flash sales (sub-buckets, Redis counters, waiting room), multi-warehouse stock, and failure modes on Azure.

    Senior SystemDesign Systems to Design Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world
  19. Design a booking system that must never double-book: appointments with practitioners at a chain of clinics, or reserved seats for a concert. Walk me through availability search, holding a slot or seat while the customer pays, preventing two people from booking the same thing, cancellations, and surviving a big on-sale rush.

    A full booking system design: requirements and on-sale estimates, slot and seat data models, double-booking prevention with unique constraints or locked range checks, holds with expiry, idempotent confirm with payment, availability caching, waiting rooms for on-sales, time zones and cancellations, on Azure with .NET.

    Senior SystemDesign Systems to Design Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world
  20. Design a multi-tenant SaaS platform, for example a rostering or practice-management product sold to hundreds of Australian businesses. Walk me through tenant isolation in the data and compute layers, how you stop one noisy tenant hurting the others, how a new tenant is onboarded, and how you meet a customer who insists their data stays in Australia.

    A full multi-tenant SaaS design: requirements and tenant-mix estimates, tenant resolution, pooled vs siloed data and compute (shared schema with TenantId and row-level security, database per tenant in elastic pools), noisy-neighbour controls, automated onboarding, per-tenant observability and cost, and data residency in Azure Australia East/Southeast.

    Senior SystemDesign Systems to Design Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world

🌐 Sangam's Webring

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