All fields

“Environment Variables & Configuration” in Information Technology

35 questions across 7 technologies.

Information Technology

35 questions in 7 technologies

#QuestionTechnologyTopicLevel
1How would you validate that all required environment variables are present and correctly typed at application startup, rather than discovering a missing one at runtime? Node.js › Environment Variables & ConfigurationNode.jsEnvironment Variables & ConfigurationIntermediate
2How would you structure application configuration to support multiple environments (development, staging, production) cleanly? Node.js › Environment Variables & ConfigurationNode.jsEnvironment Variables & ConfigurationIntermediate
3What is the risk of accidentally logging or exposing environment variables that contain secrets, and how do you prevent it? Node.js › Environment Variables & ConfigurationNode.jsEnvironment Variables & ConfigurationIntermediate
4What is the difference between build-time and runtime configuration for a Node.js application, and why does that distinction matter for container-based deployments? Node.js › Environment Variables & ConfigurationNode.jsEnvironment Variables & ConfigurationAdvanced
5How does the dotenv package work, and what problem does it solve for local Node.js development? Node.js › Environment Variables & ConfigurationNode.jsEnvironment Variables & ConfigurationBeginner
6How do you add environment variables to a Next.js project? Next.js › Environment Variables & Configuration ManagementNext.jsEnvironment Variables & Configuration ManagementBeginner
7How would you validate that all required environment variables are present and correctly formatted before your app starts? Next.js › Environment Variables & Configuration ManagementNext.jsEnvironment Variables & Configuration ManagementIntermediate
8What security risks are associated with environment variables, and how do you avoid them? Next.js › Environment Variables & Configuration ManagementNext.jsEnvironment Variables & Configuration ManagementAdvanced
9How do you manage different environment variable values for development, staging, and production environments? Next.js › Environment Variables & Configuration ManagementNext.jsEnvironment Variables & Configuration ManagementIntermediate
10What is the difference between a regular environment variable and one prefixed with NEXT_PUBLIC in Next.js? Next.js › Environment Variables & Configuration ManagementNext.jsEnvironment Variables & Configuration ManagementBeginner
11How does the ASP.NET Core configuration system layer multiple sources (appsettings.json, environment variables, command line) together? .NET › Configuration & Options.NETConfiguration & OptionsBeginner
12How 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
13How 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
14How would you set up a Next.js project to support absolute imports, custom webpack configuration, and multiple environments cleanly? Next.js › Next.js Project Setup & ConfigurationNext.jsNext.js Project Setup & ConfigurationAdvanced
15How do environment variables and .env files help manage different configuration settings across development, staging, and production environments? PHP › Deployment & Hosting for PHP ApplicationsPHPDeployment & Hosting for PHP ApplicationsIntermediate
16How do environment variables and Docker secrets help manage application configuration and sensitive credentials differently across development and production containerized environments? PHP › PHP with DockerPHPPHP with DockerIntermediate
17How do you use environment variables and Docker's --env-file (or docker-compose's environment section) to configure a containerized Node.js application per environment? Node.js › Docker & Containerization for Node.jsNode.jsDocker & Containerization for Node.jsIntermediate
18How do environment variables work in a React app during deployment? React › Deployment & Production BuildsReactDeployment & Production BuildsIntermediate
19What is a .env file, and how does it interact with a Dockerized Node.js application's configuration? Node.js › Docker & DeploymentNode.jsDocker & DeploymentIntermediate
20What is the DEBUG environment variable convention (popularized by the 'debug' npm package), and how does it let you enable verbose logging selectively? Node.js › Debugging & DiagnosticsNode.jsDebugging & DiagnosticsIntermediate
21What is log level (debug, info, warn, error), and how do you configure a logger like Pino or Winston to filter output by level per environment? Node.js › Logging & MonitoringNode.jsLogging & MonitoringIntermediate
22What is the process object in Node.js, and what are some of the most commonly used properties and methods on it? Node.js › Global Objects & the process ObjectNode.jsGlobal Objects & the process ObjectBeginner
23How do you connect a database to a Next.js application? Next.js › Database Integration with Next.jsNext.jsDatabase Integration with Next.jsBeginner
24Why is it important to never expose sensitive information like API keys inside client components? Next.js › Security Best Practices in Next.jsNext.jsSecurity Best Practices in Next.jsBeginner
25What is a twelve-factor app, and how does it guide how a Node.js application should be configured for cloud deployment? Node.js › Cloud & DevOpsNode.jsCloud & DevOpsIntermediate
26What role do secret managers (like AWS Secrets Manager) play in deploying a Node.js app across dev, staging, and production? Node.js › Cloud & DevOpsNode.jsCloud & DevOpsIntermediate
27How do Kubernetes ConfigMaps and Secrets differ, and how are they typically consumed by a Node.js pod? Node.js › Docker & DeploymentNode.jsDocker & DeploymentIntermediate
28How 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
29How would you use the node:os module to make a script's behavior adapt correctly across different operating systems? Node.js › Path & OS ModulesNode.jsPath & OS ModulesIntermediate
30Why should you avoid storing sensitive information, like an authentication token, directly in your React app's regular JavaScript state or a global variable? React › Security in React (XSS & dangerouslySetInnerHTML)ReactSecurity in React (XSS & dangerouslySetInnerHTML)Intermediate
31What is an injection token in Angular, and when would you need one instead of just injecting a class? Angular › Dependency Injection Providers & Injection TokensAngularDependency Injection Providers & Injection TokensIntermediate
32Why should database queries always happen on the server rather than in the browser? Next.js › Database Integration with Next.jsNext.jsDatabase Integration with Next.jsIntermediate
33How do you build and run a Next.js application in production outside of Vercel, such as on your own server? Next.js › DeploymentNext.jsDeploymentIntermediate
34How would you containerize a Next.js application using Docker for deployment? Next.js › DeploymentNext.jsDeploymentIntermediate
35How do you secure the route that enables Draft Mode so random visitors cannot use it? Next.js › Draft Mode & Preview ModeNext.jsDraft Mode & Preview ModeIntermediate