All fields

“Health Checks” in Information Technology

42 questions across 5 technologies.

Information Technology

42 questions in 5 technologies

#QuestionTechnologyTopicLevel
1What is the ASP.NET Core Health Checks middleware, and what problem does it solve? ASP.NET Core › Health ChecksASP.NET CoreHealth ChecksBeginner
2How do you add pre-built health checks for common external dependencies like SQL Server, Redis, or a URL endpoint, using the community AspNetCore.Diagnostics.HealthChecks packages? ASP.NET Core › Health ChecksASP.NET CoreHealth ChecksIntermediate
3How do health checks interact with dependency injection scoping, particularly for checks that need a scoped service like a DbContext? ASP.NET Core › Health ChecksASP.NET CoreHealth ChecksIntermediate
4How 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
5How would you integrate health check results with the AspNetCore.HealthChecks.UI package to get a persistent, historical dashboard view of health status over time? ASP.NET Core › Health ChecksASP.NET CoreHealth ChecksAdvanced
6How can you customize health checks for third-party or custom resources? ArgoCD › Sync & HealthArgoCDSync & HealthAdvanced
7What 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
8How do you implement a custom health check by implementing IHealthCheck, such as checking database connectivity? ASP.NET Core › Health ChecksASP.NET CoreHealth ChecksIntermediate
9How do you customize the JSON response format of the health check endpoint, since the default output is just plain text status? ASP.NET Core › Health ChecksASP.NET CoreHealth ChecksIntermediate
10Why should the detailed /health endpoint (with full dependency status breakdown) generally not be exposed publicly on the internet, and how do you restrict access to it? ASP.NET Core › Health ChecksASP.NET CoreHealth ChecksIntermediate
11How would you write an integration test verifying that your health check endpoint correctly reports Unhealthy when a dependency is down? ASP.NET Core › Health ChecksASP.NET CoreHealth ChecksIntermediate
12How would you exclude health check endpoints from other cross-cutting middleware like authentication, logging, or rate limiting that shouldn't apply to frequent automated health polling? ASP.NET Core › Health ChecksASP.NET CoreHealth ChecksIntermediate
13How would you implement a health check that reports Degraded (rather than a binary Healthy/Unhealthy) based on a performance threshold, like elevated database query latency? ASP.NET Core › Health ChecksASP.NET CoreHealth ChecksAdvanced
14How would you set a per-check timeout to prevent one slow or hanging dependency check from blocking the entire /health endpoint response indefinitely? ASP.NET Core › Health ChecksASP.NET CoreHealth ChecksAdvanced
15How 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
16How would you design a health check for a service with multiple independent downstream dependencies where you want the overall status to reflect the worst individual result, but also need each dependency's specific status individually visible for diagnostics? ASP.NET Core › Health ChecksASP.NET CoreHealth ChecksAdvanced
17What is the role of automated smoke tests and health checks immediately after a deployment completes? .NET › CI/CD, Publishing & Deployment.NETCI/CD, Publishing & DeploymentIntermediate
18How do background services interact with health checks to signal their operational status? .NET › Background Services.NETBackground ServicesAdvanced
19How 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
20What are Route 53 health checks, and how do they support failover routing? AWS › Amazon Route 53 & DNS ManagementAWSAmazon Route 53 & DNS ManagementIntermediate
21How do health checks work within an Auto Scaling Group to maintain a healthy fleet of instances? AWS › Auto Scaling GroupsAWSAuto Scaling GroupsIntermediate
22How do target groups and health checks work together within an Application Load Balancer to route traffic only to healthy instances? AWS › Elastic Load Balancing (ALB, NLB & CLB)AWSElastic Load Balancing (ALB, NLB & CLB)Intermediate
23How should an application handle database connection failures gracefully, including implementing retry logic and connection health checks for a reliable production system? PHP › PDO & DatabasesPHPPDO & DatabasesAdvanced
24How does running PHP within Docker containers in a production Kubernetes environment introduce additional considerations around health checks, resource limits, and horizontal scaling? PHP › PHP with DockerPHPPHP with DockerAdvanced
25What is the purpose of health check response caching and how does frequent health check polling itself impact application performance? .NET › Diagnostics & Performance.NETDiagnostics & PerformanceIntermediate
26What is a container health check (HEALTHCHECK instruction), and how does it differ from a Kubernetes liveness/readiness probe? .NET › Docker & Containerization.NETDocker & ContainerizationAdvanced
27How 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
28What's the difference between app.Use, app.Run, and app.Map in configuring the middleware pipeline? .NET › ASP.NET Core Middleware & Request Pipeline.NETASP.NET Core Middleware & Request PipelineIntermediate
29How do you conditionally apply middleware only to certain requests using UseWhen or MapWhen? .NET › ASP.NET Core Middleware & Request Pipeline.NETASP.NET Core Middleware & Request PipelineIntermediate
30What is the purpose of the dotnet-monitor tool, and how does it enable diagnostics in containerized/production environments? .NET › Diagnostics & Performance.NETDiagnostics & PerformanceIntermediate
31How do you apply a global authorization policy requiring authentication by default for every endpoint, with explicit opt-out for public ones? ASP.NET Core › AuthorizationASP.NET CoreAuthorizationIntermediate
32How should exceptions be handled inside a BackgroundService's work loop to prevent one failure from silently stopping all future processing? ASP.NET Core › Background Tasks & Hosted ServicesASP.NET CoreBackground Tasks & Hosted ServicesIntermediate
33How does IHostApplicationLifetime let a BackgroundService react to application startup and shutdown events? ASP.NET Core › Background Tasks & Hosted ServicesASP.NET CoreBackground Tasks & Hosted ServicesIntermediate
34Can a single ASP.NET Core project use both controllers and minimal APIs simultaneously, and what are valid reasons to do so? ASP.NET Core › Controllers vs Minimal APIsASP.NET CoreControllers vs Minimal APIsIntermediate
35How 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
36What is IHostedLifecycleService, and how does it provide more granular hooks than IHostedService's StartAsync/StopAsync? .NET › Background Services.NETBackground ServicesAdvanced
37How does deployment slot swapping (e.g., Azure App Service deployment slots) enable near-zero-downtime deployments? .NET › CI/CD, Publishing & Deployment.NETCI/CD, Publishing & DeploymentAdvanced
38How do you implement automated rollback in a CI/CD pipeline triggered by post-deployment monitoring signals (error rate, latency)? .NET › CI/CD, Publishing & Deployment.NETCI/CD, Publishing & DeploymentAdvanced
39How would you implement a startup task that must complete successfully before the Generic Host considers the application ready to serve traffic or process work? .NET › Generic Host.NETGeneric HostAdvanced
40How would you implement a circuit breaker pattern to prevent cascading failures when a downstream dependency is consistently failing? ASP.NET Core › Error HandlingASP.NET CoreError HandlingAdvanced
41How 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
42How 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