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

.NET Aspire

Aspire for .NET 10: the AppHost and service orchestration, local distributed development, service discovery and configuration, service defaults, the dashboard and telemetry, integrations and deployment with aspire publish/deploy and azd.

  1. How do you build a .NET Aspire AppHost? Show how you add projects, SQL Server and Redis containers and references, and what WithReference and WaitFor actually do.

    Writing an Aspire AppHost: AddProject, AddSqlServer/AddDatabase, AddRedis, WithReference, WaitFor, data volumes and persistent containers, parameters for secrets, and how references become environment variables.

    Junior Coding .NET Aspire Β· πŸ”— 3 follow-ups
  2. What is Aspire (formerly .NET Aspire), and what problem does it solve for a team building several services on .NET 10? Explain the AppHost, what happens when you press F5 or run `aspire run`, and what Aspire is not.

    What Aspire is, the local distributed-development problem it solves, the AppHost and the developer inner loop, the dashboard, and the limits of what Aspire does.

    Beginner Theory .NET Aspire Β· πŸ”— 3 follow-ups
  3. What do Aspire service defaults give you? Walk through AddServiceDefaults and MapDefaultEndpoints: the OpenTelemetry, health check, service discovery and HTTP resilience set-up, and what you would change before production.

    The Aspire ServiceDefaults project: ConfigureOpenTelemetry with OTLP export, default health checks and the /health and /alive endpoints, service discovery, the standard resilience handler, and production hardening.

    Intermediate Theory .NET Aspire Β· πŸ”— 3 follow-ups
  4. How does Aspire service discovery and configuration work? Explain how connection strings and endpoints reach each service, what the https+http:// scheme means, and how the same code finds its dependencies when deployed.

    Aspire's configuration flow from AppHost references to environment variables, Microsoft.Extensions.ServiceDiscovery and its configuration provider, the https+http:// scheme and named endpoints, parameters, and how discovery works on Container Apps and Kubernetes.

    Intermediate Theory .NET Aspire Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world
  5. What are Aspire integrations? Explain the difference between hosting and client integrations, what a client integration adds beyond the plain SDK, and how you add Azure resources such as Service Bus and Storage, run them locally or provision them in Azure, and connect to ones that already exist.

    Aspire hosting vs client integrations, what client integrations register (DI, health checks, telemetry, resilience, configuration), Azure hosting integrations with emulators, local provisioning and existing resources, customising generated Bicep, and community integrations.

    Mid-Level Theory .NET Aspire Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world
  6. How do you use the Aspire dashboard while developing and debugging? Explain what the resources, console logs, structured logs, traces and metrics views show, how telemetry gets there, how you'd use it to find a slow or failing request across services, and why it isn't a production monitoring tool.

    The Aspire dashboard: resources and resource commands, console vs structured logs, traces and span details, metrics, how OTLP telemetry reaches it, the standalone dashboard, telemetry limits and security, and using it to debug cross-service problems.

    Mid-Level Theory .NET Aspire Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world
  7. How do you deploy an Aspire application? Explain aspire publish and aspire deploy, azd up to Azure Container Apps, generating Kubernetes (Helm) or Docker Compose output, how secrets, identity and the database get handled, and what Aspire does and doesn't do for you in production.

    Deploying Aspire apps: compute environments (Container Apps, Kubernetes, Docker Compose, App Service), aspire publish vs aspire deploy vs azd, generated Bicep and Helm, parameters and secrets, managed identity, migrations, CI/CD, and Aspire's responsibilities and limits in production.

    Senior Theory .NET Aspire Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world
  8. Your organisation already runs .NET services on a Kubernetes platform managed by a platform team, and a team wants to adopt Aspire. How do you evaluate it? Cover the benefits, the costs and lock-in, how it fits with existing Helm, GitOps and observability tooling, and how you would roll it out or decide against it.

    Evaluating Aspire adoption: benefits for the inner loop and consistency, lock-in and version churn, fit with an existing Kubernetes platform, Helm and GitOps, observability standards, adoption options (local-only, testing, full deployment), and how to decide and measure.

    Senior Architecture .NET Aspire Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world

🌐 Sangam's Webring

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