📁 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 18 — Cloud and DevOps

Running .NET 10 in the cloud: the Azure services Australian employers use most (plus AWS equivalents), containers and Kubernetes, reverse proxies and gateways, CI/CD with GitHub Actions and Azure DevOps, and infrastructure as code.

  1. What are the main Azure services a .NET team uses day to day, and what is each one for? Walk me through where a typical ASP.NET Core API, its database, secrets, files, messages and telemetry would live in Azure.

    The core Azure services for a .NET 10 workload (compute, Azure SQL, Storage, Key Vault, Service Bus, App Configuration, Application Insights and Azure Monitor) and how they fit together.

    Beginner Theory Azure Β· πŸ”— 3 follow-ups
  2. You are starting a new .NET 10 API on Azure. How do you choose between App Service, Azure Functions, Container Apps and AKS? Compare them on cost, control, scaling and the operations work your team takes on, and tell me when you would move from one to another.

    Choosing an Azure compute option for .NET 10 (App Service, Functions, Container Apps, AKS) by cost model, control, scaling, networking and operational burden, and when to migrate between them.

    Intermediate Theory Azure Β· πŸ”— 2 follow-ups
  3. How do Azure Functions work for a .NET 10 team? Explain the isolated worker model, triggers and bindings, the hosting plans (Flex Consumption, Premium, Dedicated), cold starts and how you reduce them, and when you would use Durable Functions.

    Azure Functions for .NET 10: the isolated worker model, triggers and bindings, Flex Consumption vs Premium vs Dedicated plans, cold starts and timeouts, and Durable Functions orchestrations.

    Mid-Level Theory Azure Β· πŸ”— 2 follow-ups Β· πŸ›  1 real-world
  4. Azure has Blob Storage, Queue Storage, Service Bus, Event Grid and Event Hubs. What is each one for, how do they differ in delivery, ordering, size limits and retention, and how do you pick the right one for files, commands, notifications and telemetry streams?

    Comparing Azure Blob Storage, Queue Storage, Service Bus, Event Grid and Event Hubs by purpose, delivery guarantee, ordering, message size and retention, with a decision guide for .NET teams.

    Intermediate Theory Azure Β· πŸ”— 3 follow-ups
  5. Show me how a .NET 10 API on Azure reaches Key Vault, Azure SQL and Blob Storage with managed identity and no secrets. Cover DefaultAzureCredential, system versus user-assigned identities, the RBAC roles and SQL users you create, and how developers run the same code locally.

    Implementing passwordless access from a .NET 10 app to Key Vault, Azure SQL and Blob Storage with managed identity: Azure.Identity credentials, system vs user-assigned identities, RBAC role assignments in Bicep, contained SQL users, and local development.

    Mid-Level Coding Azure Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world
  6. Design a production-ready hosting setup on Azure for a customer-facing .NET 10 API that holds personal information. Cover App Service or Container Apps, deployment slots or revisions, private endpoints and VNet integration, how traffic gets in, identity, monitoring, and how you use Australia East and Australia Southeast for resilience and data residency.

    Architecture of a production .NET 10 API on Azure App Service or Container Apps: zone redundancy, slots or revisions, VNet integration and private endpoints, Front Door or Application Gateway with WAF, managed identity, monitoring, and Australia East / Southeast disaster recovery and data residency.

    Senior Architecture Azure Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world
  7. Finance tells you the Azure bill for your team's subscription tripled last month, and nobody knows why. Walk me through how you find the runaway resource with Cost Management, stop the bleeding, fix the root cause, and put budgets, alerts and guardrails in place so it doesn't happen again.

    Investigating and fixing an Azure cost spike: Cost analysis by service, resource and meter, Log Analytics usage queries, common runaway causes, budgets and anomaly alerts, tagging and Azure Policy guardrails, and FinOps habits.

    Senior RealWorldScenario Azure Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world
  8. Your .NET 10 API works on your laptop, but after deploying to Azure App Service it fails at startup with 403 Forbidden from Key Vault, and later calls to Azure SQL fail with "Login failed for user '<token-identified principal>'". How do you diagnose identity, RBAC and network problems step by step, and fix them properly?

    Debugging 403 and login failures from Azure-hosted .NET apps to Key Vault, Azure SQL and Storage: which identity is used, managed identity configuration, data-plane RBAC, Key Vault access policy vs RBAC mode, contained SQL users, firewalls and private endpoints, and propagation delays.

    Senior Debugging Azure Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world
  9. Your .NET Lambda function has a p99 cold start of two seconds. What would you measure first, and which changes would you try, in what order?
    Intermediate Theory AWS
  10. You know Azure well, but this role runs on AWS. What are the AWS equivalents of App Service, Azure Functions, Azure SQL, Blob Storage, Key Vault, Service Bus and Azure Monitor / Application Insights, and where do the equivalents differ in ways that would catch an Azure developer out?

    Maps the core Azure services a .NET team uses (App Service, Functions, Azure SQL, Blob, Key Vault, Service Bus, Monitor) to their AWS counterparts (Elastic Beanstalk/App Runner/ECS, Lambda, RDS, S3, Secrets Manager, SQS/SNS, CloudWatch/X-Ray) and the differences that matter: IAM, regions and accounts.

    Junior Theory AWS Β· πŸ”— 3 follow-ups
  11. How would you run a .NET 10 workload on AWS? Explain Lambda and its .NET runtime (cold starts, Native AOT, SnapStart), ECS on Fargate versus EKS for containerised APIs, and what RDS for SQL Server gives you and costs you. When would you choose each?

    Covers .NET 10 on AWS Lambda (managed dotnet10 runtime, cold starts, Native AOT, SnapStart, ASP.NET Core hosting), ECS on Fargate versus EKS for containers, and RDS for SQL Server (licensing, Multi-AZ, limits), with when to choose each.

    Intermediate Theory AWS Β· πŸ”— 3 follow-ups
  12. Compare Amazon SQS and SNS with Azure Service Bus. How do you fan out one event to several consumers on AWS, what do FIFO queues and message groups give you, how does the visibility timeout differ from Service Bus peek-lock, and how do dead-letter queues and redrive work?

    Compares SQS and SNS with Azure Service Bus: queues vs topics, SNS-to-SQS fan-out with filter policies, FIFO queues with message group ids and deduplication, visibility timeout vs peek-lock, and dead-letter queues with maxReceiveCount and redrive.

    Mid-Level Theory AWS Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world
  13. Show me how a .NET 10 API on AWS uses the AWS SDK for .NET without any access keys. How do IAM roles and the default credential chain work in ECS, Lambda and on a developer's laptop, how do you read secrets from Secrets Manager (and keep up with rotation), and how do your logs end up in CloudWatch?

    Coding question on keyless AWS access from .NET 10: AWSSDK.Extensions.NETCore.Setup and the default credential chain, ECS task roles versus execution roles, local development with IAM Identity Center profiles, Secrets Manager with caching and rotation, and structured logs to CloudWatch Logs.

    Mid-Level Coding AWS Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world
  14. Your CTO wants the new .NET 10 platform to be multi-cloud, running on both Azure and AWS, "to avoid lock-in". How do you evaluate that? When should a .NET team avoid multi-cloud, what does it really cost, and if you stay on one cloud, how do you keep the code portable enough that a future move is realistic?

    Architecture question on multi-cloud for .NET teams: the variants (active-active, cloud-per-workload, portable single cloud), real costs (lowest common denominator, egress, skills, security surface), when to avoid it, and how to keep code portable with ports and adapters, containers, OpenTelemetry, Terraform and exit plans.

    Senior Architecture AWS Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world
  15. What is the difference between the .NET sdk, aspnet, runtime, runtime-deps and chiseled container images, and which do you use for what?
    Junior Theory Containers
  16. Your chiseled .NET container has no shell. How do you debug it in production?
    Intermediate Coding Containers
  17. How do you run integration tests against a real SQL Server in CI using Testcontainers?
    Junior Theory Containers
  18. How would you run EF Core migrations when deploying a .NET service to Kubernetes with Helm, and how do you keep rollback safe?
    Mid-Level Theory Containers
  19. What is a container, and how is it different from a virtual machine? Explain images versus containers, image layers, and why most teams now ship .NET services as containers.

    Containers versus VMs (shared kernel, namespaces and cgroups), images versus running containers, layered images and caching, and why .NET 10 services are shipped as container images.

    Junior Theory Containers Β· πŸ”— 3 follow-ups
  20. Write a production Dockerfile for a .NET 10 ASP.NET Core API. Explain the multi-stage build, layer caching for NuGet restore, chiseled base images and running as a non-root user, and when you would use dotnet publish container support instead of a Dockerfile.

    A production-grade multi-stage Dockerfile for .NET 10 (restore caching, publish, chiseled aspnet runtime, non-root, port 8080, .dockerignore) and the Dockerfile-less alternative with dotnet publish /t:PublishContainer.

    Intermediate Coding Containers Β· πŸ”— 3 follow-ups

🌐 Sangam's Webring

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