The twelve-factor app, externalised configuration and secrets, health checks, graceful shutdown and container readiness, service-to-service communication, distributed tracing and resilience for .NET services.
-
Your ASP.NET Core app works with one replica, but after scaling to three, users are randomly logged out and antiforgery validation fails. What is wrong?
Junior
Theory
Cloud-Native Patterns
-
What is the difference between IOptions<T>, IOptionsSnapshot<T> and IOptionsMonitor<T>, and which do you use when configuration can change at run time?
Intermediate
Theory
Cloud-Native Patterns
-
What is the twelve-factor app? Walk me through the factors that matter most for a .NET service and map each one to an ASP.NET Core feature, and tell me which factors you would bend in practice.
Covers the twelve-factor methodology and maps codebase, dependencies, config, backing services, build/release/run, stateless processes, port binding, concurrency, disposability, dev/prod parity, logs and admin processes to ASP.NET Core and .NET 10 features.
Junior
Theory
Cloud-Native Patterns
Β· π 3 follow-ups
-
How do you externalise configuration and secrets for a .NET service running in the cloud? Compare environment variables, Azure App Configuration, Azure Key Vault and secrets mounted as files, explain how each reaches IConfiguration, and how you handle refresh and rotation.
Covers externalised configuration for cloud-hosted .NET services: environment variables, Azure App Configuration, Key Vault (direct and via references), Kubernetes and Container Apps secrets mounted as files with the key-per-file provider, managed identity, refresh with IOptionsMonitor and secret rotation.
Intermediate
Theory
Cloud-Native Patterns
Β· π 3 follow-ups Β· π 1 real-world
-
How do graceful shutdown and container readiness work for an ASP.NET Core service on Kubernetes or Azure Container Apps? Explain what happens from SIGTERM to process exit, the role of IHostApplicationLifetime and HostOptions.ShutdownTimeout, connection draining, and how startup and readiness probes stop traffic reaching a pod that is not ready.
Covers the container lifecycle for a .NET service: startup, readiness and liveness probes, the SIGTERM to SIGKILL sequence and terminationGracePeriodSeconds, the Generic Host's shutdown path, IHostApplicationLifetime events, HostOptions.ShutdownTimeout, preStop delays for endpoint propagation and draining background work.
Mid-Level
Theory
Cloud-Native Patterns
Β· π 3 follow-ups Β· π 1 real-world
-
How should cloud-native .NET services talk to each other? Compare synchronous HTTP/JSON, gRPC and asynchronous messaging, explain how you secure the call with service identity and mTLS, and how you decide which style to use for a given interaction.
Covers service-to-service communication for .NET services: HTTP/JSON with IHttpClientFactory and the standard resilience handler, gRPC over HTTP/2, messaging with Azure Service Bus, temporal coupling, service identity with Entra ID tokens and managed identity, mTLS from a service mesh or platform, and how to choose per interaction.
Mid-Level
Theory
Cloud-Native Patterns
Β· π 3 follow-ups Β· π 1 real-world
-
You are the senior engineer setting standards for new .NET services that will run on Azure Container Apps or AKS. What goes on your cloud-native service checklist? Cover statelessness, health, telemetry, resilience, configuration and secrets, security and operability, and explain how you would enforce it across teams without slowing them down.
Covers a cloud-native readiness checklist for .NET services: stateless design, probes and graceful shutdown, OpenTelemetry logs, metrics and traces, resilience and timeouts, externalised config and managed identity, container security, scaling and operability, and enforcing it through a service template, Aspire service defaults, pipeline gates and platform policy.
Senior
Architecture
Cloud-Native Patterns
Β· π 3 follow-ups Β· π 1 real-world
-
Tell me about taking an existing ASP.NET Core API that ran on VMs or App Service and making it cloud-native on Azure Container Apps or AKS. What did you find that stopped it running well in containers, what did you change and in what order, and how did you prove it was ready?
Covers a real migration of an existing ASP.NET Core API to Azure Container Apps or AKS: auditing for hidden state, baked-in config, file-based logs and ignored shutdown; containerising; externalising config and secrets with managed identity; probes, telemetry, resilience and scaling; and proving readiness with chaos and load tests.
Senior
RealWorldScenario
Cloud-Native Patterns
Β· π 3 follow-ups Β· π 1 real-world
-
Code review: a teammate's ASP.NET Core service, about to be deployed to Kubernetes, saves uploaded files and a SQLite cache to the container's local disk, reads its settings (including an API key) from a config.json copied into the image, logs to a rolling file, and runs a background loop that ignores the stopping token. What do you flag, in what order, and what does the fixed version look like?
A code review of a container-unfriendly ASP.NET Core service: local disk state, secrets in a config file baked into the image, file logging, a BackgroundService that ignores SIGTERM, and missing probes; findings ranked by severity with a cloud-native rewrite using Blob Storage, IConfiguration with Key Vault, stdout logging, cancellation and health endpoints.
Senior
CodeReview
Cloud-Native Patterns
Β· π 3 follow-ups Β· π 1 real-world