All fields

“Hosting Models: Kestrel” in Information Technology

58 questions across 2 technologies.

Information Technology

58 questions in 2 technologies

#QuestionTechnologyTopicLevel
1What is Kestrel, and how does its role in ASP.NET Core hosting differ from a traditional web server like IIS? ASP.NET Core › Hosting Models: Kestrel, IIS & Reverse ProxiesASP.NET CoreHosting Models: Kestrel, IIS & Reverse ProxiesBeginner
2How does hosting an ASP.NET Core application in a Docker container change considerations around Kestrel configuration and reverse proxying compared to traditional VM or bare-metal hosting? ASP.NET Core › Hosting Models: Kestrel, IIS & Reverse ProxiesASP.NET CoreHosting Models: Kestrel, IIS & Reverse ProxiesIntermediate
3What is the difference between Kestrel's ListenAnyIP and Listen methods for binding to network addresses? ASP.NET Core › Hosting Models: Kestrel, IIS & Reverse ProxiesASP.NET CoreHosting Models: Kestrel, IIS & Reverse ProxiesBeginner
4What is the difference between the in-process and out-of-process hosting models when running an ASP.NET Core application under IIS? ASP.NET Core › Hosting Models: Kestrel, IIS & Reverse ProxiesASP.NET CoreHosting Models: Kestrel, IIS & Reverse ProxiesIntermediate
5How do you configure Kestrel to listen on multiple endpoints (different ports, or both HTTP and HTTPS simultaneously)? ASP.NET Core › Hosting Models: Kestrel, IIS & Reverse ProxiesASP.NET CoreHosting Models: Kestrel, IIS & Reverse ProxiesIntermediate
6What is the ASP.NET Core Module (ANCM), and what specific role does it play when hosting under IIS? ASP.NET Core › Hosting Models: Kestrel, IIS & Reverse ProxiesASP.NET CoreHosting Models: Kestrel, IIS & Reverse ProxiesIntermediate
7How do you configure request timeout behavior differently at the Kestrel level versus the reverse proxy level, and why might they need to be coordinated? ASP.NET Core › Hosting Models: Kestrel, IIS & Reverse ProxiesASP.NET CoreHosting Models: Kestrel, IIS & Reverse ProxiesIntermediate
8How would you configure Kestrel to be production-ready when running standalone (without IIS or another reverse proxy in front of it), and what risks does this expose you to? ASP.NET Core › Hosting Models: Kestrel, IIS & Reverse ProxiesASP.NET CoreHosting Models: Kestrel, IIS & Reverse ProxiesAdvanced
9How would you diagnose and resolve a scenario where an application works correctly when run directly with Kestrel locally but returns 502 Bad Gateway errors when deployed behind IIS or nginx in production? ASP.NET Core › Hosting Models: Kestrel, IIS & Reverse ProxiesASP.NET CoreHosting Models: Kestrel, IIS & Reverse ProxiesAdvanced
10How would you configure Kestrel's connection limits and thread pool behavior to handle high-concurrency production traffic without exhausting server resources? ASP.NET Core › Hosting Models: Kestrel, IIS & Reverse ProxiesASP.NET CoreHosting Models: Kestrel, IIS & Reverse ProxiesAdvanced
11How would you implement graceful shutdown handling in Kestrel/ASP.NET Core to ensure in-flight requests complete before a container or process terminates during a deployment or scale-down event? ASP.NET Core › Hosting Models: Kestrel, IIS & Reverse ProxiesASP.NET CoreHosting Models: Kestrel, IIS & Reverse ProxiesAdvanced
12How does ASP.NET Core determine the original client IP address and scheme (HTTP/HTTPS) when running behind a reverse proxy that terminates TLS and forwards requests, given the app only sees the proxy's connection? ASP.NET Core › Hosting Models: Kestrel, IIS & Reverse ProxiesASP.NET CoreHosting Models: Kestrel, IIS & Reverse ProxiesIntermediate
13What role does a reverse proxy play in TLS/SSL termination, and why is this pattern common in production deployments? ASP.NET Core › Hosting Models: Kestrel, IIS & Reverse ProxiesASP.NET CoreHosting Models: Kestrel, IIS & Reverse ProxiesIntermediate
14What is YARP (Yet Another Reverse Proxy), and how does it compare to nginx or IIS as a reverse proxy option for ASP.NET Core applications? ASP.NET Core › Hosting Models: Kestrel, IIS & Reverse ProxiesASP.NET CoreHosting Models: Kestrel, IIS & Reverse ProxiesAdvanced
15How would you configure and validate that HTTP/2 (or HTTP/3) is actually being used end-to-end through a reverse proxy, rather than silently downgrading to HTTP/1.1? ASP.NET Core › Hosting Models: Kestrel, IIS & Reverse ProxiesASP.NET CoreHosting Models: Kestrel, IIS & Reverse ProxiesAdvanced
16How do you configure IIS or a reverse proxy like nginx to allow large file uploads, given they may impose their own separate size limits beyond Kestrel's? ASP.NET Core › File Uploads & Streaming Large FilesASP.NET CoreFile Uploads & Streaming Large FilesIntermediate
17What TLS protocol versions and cipher suites should a modern ASP.NET Core application support, and how do you configure Kestrel to enforce a minimum acceptable TLS version? ASP.NET Core › HTTPS, Certificates & Transport SecurityASP.NET CoreHTTPS, Certificates & Transport SecurityIntermediate
18How would you configure Kestrel to use a specific X.509 certificate for HTTPS, and what are the different ways to supply that certificate (file-based, certificate store, Azure Key Vault)? ASP.NET Core › HTTPS, Certificates & Transport SecurityASP.NET CoreHTTPS, Certificates & Transport SecurityAdvanced
19How would you implement Server Name Indication (SNI)-based certificate selection in Kestrel, serving different TLS certificates for different hostnames on the same IP/port? ASP.NET Core › HTTPS, Certificates & Transport SecurityASP.NET CoreHTTPS, Certificates & Transport SecurityAdvanced
20What is a BackgroundService in ASP.NET Core, and how do you register one to run alongside a web application? ASP.NET Core › Background Tasks & Hosted ServicesASP.NET CoreBackground Tasks & Hosted ServicesBeginner
21How does ASP.NET Core's configuration system layer multiple sources together, and what is the default provider precedence? ASP.NET Core › Configuration & Options PatternASP.NET CoreConfiguration & Options PatternBeginner
22How do you accept a file upload in an ASP.NET Core controller action using IFormFile? ASP.NET Core › File Uploads & Streaming Large FilesASP.NET CoreFile Uploads & Streaming Large FilesBeginner
23What is the ASP.NET Core Health Checks middleware, and what problem does it solve? ASP.NET Core › Health ChecksASP.NET CoreHealth ChecksBeginner
24What HTTP status code does the health check middleware return by default for each status (Healthy, Degraded, Unhealthy)? ASP.NET Core › Health ChecksASP.NET CoreHealth ChecksBeginner
25How do you enforce that all HTTP requests to an ASP.NET Core application are redirected to HTTPS? ASP.NET Core › HTTPS, Certificates & Transport SecurityASP.NET CoreHTTPS, Certificates & Transport SecurityBeginner
26What is the difference between a certificate's public key and private key, and why must the private key never be exposed or committed to source control? ASP.NET Core › HTTPS, Certificates & Transport SecurityASP.NET CoreHTTPS, Certificates & Transport SecurityBeginner
27How would you get the current date and time, and how does specifying an explicit ZoneId (versus relying on the system default) affect the result of LocalDate.now() or LocalDateTime.now()? Java › Java Date & Time API (java.time)JavaJava Date & Time API (java.time)Beginner
28What is the difference between IHostedService and the BackgroundService convenience base class? ASP.NET Core › Background Tasks & Hosted ServicesASP.NET CoreBackground Tasks & Hosted ServicesIntermediate
29How does IHostApplicationLifetime let a BackgroundService react to application startup and shutdown events? ASP.NET Core › Background Tasks & Hosted ServicesASP.NET CoreBackground Tasks & Hosted ServicesIntermediate
30How would you configure a BackgroundService to fail fast and crash the host if a critical startup dependency (like a message broker) is unreachable? ASP.NET Core › Background Tasks & Hosted ServicesASP.NET CoreBackground Tasks & Hosted ServicesIntermediate
31How do you configure CORS correctly when a Blazor WebAssembly app is hosted on a different origin than its backend API? ASP.NET Core › Blazor Integration with ASP.NET CoreASP.NET CoreBlazor Integration with ASP.NET CoreIntermediate
32How does appsettings.{Environment}.json layering work, and how does ASP.NET Core determine the current environment? ASP.NET Core › Configuration & Options PatternASP.NET CoreConfiguration & Options PatternIntermediate
33How do environment variables map to nested configuration keys, given some shells don't support colons in variable names? ASP.NET Core › Configuration & Options PatternASP.NET CoreConfiguration & Options PatternIntermediate
34How do you use IHostEnvironment/IWebHostEnvironment to conditionally configure services based on the current environment? ASP.NET Core › Configuration & Options PatternASP.NET CoreConfiguration & Options PatternIntermediate
35What is the purpose of the Vary response header, and how does ASP.NET Core's content negotiation interact with HTTP caching correctness? ASP.NET Core › Content Negotiation & Output FormattersASP.NET CoreContent Negotiation & Output FormattersIntermediate
36How do you configure and enforce a maximum request/file upload size in ASP.NET Core, and what's the default limit? ASP.NET Core › File Uploads & Streaming Large FilesASP.NET CoreFile Uploads & Streaming Large FilesIntermediate
37Why can't browsers natively call gRPC services directly, and what is gRPC-Web, and how does it solve this? ASP.NET Core › gRPC ServicesASP.NET CoregRPC ServicesIntermediate
38How do you configure gRPC to work correctly when hosted behind a reverse proxy or load balancer, given gRPC's reliance on HTTP/2? ASP.NET Core › gRPC ServicesASP.NET CoregRPC ServicesIntermediate
39What is HSTS (HTTP Strict Transport Security), and how does UseHsts() in ASP.NET Core implement it? ASP.NET Core › HTTPS, Certificates & Transport SecurityASP.NET CoreHTTPS, Certificates & Transport SecurityIntermediate
40What is a self-signed certificate, and why is the ASP.NET Core development HTTPS certificate (dotnet dev-certs) not suitable for production use? ASP.NET Core › HTTPS, Certificates & Transport SecurityASP.NET CoreHTTPS, Certificates & Transport SecurityIntermediate
41How does the UseHttpsRedirection() middleware determine which port to redirect to, and how do you explicitly configure it when the HTTPS port isn't on the default 443? ASP.NET Core › HTTPS, Certificates & Transport SecurityASP.NET CoreHTTPS, Certificates & Transport SecurityIntermediate
42How would you use JVM flags to tune heap size (-Xms, -Xmx) and understand the trade-offs of setting them equal versus allowing dynamic heap resizing? Java › Garbage CollectionJavaGarbage CollectionIntermediate
43How does Windows Authentication (Negotiate/Kerberos) work in ASP.NET Core for intranet applications, and when is it appropriate? ASP.NET Core › AuthenticationASP.NET CoreAuthenticationAdvanced
44How does graceful shutdown work for a BackgroundService, and how should ExecuteAsync respect the CancellationToken? ASP.NET Core › Background Tasks & Hosted ServicesASP.NET CoreBackground Tasks & Hosted ServicesAdvanced
45How do background services interact with health checks to signal their operational status to an orchestrator like Kubernetes? ASP.NET Core › Background Tasks & Hosted ServicesASP.NET CoreBackground Tasks & Hosted ServicesAdvanced
46How do HTTP caching headers (Cache-Control, ETag) set by an ASP.NET Core API interact with browser and CDN caching, complementing server-side caching? ASP.NET Core › CachingASP.NET CoreCachingAdvanced
47How does CORS interact with an API gateway or reverse proxy sitting in front of multiple backend microservices? ASP.NET Core › CORS (Cross-Origin Resource Sharing)ASP.NET CoreCORS (Cross-Origin Resource Sharing)Advanced
48How would you implement true streaming file upload using MultipartReader to avoid ASP.NET Core's default buffering behavior entirely? ASP.NET Core › File Uploads & Streaming Large FilesASP.NET CoreFile Uploads & Streaming Large FilesAdvanced
49How would you implement a health check specifically for a gRPC service, distinct from the standard ASP.NET Core health check middleware designed for REST endpoints? ASP.NET Core › gRPC ServicesASP.NET CoregRPC ServicesAdvanced
50How do you differentiate liveness and readiness health checks using tags, and why does Kubernetes treat these two probe types differently? ASP.NET Core › Health ChecksASP.NET CoreHealth ChecksAdvanced
51How would you implement a startup-specific health check distinct from ongoing liveness/readiness, useful for slow-starting applications with lengthy initialization (like cache warming or large data loads)? ASP.NET Core › Health ChecksASP.NET CoreHealth ChecksAdvanced
52How would you implement mutual TLS (mTLS) authentication in ASP.NET Core, where the server also validates a client-presented certificate? ASP.NET Core › HTTPS, Certificates & Transport SecurityASP.NET CoreHTTPS, Certificates & Transport SecurityAdvanced
53How would you implement automated, zero-downtime certificate renewal using Let's Encrypt (ACME protocol) for a production ASP.NET Core deployment? ASP.NET Core › HTTPS, Certificates & Transport SecurityASP.NET CoreHTTPS, Certificates & Transport SecurityAdvanced
54How would you configure OCSP stapling or handle certificate revocation checking to ensure a compromised certificate is rejected even if it hasn't yet expired? ASP.NET Core › HTTPS, Certificates & Transport SecurityASP.NET CoreHTTPS, Certificates & Transport SecurityAdvanced
55How would you design a certificate rotation strategy that achieves zero downtime, avoiding the risk of an expired certificate causing an outage? ASP.NET Core › HTTPS, Certificates & Transport SecurityASP.NET CoreHTTPS, Certificates & Transport SecurityAdvanced
56How would you configure a Maven or Gradle build to produce a shaded/fat JAR containing all dependencies bundled into a single executable JAR file? Java › Build Tools: Maven & GradleJavaBuild Tools: Maven & GradleAdvanced
57How would you implement connection-level HTTP/2 server push handling using HttpClient's PushPromiseHandler, and in what scenario would a server proactively push additional resources? Java › Java Networking & HTTP ClientJavaJava Networking & HTTP ClientAdvanced
58How would you implement a simple HTTP server (not just a client) using the lightweight com.sun.net.httpserver.HttpServer class bundled with the JDK, without a full framework like Spring? Java › Java Networking & HTTP ClientJavaJava Networking & HTTP ClientAdvanced