All fields

“ES Modules” in Information Technology

185 questions across 11 technologies.

Information Technology

185 questions in 11 technologies

#QuestionTechnologyTopicLevel
1What's the difference between ES Modules and CommonJS (require/module.exports)? JavaScript › ES ModulesJavaScriptES ModulesIntermediate
2What are import maps and what problem do they solve for browser-native ES Modules? JavaScript › ES ModulesJavaScriptES ModulesAdvanced
3How do circular module dependencies in TypeScript behave differently depending on whether the compiled output targets CommonJS or ES Modules? TypeScript › ModulesTypeScriptModulesAdvanced
4What is the difference between require() (CommonJS) and import (ES Modules) when loading Node.js's own core modules? Node.js › Core Node.js ModulesNode.jsCore Node.js ModulesBeginner
5How does top-level await work, and what constraint does it place on modules that import that module? JavaScript › ES ModulesJavaScriptES ModulesAdvanced
6How would you migrate a legacy namespace-organized codebase to ES Modules, and what pitfalls commonly arise? TypeScript › Namespaces & Declaration MergingTypeScriptNamespaces & Declaration MergingAdvanced
7What is the difference between __dirname/__filename in CommonJS and their equivalents in ES Modules? Node.js › Global Objects & the process ObjectNode.jsGlobal Objects & the process ObjectIntermediate
8Why are ES Module imports 'hoisted' and evaluated before the rest of the module's code runs? JavaScript › ES ModulesJavaScriptES ModulesIntermediate
9What does 'live binding' mean for ES Module exports, and how does it differ from CommonJS? JavaScript › ES ModulesJavaScriptES ModulesAdvanced
10How do you import everything from a module under one namespace object? JavaScript › ES ModulesJavaScriptES ModulesBeginner
11What is tree-shaking and why does it require ES Module syntax? JavaScript › ES ModulesJavaScriptES ModulesIntermediate
12What's the difference between a named export and a default export? JavaScript › ES ModulesJavaScriptES ModulesBeginner
13Why can circular module imports (Module A imports B, which imports A) cause subtle bugs? JavaScript › ES ModulesJavaScriptES ModulesAdvanced
14How do dynamic imports (import()) differ from static import statements? JavaScript › ES ModulesJavaScriptES ModulesIntermediate
15What does the 'esModuleInterop' compiler option fix when importing CommonJS modules? TypeScript › ModulesTypeScriptModulesIntermediate
16What is 'isolatedModules' and why do some tools (like Babel, esbuild, or swc) require it to be enabled? TypeScript › ModulesTypeScriptModulesIntermediate
17What does the `if __name__ == '__main__':` idiom accomplish, and why is it important for modules? Python › Modules & PackagingPythonModules & PackagingIntermediate
18What are CSS Modules and how do they prevent class names from clashing between components? React › Styling in React (CSS Modules, Styled Components & Tailwind)ReactStyling in React (CSS Modules, Styled Components & Tailwind)Beginner
19What is a general guideline for choosing between plain CSS, CSS Modules, styled components, and Tailwind for a new project? React › Styling in React (CSS Modules, Styled Components & Tailwind)ReactStyling in React (CSS Modules, Styled Components & Tailwind)Beginner
20What are some of the most widely used official Redis modules, and what specific capability does each one add? Redis › Redis Modules OverviewRedisRedis Modules OverviewBeginner
21What are CSS Modules, and how do you use them in a Next.js project? Next.js › Styling in Next.js (CSS Modules, Tailwind & Styled Components)Next.jsStyling in Next.js (CSS Modules, Tailwind & Styled Components)Beginner
22What are Redis modules, and how do they extend Redis's core capabilities? Redis › Redis Modules OverviewRedisRedis Modules OverviewBeginner
23How do you check which modules are currently loaded on a running Redis instance, and how do you load a new module? Redis › Redis Modules OverviewRedisRedis Modules OverviewIntermediate
24What is Redis Stack, and how does it relate to the individual Redis modules? Redis › Redis Modules OverviewRedisRedis Modules OverviewIntermediate
25What licensing considerations should you be aware of when using Redis modules in a commercial product? Redis › Redis Modules OverviewRedisRedis Modules OverviewIntermediate
26How do 'export *' and re-export barrel files (index.ts aggregating a directory's exports) interact with tree-shaking and TypeScript's type checking performance? TypeScript › ModulesTypeScriptModulesAdvanced
27How would you correctly type a module that supports BOTH a default export and several named exports, and how do consumers import it under different esModuleInterop settings? TypeScript › ModulesTypeScriptModulesAdvanced
28How does Python locate modules during import, and what is sys.path's role? Python › Modules & PackagingPythonModules & PackagingAdvanced
29Why has Angular moved toward standalone components as the recommended default over NgModules? Angular › NgModules & Modular ArchitectureAngularNgModules & Modular ArchitectureAdvanced
30What factors should guide the choice between CSS Modules, Tailwind CSS, and a CSS in JS library for a new large scale Next.js project? Next.js › Styling in Next.js (CSS Modules, Tailwind & Styled Components)Next.jsStyling in Next.js (CSS Modules, Tailwind & Styled Components)Advanced
31How do Redis modules interact with Redis Cluster, and what considerations apply when using modules in a sharded, distributed environment? Redis › Redis Modules OverviewRedisRedis Modules OverviewAdvanced
32How do you import just the types from a module without importing any runtime code, using 'import type'? TypeScript › ModulesTypeScriptModulesBeginner
33How do ambient module declarations for non-code assets (like importing a .svg or .css file) work in a TypeScript + bundler setup? TypeScript › ModulesTypeScriptModulesAdvanced
34How does TypeScript's import/export syntax relate to the underlying JavaScript module system it compiles to? TypeScript › ModulesTypeScriptModulesBeginner
35What does the __init__.py file do inside a package directory? Python › Modules & PackagingPythonModules & PackagingBeginner
36What does the URL/URLSearchParams API provide, and why is it generally preferred over the older querystring module today? Node.js › Core Node.js ModulesNode.jsCore Node.js ModulesBeginner
37What does the node:os module provide, and what are some commonly used functions from it? Node.js › Core Node.js ModulesNode.jsCore Node.js ModulesBeginner
38How would you create a basic HTTP server using only Node's built-in node:http module, without a framework like Express? Node.js › HTTP & HTTPS ModulesNode.jsHTTP & HTTPS ModulesBeginner
39How does path mapping via the 'paths' compiler option let you use cleaner, absolute-style import paths? TypeScript › ModulesTypeScriptModulesIntermediate
40How does Python's module import system avoid re-executing a module multiple times when imported from different places? Python › Modules & PackagingPythonModules & PackagingIntermediate
41How does pyproject.toml serve as the modern standard for defining a Python package's build configuration and dependencies? Python › Modules & PackagingPythonModules & PackagingIntermediate
42What is __all__ and how does it control `from module import *` behavior? Python › Modules & PackagingPythonModules & PackagingIntermediate
43What is the purpose of a `requirements.txt` file, and how does it differ from dependency declarations in pyproject.toml? Python › Modules & PackagingPythonModules & PackagingIntermediate
44What does 'editable install' (pip install -e .) mean, and why is it useful during development? Python › Modules & PackagingPythonModules & PackagingIntermediate
45What does the node:zlib module provide, and how would you use it to compress an HTTP response? Node.js › Core Node.js ModulesNode.jsCore Node.js ModulesIntermediate
46How do path.posix and path.win32 let you work with a specific path format regardless of the operating system Node.js is actually running on? Node.js › Path & OS ModulesNode.jsPath & OS ModulesIntermediate
47How would you organize global styles versus component specific styles in a large Next.js application? Next.js › Styling in Next.js (CSS Modules, Tailwind & Styled Components)Next.jsStyling in Next.js (CSS Modules, Tailwind & Styled Components)Intermediate
48How does 'module resolution' (the 'moduleResolution' compiler option) affect how TypeScript locates the right .d.ts file for a bare package import? TypeScript › ModulesTypeScriptModulesAdvanced
49What is a namespace package, and how does it differ from a regular package? Python › Modules & PackagingPythonModules & PackagingAdvanced
50How does Python resolve circular imports, and what strategies avoid the resulting ImportError? Python › Modules & PackagingPythonModules & PackagingAdvanced
51How does importlib let you dynamically import a module by name at runtime? Python › Modules & PackagingPythonModules & PackagingAdvanced
52How does the module search and caching system handle submodule imports like `import package.subpackage.module`? Python › Modules & PackagingPythonModules & PackagingAdvanced
53How would you make an outgoing HTTP request from Node.js using the built-in fetch API versus the older http.request()? Node.js › HTTP & HTTPS ModulesNode.jsHTTP & HTTPS ModulesAdvanced
54What does the node:events module's EventEmitter class provide, and what naming convention do most Node.js core APIs follow when using it? Node.js › Core Node.js ModulesNode.jsCore Node.js ModulesBeginner
55What does the node:assert module provide, and how does it differ in purpose from a full testing framework? Node.js › Core Node.js ModulesNode.jsCore Node.js ModulesIntermediate
56What does the node:util.types module provide, and how does it differ from JavaScript's built-in typeof operator? Node.js › Core Node.js ModulesNode.jsCore Node.js ModulesIntermediate
57What is HTTP keep-alive, and how does Node's http.Agent manage connection reuse for outgoing requests? Node.js › HTTP & HTTPS ModulesNode.jsHTTP & HTTPS ModulesIntermediate
58How does styled components let you write CSS directly inside your JavaScript files? React › Styling in React (CSS Modules, Styled Components & Tailwind)ReactStyling in React (CSS Modules, Styled Components & Tailwind)Intermediate
59How do you build a plugin-style CLI where subcommands are dynamically discovered and registered from separate modules, rather than hardcoded? Python › Command-Line Interfaces (argparse)PythonCommand-Line Interfaces (argparse)Advanced
60What is the node:stream module's Transform stream, and how does it differ from a Readable or Writable stream? Node.js › Core Node.js ModulesNode.jsCore Node.js ModulesAdvanced
61What is path traversal, and how does the path module (specifically path.normalize() and careful path.join() usage) help prevent it as a security vulnerability? Node.js › Path & OS ModulesNode.jsPath & OS ModulesAdvanced
62How would you conditionally apply different CSS classes based on a component's state, such as showing an active style? React › Styling in React (CSS Modules, Styled Components & Tailwind)ReactStyling in React (CSS Modules, Styled Components & Tailwind)Advanced
63How would you evaluate whether to use a Redis module for a specific feature versus implementing similar functionality using Redis's core data types directly? Redis › Redis Modules OverviewRedisRedis Modules OverviewAdvanced
64What is the util module's inspect() function used for, and how does it relate to how console.log() displays objects? Node.js › Core Node.js ModulesNode.jsCore Node.js ModulesBeginner
65What is the difference between path.join() and path.resolve(), and when would you use each? Node.js › Path & OS ModulesNode.jsPath & OS ModulesBeginner
66What does path.parse() and path.format() do, and how are they useful for decomposing and reconstructing file paths? Node.js › Path & OS ModulesNode.jsPath & OS ModulesBeginner
67What does the node:path module provide, and why should you always use it instead of manually concatenating file path strings? Node.js › Core Node.js ModulesNode.jsCore Node.js ModulesIntermediate
68What does the node:crypto module provide, and what's the difference between hashing and encryption? Node.js › Core Node.js ModulesNode.jsCore Node.js ModulesIntermediate
69What does the node:readline module provide, and what is a common use case for it? Node.js › Core Node.js ModulesNode.jsCore Node.js ModulesIntermediate
70How does Node's node:https module differ from node:http, and what additional configuration does it require? Node.js › HTTP & HTTPS ModulesNode.jsHTTP & HTTPS ModulesIntermediate
71What is Tailwind CSS and how does its approach differ from writing traditional custom CSS? React › Styling in React (CSS Modules, Styled Components & Tailwind)ReactStyling in React (CSS Modules, Styled Components & Tailwind)Intermediate
72What is a feature module, and how does it help organize a larger Angular application? Angular › NgModules & Modular ArchitectureAngularNgModules & Modular ArchitectureIntermediate
73How do you lazy load a feature module so its code is only downloaded when a user actually navigates to it? Angular › NgModules & Modular ArchitectureAngularNgModules & Modular ArchitectureIntermediate
74How do styled components or other CSS in JS libraries work in the Next.js App Router, given the presence of server components? Next.js › Styling in Next.js (CSS Modules, Tailwind & Styled Components)Next.jsStyling in Next.js (CSS Modules, Tailwind & Styled Components)Intermediate
75What does the node:perf_hooks module provide, and how would you use it to measure precise execution time of a code block? Node.js › Core Node.js ModulesNode.jsCore Node.js ModulesAdvanced
76How would you structure a large Express application using the Router to organize routes into feature-based or resource-based modules? Node.js › Express & MiddlewareNode.jsExpress & MiddlewareAdvanced
77What is a TypeScript namespace, and how is it declared? TypeScript › Namespaces & Declaration MergingTypeScriptNamespaces & Declaration MergingBeginner
78Why is 'export' required inside a namespace for a member to be accessible from outside it? TypeScript › Namespaces & Declaration MergingTypeScriptNamespaces & Declaration MergingBeginner
79What is the fundamental difference between concurrency and parallelism, and how does this map to Python's threading versus multiprocessing modules? Python › Concurrency (asyncio/threading/multiprocessing)PythonConcurrency (asyncio/threading/multiprocessing)Beginner
80How do static properties and methods work on a TypeScript class? TypeScript › Classes: Access Modifiers, Abstract Classes & ImplementsTypeScriptClasses: Access Modifiers, Abstract Classes & ImplementsIntermediate
81How does the 'declare' keyword work, and what does it promise the compiler? TypeScript › Declaration FilesTypeScriptDeclaration FilesIntermediate
82How do you write a declaration file for a library that attaches itself to the global 'window' object? TypeScript › Declaration FilesTypeScriptDeclaration FilesIntermediate
83How does merging work between a namespace and a class (or function) sharing the same name? TypeScript › Namespaces & Declaration MergingTypeScriptNamespaces & Declaration MergingIntermediate
84What is the difference between a module and a package in Python? Python › Modules & PackagingPythonModules & PackagingBeginner
85What is the node: prefix for core module imports, and why was it introduced? Node.js › Core Node.js ModulesNode.jsCore Node.js ModulesBeginner
86What is the difference between an absolute import and a relative import within a package? Python › Modules & PackagingPythonModules & PackagingIntermediate
87What is Express.js, and what problem does it solve compared to using Node.js's raw http module directly? Node.js › Express & MiddlewareNode.jsExpress & MiddlewareBeginner
88What is the purpose of the express.static() built-in middleware, and how would you use it to serve a folder of static assets? Node.js › Express & MiddlewareNode.jsExpress & MiddlewareBeginner
89What is the difference between an absolute path and a relative path in Node.js, and how does __dirname help resolve paths reliably? Node.js › File System & File ProcessingNode.jsFile System & File ProcessingBeginner
90What is Mongoose, and what does it add on top of the raw MongoDB Node.js driver? Node.js › Databases & ORMs (MongoDB/Mongoose, SQL/Sequelize)Node.jsDatabases & ORMs (MongoDB/Mongoose, SQL/Sequelize)Beginner
91What is an NgModule in Angular, and what was its traditional purpose? Angular › NgModules & Modular ArchitectureAngularNgModules & Modular ArchitectureBeginner
92What is the SharedModule pattern, and is it still relevant with standalone components? Angular › NgModules & Modular ArchitectureAngularNgModules & Modular ArchitectureBeginner
93What is the purpose of the custom App component in the Pages Router? Next.js › Custom App & Document in Pages RouterNext.jsCustom App & Document in Pages RouterBeginner
94What is a Bloom filter, and what problem does the RedisBloom module help you solve? Redis › RedisBloom (Probabilistic Data Structures)RedisRedisBloom (Probabilistic Data Structures)Beginner
95What is RedisTimeSeries, and what kind of data is it specifically designed to handle? Redis › RedisTimeSeriesRedisRedisTimeSeriesBeginner
96How does source mapping help when debugging minified or transpiled code? JavaScript › Debugging, Testing & ToolingJavaScriptDebugging, Testing & ToolingIntermediate
97What is the Module pattern in Node.js, and how does it enable encapsulation? Node.js › Architecture & Design PatternsNode.jsArchitecture & Design PatternsIntermediate
98What does the express.json() and express.urlencoded() built-in middleware do, and why must it be registered before routes that need to read req.body? Node.js › Express & MiddlewareNode.jsExpress & MiddlewareIntermediate
99What is the purpose of the helmet middleware package for an Express application, and what specific security headers does it set? Node.js › Express & MiddlewareNode.jsExpress & MiddlewareIntermediate
100What is CORS middleware in Express, and how does the cors package simplify configuring Cross-Origin Resource Sharing? Node.js › Express & MiddlewareNode.jsExpress & MiddlewareIntermediate
101How would you recursively read all files within a directory tree in Node.js? Node.js › File System & File ProcessingNode.jsFile System & File ProcessingIntermediate
102How 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
103Why can items not be removed from a standard Bloom filter, and what alternative structure does RedisBloom offer if you need removal support? Redis › RedisBloom (Probabilistic Data Structures)RedisRedisBloom (Probabilistic Data Structures)Intermediate
104How do you configure automatic downsampling in RedisTimeSeries, where detailed recent data is aggregated into coarser summaries over time? Redis › RedisTimeSeriesRedisRedisTimeSeriesIntermediate
105How do you configure a retention period for a Redis time series so old data is automatically removed after a certain amount of time? Redis › RedisTimeSeriesRedisRedisTimeSeriesIntermediate
106How would you build a CLI tool where some arguments can also be set via environment variables, falling back to a default if neither is provided? Python › Command-Line Interfaces (argparse)PythonCommand-Line Interfaces (argparse)Advanced
107How do you customize argparse's automatically-generated usage and help text formatting, like preserving specific line breaks in the description? Python › Command-Line Interfaces (argparse)PythonCommand-Line Interfaces (argparse)Advanced
108How do entry points in packaging metadata enable a package to register CLI commands or plugins? Python › Modules & PackagingPythonModules & PackagingAdvanced
109How do you implement rate-limited job processing so a Node.js worker doesn't exceed a downstream third-party API's request limits? Node.js › Background Jobs & QueuesNode.jsBackground Jobs & QueuesAdvanced
110What is the node:vm module, and what are the security implications of using it to execute untrusted code? Node.js › Core Node.js ModulesNode.jsCore Node.js ModulesAdvanced
111What are some best practices for structuring a large Angular application with many features? Angular › Angular Style Guide & Best PracticesAngularAngular Style Guide & Best PracticesAdvanced
112What is hierarchical dependency injection in Angular, and how does providing a service at the component level differ from providing it at the root level? Angular › Services & Dependency InjectionAngularServices & Dependency InjectionAdvanced
113How would you design a monitoring system architecture using RedisTimeSeries that efficiently handles both high frequency raw data ingestion and long term historical trend analysis? Redis › RedisTimeSeriesRedisRedisTimeSeriesAdvanced
114How does RedisTimeSeries handle labels and how can you use them to query across multiple related time series at once? Redis › RedisTimeSeriesRedisRedisTimeSeriesAdvanced
115How do you set up and use Tailwind CSS in a Next.js project? Next.js › Styling in Next.js (CSS Modules, Tailwind & Styled Components)Next.jsStyling in Next.js (CSS Modules, Tailwind & Styled Components)Beginner
116How would you implement HTTP/2 server push or basic HTTP/2 support in Node.js using the node:http2 module? Node.js › HTTP & HTTPS ModulesNode.jsHTTP & HTTPS ModulesAdvanced
117What is a .d.ts file and what is it used for? TypeScript › Declaration FilesTypeScriptDeclaration FilesBeginner
118How do you name a Java module, and what naming convention is recommended to avoid conflicts with other modules? Java › Java Platform Module System (JPMS)JavaJava Platform Module System (JPMS)Beginner
119How do you type a CommonJS module using 'export =' and 'import ... = require(...)'? TypeScript › Declaration FilesTypeScriptDeclaration FilesIntermediate
120What are C++20 modules and how do they improve on headers? C++ › Compilation & LinkingC++Compilation & LinkingAdvanced
121What is the purpose of the tsconfig.json file, and what does the 'compilerOptions' key control? TypeScript › tsconfig & Compiler OptionsTypeScripttsconfig & Compiler OptionsBeginner
122What does the 'target' compiler option control, and how does it affect which JavaScript features get downleveled? TypeScript › tsconfig & Compiler OptionsTypeScripttsconfig & Compiler OptionsBeginner
123What is the difference between the 'include'/'exclude' arrays and the 'files' array in tsconfig.json for specifying which files are part of the compilation? TypeScript › tsconfig & Compiler OptionsTypeScripttsconfig & Compiler OptionsIntermediate
124How do you organize dependency registration in a large Flutter app, using a dedicated setup function or dedicated modules, to keep the overall service locator configuration clean and maintainable as the app grows significantly? Flutter › Dependency Injection in Flutter (GetIt & Service Locator)FlutterDependency Injection in Flutter (GetIt & Service Locator)Intermediate
125How do TypeScript project references ('references' + 'composite': true) improve build performance and enforce boundaries in a large monorepo? TypeScript › tsconfig & Compiler OptionsTypeScripttsconfig & Compiler OptionsAdvanced
126How does 'incremental' compilation (and the '.tsbuildinfo' file it generates) speed up repeated 'tsc' invocations during local development? TypeScript › tsconfig & Compiler OptionsTypeScripttsconfig & Compiler OptionsAdvanced
127How would you diagnose and resolve a 'split package' problem when using JPMS, where the same package is defined across two different modules on the module path? Java › Class Loading & Bytecode VerificationJavaClass Loading & Bytecode VerificationAdvanced
128How does the 'unnamed module' work, and how does JPMS maintain backward compatibility with the vast ecosystem of pre-existing JARs that were never designed with modules in mind? Java › Java Platform Module System (JPMS)JavaJava Platform Module System (JPMS)Advanced
129How would you use jlink to create a custom, minimal Java runtime image containing only the specific modules an application actually needs, and what deployment benefits does this provide? Java › Java Platform Module System (JPMS)JavaJava Platform Module System (JPMS)Advanced
130What is the Singleton pattern and how is it implemented in JavaScript? JavaScript › Design Patterns in JavaScriptJavaScriptDesign Patterns in JavaScriptBeginner
131What is the Singleton pattern, and what are the specific risks of using it in a Node.js application? Node.js › Architecture & Design PatternsNode.jsArchitecture & Design PatternsIntermediate
132How do standalone components change the way you organize and use components in Angular? Angular › Components & TemplatesAngularComponents & TemplatesIntermediate
133How do you group related arguments visually in the generated --help output using argument groups? Python › Command-Line Interfaces (argparse)PythonCommand-Line Interfaces (argparse)Advanced
134How would you implement a file-watching feature in Node.js using fs.watch(), and what are its known cross-platform limitations? Node.js › File System & File ProcessingNode.jsFile System & File ProcessingAdvanced
135What does logging.basicConfig() do, and what are its common pitfalls? Python › LoggingPythonLoggingBeginner
136What is the purpose of the 'node:timers/promises' module, and how does it simplify working with delays in async code? Node.js › Async PatternsNode.jsAsync PatternsBeginner
137What is the difference between res.set('Cache-Control', 'no-cache') and 'no-store' in an Express response? Node.js › CachingNode.jsCachingBeginner
138What does the EXPOSE instruction in a Dockerfile actually do, and what is a common misconception about it? Node.js › Docker & DeploymentNode.jsDocker & DeploymentBeginner
139What is Nodemailer, and how does it let a Node.js application send emails via SMTP? Node.js › Email & NotificationsNode.jsEmail & NotificationsBeginner
140What is the difference between the 'to', 'cc', and 'bcc' fields when sending an email programmatically, and why does 'bcc' matter for privacy? Node.js › Email & NotificationsNode.jsEmail & NotificationsBeginner
141What is a shebang line, and why does it need to be the first line of an executable Node.js CLI script? Node.js › CLI Tools & Scripting with Node.jsNode.jsCLI Tools & Scripting with Node.jsBeginner
142What is Node.js, and how does it differ fundamentally from running JavaScript in a web browser? Node.js › Node.js Fundamentals & Runtime ArchitectureNode.jsNode.js Fundamentals & Runtime ArchitectureBeginner
143What does providedIn root mean when registering an Angular service? Angular › Dependency Injection Providers & Injection TokensAngularDependency Injection Providers & Injection TokensBeginner
144How do you set and retrieve a specific nested field within a JSON document using RedisJSON's path syntax? Redis › RedisJSONRedisRedisJSONBeginner
145What is RedisSearch, and what capabilities does it add to a Redis deployment? Redis › RedisSearch (Full Text Search)RedisRedisSearch (Full Text Search)Beginner
146What HTTP caching headers (Cache-Control, ETag) can a Node.js/Express API use to let clients and CDNs cache responses? Node.js › CachingNode.jsCachingIntermediate
147What is a load balancer, and how does it distribute traffic across multiple Node.js application instances? Node.js › Cloud & DevOpsNode.jsCloud & DevOpsIntermediate
148What is the difference between the 'sticky' and default load-balancing strategies when using Node's cluster module, and when does it matter? Node.js › Clustering & Worker ThreadsNode.jsClustering & Worker ThreadsIntermediate
149How would you send a push notification from a Node.js backend to a mobile app using Firebase Cloud Messaging (FCM)? Node.js › Email & NotificationsNode.jsEmail & NotificationsIntermediate
150What is the difference between sending SMS via a provider's REST API (like Twilio) versus using SMTP-based email in terms of a Node.js integration? Node.js › Email & NotificationsNode.jsEmail & NotificationsIntermediate
151What does it mean that Node.js's I/O is handled by libuv, and how does libuv abstract different operating systems' I/O mechanisms? Node.js › Event Loop & Non-blocking IONode.jsEvent Loop & Non-blocking IOIntermediate
152How do you safely watch a directory or file for changes using fs.watch(), and what are its known cross-platform limitations? Node.js › File System (fs) ModuleNode.jsFile System (fs) ModuleIntermediate
153How do you handle right to left languages, like Arabic, in a React app? React › Internationalization (i18n) in ReactReactInternationalization (i18n) in ReactIntermediate
154How does the read through caching pattern work, and how is it different from cache aside from the application's perspective? Redis › Caching PatternsRedisCaching PatternsIntermediate
155How does logging.NullHandler help library authors avoid the 'No handlers could be found' warning? Python › LoggingPythonLoggingAdvanced
156How would you implement API key authentication for a Node.js service consumed by other backend services, and what are its security limitations? Node.js › Authentication & AuthorizationNode.jsAuthentication & AuthorizationAdvanced
157What is the 'stale-while-revalidate' caching strategy, and how would you implement it for an API response? Node.js › CachingNode.jsCachingAdvanced
158What are SPF, DKIM, and DMARC, and why do they matter for a Node.js application's transactional emails actually reaching users' inboxes? Node.js › Email & NotificationsNode.jsEmail & NotificationsAdvanced
159How would you design a RedisSearch based product search feature that supports faceted filtering, such as showing available categories and their counts alongside search results? Redis › RedisSearch (Full Text Search)RedisRedisSearch (Full Text Search)Advanced
160In what order do multiple decorators applied to the same declaration execute? TypeScript › DecoratorsTypeScriptDecoratorsAdvanced
161How do you convert a Node.js callback-based function into a Promise-based one manually, without using util.promisify()? Node.js › Async PatternsNode.jsAsync PatternsBeginner
162What is the difference between storing an authentication token in localStorage versus an httpOnly cookie, from a security perspective? Node.js › Authentication & AuthorizationNode.jsAuthentication & AuthorizationBeginner
163What is the difference between throwing an error synchronously and calling a callback with an error as its first argument in Node.js? Node.js › Error HandlingNode.jsError HandlingBeginner
164How do you add a CSS class to an element in JSX, and why is the attribute name different from regular HTML? React › Components & JSXReactComponents & JSXBeginner
165What is a simple example of a higher order component that adds a border style to any component? React › Higher-Order Components (HOCs)ReactHigher-Order Components (HOCs)Beginner
166When is a micro frontend architecture usually not worth the added complexity for a project? Angular › Micro Frontends with AngularAngularMicro Frontends with AngularBeginner
167What is a standalone component in Angular, and how do you create one? Angular › Standalone ComponentsAngularStandalone ComponentsBeginner
168How do you use pathlib.Path for modern, object-oriented file path manipulation instead of os.path's string-based functions? Python › File I/O & Context ManagersPythonFile I/O & Context ManagersIntermediate
169Why is it recommended to use logging.getLogger(__name__) instead of the root logger in library and module code? Python › LoggingPythonLoggingIntermediate
170How do you configure logging using a dictionary via logging.config.dictConfig? Python › LoggingPythonLoggingIntermediate
171What's the difference between propagate=True and propagate=False on a logger? Python › LoggingPythonLoggingIntermediate
172What is util.promisify(), and when would you still need it in modern Node.js? Node.js › Async PatternsNode.jsAsync PatternsIntermediate
173What is the risk of caching sensitive or user-specific data with a shared cache key, and how do you avoid it? Node.js › CachingNode.jsCachingIntermediate
174What is a reverse proxy, and why is Nginx commonly placed in front of a Node.js application in production? Node.js › Cloud & DevOpsNode.jsCloud & DevOpsIntermediate
175What is the difference between transactional email and marketing email, and why do most Node.js applications use separate providers or sending domains for each? Node.js › Email & NotificationsNode.jsEmail & NotificationsIntermediate
176How would you implement a simple rate limiter using Redis's INCR command with expiration? Node.js › Caching with RedisNode.jsCaching with RedisIntermediate
177How would you parse command-line arguments and flags in a Node.js CLI tool using a library like commander or yargs? Node.js › CLI Tools & Scripting with Node.jsNode.jsCLI Tools & Scripting with Node.jsIntermediate
178How do you write cross-platform shell scripts in Node.js that work identically on Windows, macOS, and Linux? Node.js › CLI Tools & Scripting with Node.jsNode.jsCLI Tools & Scripting with Node.jsIntermediate
179What is a micro frontend architecture, and why might a large organization choose it for their Angular apps? Angular › Micro Frontends with AngularAngularMicro Frontends with AngularIntermediate
180How do standalone components handle lazy loading differently from NgModule based lazy loading? Angular › Standalone ComponentsAngularStandalone ComponentsIntermediate
181How can you combine RedisJSON with RedisSearch to enable searching across specific fields within stored JSON documents? Redis › RedisJSONRedisRedisJSONIntermediate
182How would you build a decorator-based plugin/registration system, similar to how Flask's @app.route() registers view functions? Python › DecoratorsPythonDecoratorsAdvanced
183What is token introspection, and when is it needed instead of simply verifying a JWT's signature locally? Node.js › Authentication & Authorization (JWT, OAuth, Passport)Node.jsAuthentication & Authorization (JWT, OAuth, Passport)Advanced
184What is PKCE (Proof Key for Code Exchange), and why is it now recommended for OAuth flows even in traditional server-side Node.js applications? Node.js › Authentication & Authorization (JWT, OAuth, Passport)Node.jsAuthentication & Authorization (JWT, OAuth, Passport)Advanced
185How would you migrate an existing NgModule based Angular application to standalone components? Angular › Standalone ComponentsAngularStandalone ComponentsAdvanced