All fields

“Configuration & Options” in Information Technology

105 questions across 8 technologies.

Information Technology

105 questions in 8 technologies

#QuestionTechnologyTopicLevel
1What is the Options pattern, and why is it preferred over directly injecting IConfiguration into services? .NET › Configuration & Options.NETConfiguration & OptionsIntermediate
2How do you validate configuration options at application startup to fail fast on misconfiguration? .NET › Configuration & Options.NETConfiguration & OptionsIntermediate
3What does GetSection and GetValue do differently when reading configuration values in ASP.NET Core? .NET › Configuration & Options.NETConfiguration & OptionsBeginner
4How does the order of configuration provider registration affect which value wins when the same key is defined in multiple sources? .NET › Configuration & Options.NETConfiguration & OptionsIntermediate
5How does the configuration binder handle nested objects, arrays, and complex types when binding a JSON section to a C# class? .NET › Configuration & Options.NETConfiguration & OptionsAdvanced
6How does named options support configuring multiple distinct instances of the same options type? .NET › Configuration & Options.NETConfiguration & OptionsAdvanced
7How does the ASP.NET Core configuration system layer multiple sources (appsettings.json, environment variables, command line) together? .NET › Configuration & Options.NETConfiguration & OptionsBeginner
8How does configuration hot-reload work with reloadOnChange for appsettings.json, and what are its limitations? .NET › Configuration & Options.NETConfiguration & OptionsAdvanced
9How do environment variables map to nested configuration keys in ASP.NET Core, given environment variables can't contain colons on some platforms? .NET › Configuration & Options.NETConfiguration & OptionsIntermediate
10How does the command-line configuration provider let you override settings via arguments when running an application? .NET › Configuration & Options.NETConfiguration & OptionsIntermediate
11What is the difference between IOptions<T>, IOptionsSnapshot<T>, and IOptionsMonitor<T>? .NET › Configuration & Options.NETConfiguration & OptionsAdvanced
12How would you write a custom configuration provider to load settings from an unsupported source, like a remote database? .NET › Configuration & Options.NETConfiguration & OptionsAdvanced
13How would you design configuration for a multi-tenant application where each tenant needs different settings resolved at runtime? .NET › Configuration & Options.NETConfiguration & OptionsAdvanced
14What is user secrets (dotnet user-secrets), and why should it only be used for local development, never production? .NET › Configuration & Options.NETConfiguration & OptionsIntermediate
15How does appsettings.{Environment}.json layering work, and how is the current environment determined? .NET › Configuration & Options.NETConfiguration & OptionsIntermediate
16What is the Options pattern, and why is it preferred over injecting IConfiguration directly and reading string keys throughout an application? ASP.NET Core › Configuration & Options PatternASP.NET CoreConfiguration & Options PatternIntermediate
17What are Configuration and Options pattern in .NET Core? .NET Core › Configuration & Options Pattern.NET CoreConfiguration & Options PatternIntermediate
18How do you validate configuration options at application startup to fail fast on misconfiguration, using ValidateDataAnnotations and ValidateOnStart? ASP.NET Core › Configuration & Options PatternASP.NET CoreConfiguration & Options PatternAdvanced
19How 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
20How does named options support configuring multiple distinct instances of the same options class? ASP.NET Core › Configuration & Options PatternASP.NET CoreConfiguration & Options PatternIntermediate
21How does the configuration binder handle nested objects and arrays when binding a JSON section to a strongly-typed C# class? ASP.NET Core › Configuration & Options PatternASP.NET CoreConfiguration & Options PatternAdvanced
22How 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
23How does the command-line configuration provider let you override settings via arguments when running an application, and what's its precedence? ASP.NET Core › Configuration & Options PatternASP.NET CoreConfiguration & Options PatternIntermediate
24What is the difference between IOptions<T>, IOptionsSnapshot<T>, and IOptionsMonitor<T>, and which is safe to inject into a singleton? ASP.NET Core › Configuration & Options PatternASP.NET CoreConfiguration & Options PatternAdvanced
25How does configuration hot-reload work with reloadOnChange for appsettings.json, and what are its limitations? ASP.NET Core › Configuration & Options PatternASP.NET CoreConfiguration & Options PatternAdvanced
26How would you write a custom configuration provider to load settings from an unsupported source, like a remote configuration service or database? ASP.NET Core › Configuration & Options PatternASP.NET CoreConfiguration & Options PatternAdvanced
27How would you design configuration for a multi-tenant ASP.NET Core application where each tenant needs different settings resolved at runtime? ASP.NET Core › Configuration & Options PatternASP.NET CoreConfiguration & Options PatternAdvanced
28How do you write a custom IValidateOptions<T> implementation for validation logic beyond what DataAnnotations attributes can express? ASP.NET Core › Configuration & Options PatternASP.NET CoreConfiguration & Options PatternAdvanced
29How 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
30What is user secrets (dotnet user-secrets), and why should it be used only for local development, never production? ASP.NET Core › Configuration & Options PatternASP.NET CoreConfiguration & Options PatternIntermediate
31How do you use IHostEnvironment/IWebHostEnvironment to conditionally configure services based on the current environment? ASP.NET Core › Configuration & Options PatternASP.NET CoreConfiguration & Options PatternIntermediate
32How does System.Text.Json's configuration (via AddJsonOptions) let you customize the default JSON serialization behavior globally? ASP.NET Core › Content Negotiation & Output FormattersASP.NET CoreContent Negotiation & Output FormattersIntermediate
33How do 'extends' in tsconfig.json enable sharing a base configuration across multiple projects in a monorepo, and how do overrides get merged? TypeScript › tsconfig & Compiler OptionsTypeScripttsconfig & Compiler OptionsAdvanced
34How do you enable keyspace notifications in Redis, and what do the different configuration character options represent? Redis › Keyspace NotificationsRedisKeyspace NotificationsBeginner
35How would you use Lombok's @EqualsAndHashCode and @ToString annotations to eliminate equals()/hashCode()/toString() boilerplate, and what specific configuration options handle inheritance and field exclusion correctly? Java › equals(), hashCode() & toString() ContractsJavaequals(), hashCode() & toString() ContractsAdvanced
36How do you pass environment-specific configuration into a running .NET container, and how does this interact with the configuration system? .NET › Docker & Containerization.NETDocker & ContainerizationIntermediate
37How does the Generic Host integrate configuration, logging, and dependency injection into a single unified builder? .NET › Generic Host.NETGeneric HostIntermediate
38How do you configure the Generic Host to read configuration from a custom file format or remote source before the rest of the application starts? .NET › Generic Host.NETGeneric HostIntermediate
39How do you register a service using a factory delegate instead of a simple type mapping, when construction requires reading configuration or resolving other services conditionally? ASP.NET Core › Dependency InjectionASP.NET CoreDependency InjectionIntermediate
40How does the Options pattern's IOptions<T>/IOptionsSnapshot<T> relate to and build upon the standard DI container? ASP.NET Core › Dependency InjectionASP.NET CoreDependency InjectionIntermediate
41How 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
42How do you manage different configurations for different environments (development, staging, production) using Maven profiles or Gradle's equivalent mechanisms? Java › Build Tools: Maven & GradleJavaBuild Tools: Maven & GradleIntermediate
43How would you use an enum to represent a fixed set of configuration keys combined with a shared lookup method, avoiding scattered String literal keys throughout a codebase? Java › EnumsJavaEnumsIntermediate
44What is the Options pattern's relationship to DI, and how does IOptions<T> itself get resolved through the container? .NET › Dependency Injection.NETDependency InjectionAdvanced
45What are the main options for deploying a Next.js application? Next.js › DeploymentNext.jsDeploymentBeginner
46How do you configure PM2 using an ecosystem.config.js file rather than passing options directly on the command line? Node.js › Deployment & Process Managers (PM2)Node.jsDeployment & Process Managers (PM2)Intermediate
47What is IMemoryCache, and when is it appropriate to use for caching in ASP.NET Core? .NET › Caching (In-Memory, Distributed & Redis).NETCaching (In-Memory, Distributed & Redis)Beginner
48What is the difference between role-based and claims-based authorization in ASP.NET Core? ASP.NET Core › AuthorizationASP.NET CoreAuthorizationBeginner
49What is IMemoryCache, and when is it appropriate for an ASP.NET Core application? ASP.NET Core › CachingASP.NET CoreCachingBeginner
50What is dependency injection, and how does ASP.NET Core's built-in DI container support it out of the box? ASP.NET Core › Dependency InjectionASP.NET CoreDependency InjectionBeginner
51How do you exclude a globally-registered filter from running on one specific action or controller? ASP.NET Core › FiltersASP.NET CoreFiltersBeginner
52What 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
53What 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
54How 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
55How do you configure and use Redis as a distributed cache in ASP.NET Core with StackExchange.Redis? .NET › Caching (In-Memory, Distributed & Redis).NETCaching (In-Memory, Distributed & Redis)Intermediate
56How do you securely manage secrets (connection strings, API keys) in a CI/CD pipeline without committing them to source control? .NET › CI/CD, Publishing & Deployment.NETCI/CD, Publishing & DeploymentIntermediate
57What is the purpose of separate build and release pipelines (or stages), and why shouldn't you rebuild the application for each deployment environment? .NET › CI/CD, Publishing & Deployment.NETCI/CD, Publishing & DeploymentIntermediate
58How do feature flags decouple code deployment from feature release in a CI/CD workflow? .NET › CI/CD, Publishing & Deployment.NETCI/CD, Publishing & DeploymentIntermediate
59How do you configure CORS to allow requests only from multiple specific origins, such as both a production and staging frontend? .NET › CORS & Cross-Origin Resource Sharing.NETCORS & Cross-Origin Resource SharingIntermediate
60What is the difference between Singleton, Scoped, and Transient service lifetimes in ASP.NET Core's DI container? .NET › Dependency Injection.NETDependency InjectionIntermediate
61How do you register multiple implementations of the same interface, and how do you resolve all of them together? .NET › Dependency Injection.NETDependency InjectionIntermediate
62How do you register a service using a factory delegate instead of a simple type mapping, when construction requires custom logic? .NET › Dependency Injection.NETDependency InjectionIntermediate
63What is IHostEnvironment, and how do you use it to conditionally configure services based on the current environment? .NET › Generic Host.NETGeneric HostIntermediate
64How do you combine multiple authorization requirements within a single policy, and how are they evaluated (AND vs OR logic)? ASP.NET Core › AuthorizationASP.NET CoreAuthorizationIntermediate
65How do you implement a periodic scheduled task using PeriodicTimer instead of Task.Delay, and what problem does it solve? ASP.NET Core › Background Tasks & Hosted ServicesASP.NET CoreBackground Tasks & Hosted ServicesIntermediate
66What is IDistributedCache, and how does it differ from IMemoryCache in a horizontally-scaled ASP.NET Core deployment? ASP.NET Core › CachingASP.NET CoreCachingIntermediate
67How does the newer Output Caching middleware (introduced in .NET 7) differ from Response Caching middleware? ASP.NET Core › CachingASP.NET CoreCachingIntermediate
68How does HybridCache (introduced in .NET 9) unify in-memory and distributed caching, and what problems does it solve? ASP.NET Core › CachingASP.NET CoreCachingIntermediate
69How do you configure Redis as the backing distributed cache for both IDistributedCache and Output Caching in the same application? ASP.NET Core › CachingASP.NET CoreCachingIntermediate
70How do you register multiple implementations of the same interface and resolve all of them together via IEnumerable<T>? ASP.NET Core › Dependency InjectionASP.NET CoreDependency InjectionIntermediate
71How do you apply a filter globally to every controller action, versus scoping it to a specific controller or individual action? ASP.NET Core › FiltersASP.NET CoreFiltersIntermediate
72How do you enable and use gRPC reflection for service discovery and debugging tools like grpcurl or Postman? ASP.NET Core › gRPC ServicesASP.NET CoregRPC ServicesIntermediate
73How do you implement a custom health check by implementing IHealthCheck, such as checking database connectivity? ASP.NET Core › Health ChecksASP.NET CoreHealth ChecksIntermediate
74How 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
75What 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
76What 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
77What 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
78How 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
79What is a Maven BOM (Bill of Materials), and how does it help manage consistent dependency versions across a multi-module project or organization? Java › Build Tools: Maven & GradleJavaBuild Tools: Maven & GradleIntermediate
80What is the significance of storing date-time values in UTC in a database or when transmitting between systems, rather than storing them in a specific local timezone? Java › Java Date & Time API (java.time)JavaJava Date & Time API (java.time)Intermediate
81What is Dependency Injection (DI) in .NET Core? How is it implemented? .NET Core › Dependency Injection in .NET Core.NET CoreDependency Injection in .NET CoreIntermediate
82What is Entity Framework Core (EF Core)? How is it different from EF6? .NET Core › Entity Framework Core.NET CoreEntity Framework CoreIntermediate
83How do you integrate external identity providers (Google, Microsoft Entra ID, Facebook) using OAuth/OpenID Connect in ASP.NET Core? .NET › Authentication & Authorization (Identity, JWT, OAuth).NETAuthentication & Authorization (Identity, JWT, OAuth)Advanced
84How does HybridCache (introduced in .NET 9) combine in-memory and distributed caching to solve common pain points? .NET › Caching (In-Memory, Distributed & Redis).NETCaching (In-Memory, Distributed & Redis)Advanced
85What are keyed services (introduced in .NET 8), and what problem do they solve compared to multiple unnamed registrations? .NET › Dependency Injection.NETDependency InjectionAdvanced
86How does exception handling middleware interact with model validation errors in ASP.NET Core, and how do they typically produce different error response paths? .NET › Global Exception Handling & Middleware.NETGlobal Exception Handling & MiddlewareAdvanced
87How would you design exception handling middleware to support internationalized (localized) error messages returned to clients in different languages? .NET › Global Exception Handling & Middleware.NETGlobal Exception Handling & MiddlewareAdvanced
88How do you combine multiple version reader strategies (e.g., both URL segment AND header) to give clients flexibility in how they specify a version? ASP.NET Core › API VersioningASP.NET CoreAPI VersioningAdvanced
89How does JWT bearer authentication validate an incoming token, and what claims does TokenValidationParameters check? ASP.NET Core › AuthenticationASP.NET CoreAuthenticationAdvanced
90How do external identity provider integrations (like Google or Microsoft Entra ID) work using OAuth/OpenID Connect authentication handlers? ASP.NET Core › AuthenticationASP.NET CoreAuthenticationAdvanced
91How would you implement a custom IAuthorizationRequirement and IAuthorizationHandler for a business rule like 'only during business hours'? ASP.NET Core › AuthorizationASP.NET CoreAuthorizationAdvanced
92How would you design an authorization system supporting dynamically-configurable, admin-managed permissions rather than hardcoded policies in code? ASP.NET Core › AuthorizationASP.NET CoreAuthorizationAdvanced
93How would you implement a cron-like scheduled background job (e.g., 'run daily at 2 AM') without a third-party scheduling library? ASP.NET Core › Background Tasks & Hosted ServicesASP.NET CoreBackground Tasks & Hosted ServicesAdvanced
94How do you configure CORS to allow multiple specific known origins simultaneously, such as production, staging, and local development? ASP.NET Core › CORS (Cross-Origin Resource Sharing)ASP.NET CoreCORS (Cross-Origin Resource Sharing)Advanced
95What are keyed services (introduced in .NET 8), and what problem do they solve compared to injecting IEnumerable<T> when you need one specific implementation? ASP.NET Core › Dependency InjectionASP.NET CoreDependency InjectionAdvanced
96How does dependency injection integrate with minimal API endpoint handlers versus controller constructors? ASP.NET Core › Dependency InjectionASP.NET CoreDependency InjectionAdvanced
97How would you design exception handling to support internationalized (localized) error messages returned to different clients in their preferred language? ASP.NET Core › Error HandlingASP.NET CoreError HandlingAdvanced
98How does an IAsyncActionFilter differ from the synchronous IActionFilter, and why is the async version generally preferred for filters doing I/O work? ASP.NET Core › FiltersASP.NET CoreFiltersAdvanced
99How do you control the execution order of multiple filters of the same type applied to a single action? ASP.NET Core › FiltersASP.NET CoreFiltersAdvanced
100How 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
101What 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
102How 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
103How 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
104How would you handle adding behavior to an enum where the number of constants might grow very large or needs to be data-driven rather than hardcoded at compile time, and why might a class-based registry be more appropriate in that scenario? Java › EnumsJavaEnumsAdvanced
105What are .NET Core Hosting Models? .NET Core › .NET Core Hosting Models.NET Core.NET Core Hosting ModelsAdvanced