Interview Q&A

Master technical and career interviews with structured answers—short definition, real examples, pitfalls, and how to answer in 60–90 seconds.

4608 total questions 4508 technical 100 career & HR 4272 from PDF library

Showing 2776–2800 of 3281

Career & HR topics

By tech stack

Popular tracks

Mid PDF
What are process.nextTick() and setImmediate()?

Short answer: How do they differ? process.nextTick() queues a callback to be invoked immediately after the current operation completes, before the event loop continues. setImmediate() queues a callback to run on the next…

Node.js Read answer
Mid PDF
How do you deploy a Node.js app to production?

Short answer: Deploying means getting your app from your local machine to a live server. Explain a bit more Basic steps: Choose a hosting platform: VPS (DigitalOcean, AWS EC2), PaaS (Heroku, Vercel), or container platfor…

Node.js Read answer
Mid PDF
How do you connect Node.js to MongoDB?

Short answer: You typically use the MongoDB Node.js driver or an ODM like Mongoose. Explain a bit more Basic connection example with native driver: const { MongoClient } = require('mongodb'); async function connect() { c…

Node.js Read answer
Mid PDF
How do you write unit tests in Node.js?

Short answer: Unit tests check small, isolated pieces of your code (like functions) to make sure they work as expected. Explain a bit more Basic example using Mocha and Chai: // calculator.js function add(a, b) { return…

Node.js Read answer
Mid PDF
What are process.nextTick() and setImmediate()? How do they differ?

Short answer: process.nextTick() queues a callback to be invoked immediately after the current operation completes, before the event loop continues. Explain a bit more setImmediate() queues a callback to run on the next…

Node.js Read answer
Mid PDF
What happens when an uncaught exception occurs in Node.js?

Short answer: If an error (exception) is thrown but not caught, Node.js will: Print the error stack trace to the console. Explain a bit more Immediately terminate the process to avoid unpredictable behavior. Why? Because…

Node.js Read answer
Mid PDF
What are common security issues in Node.js applications?

Short answer: Injection attacks (SQL, NoSQL) Cross-Site Scripting (XSS) Cross-Site Request Forgery (CSRF) Broken authentication and session management Insecure handling of sensitive data (passwords, API keys) Unvalidated…

Node.js Read answer
Mid PDF
How do you write unit tests in Node.js?

Short answer: s expected. Basic example using Mocha and Chai: // calculator.js function add(a, b) { return a + b; } module.exports = add; // test/calculator.test.js const add = require('../calculator'); const { expect }…

Node.js Read answer
Mid PDF
Why is Node.js single-threaded?

Short answer: Node.js uses a single-threaded event loop to handle concurrency. Explain a bit more This design: Simplifies programming by avoiding thread-related bugs like race conditions. Uses non-blocking I/O so a singl…

Node.js Read answer
Mid PDF
How do you prevent SQL Injection?

Short answer: Always use parameterized queries or prepared statements instead of string concatenation. Example with MySQL: connection.query('SELECT * FROM users WHERE id = ?', [userId], callback); Use ORM libraries like…

Node.js Read answer
Mid PDF
What are some popular testing frameworks for Node.js?

Short answer: Mocha: Flexible test runner, widely used. Jest: Full-featured, zero-config, includes mocks and coverage. Jasmine: Behavior-driven development framework. AVA: Minimalistic and fast. Tape: Simple and small fo…

Node.js Read answer
Mid PDF
How do you improve performance in a Node.js app?

Short answer: Use clustering or process managers like PM2 to utilize multiple CPU cores. Explain a bit more Implement caching (in-memory or distributed caches like Redis). Use asynchronous I/O properly (avoid blocking th…

Node.js Read answer
Mid PDF
How does Node.js work?

Short answer: Node.js operates on a single-threaded, event-driven architecture. Explain a bit more It uses the event loop to handle multiple connections concurrently, which means it can perform non-blocking I/O operation…

Node.js Read answer
Mid PDF
What are availability zones?

Short answer: Physically separate datacenters within an Azure region. Ensure high availability and fault tolerance. Example: Deploy VMs across Zone 1, 2, 3 for resiliency. Real-world example (ShopNest) ShopNest on Azure…

Azure Read answer
Mid PDF
How do you integrate Azure AD with third-party identity providers?

Short answer: Configure federation using SAML, OpenID Connect, or OAuth 2.0. Example: Integrate Google Workspace or Okta for authentication. Real-world example (ShopNest) ShopNest on Azure typically uses App Service + SQ…

Azure Read answer
Mid PDF
Explain your experience deploying and scaling .NET apps in Azure.

Short answer: Deploy ASP.NET Core apps to Azure App Service or Azure Functions. Use deployment slots for blue/green deployments. Enable auto-scaling based on CPU, memory, or request count. Monitor with Application Insigh…

Azure Read answer
Mid PDF
How do you debug an issue in production on Azure App Service?

Short answer: Use Application Insights to trace exceptions and request failures. Access Kudu console for logs and process inspection. Use Remote Debugging from Visual Studio. Example: Enabled detailed error messages and…

Azure Read answer
Mid PDF
Describe a challenging situation you faced with Azure DevOps pipelines.

Short answer: Example: CI/CD failed due to secret misconfiguration in Key Vault. Resolved by configuring pipeline managed identity and updating Key Vault access policies. Ensured staging deployments were successful befor…

Azure Read answer
Mid PDF
How do you ensure zero-downtime deployments?

Short answer: Use deployment slots in Azure App Service. Swap staging and production after successful smoke tests. Enable traffic routing gradually using Azure Front Door. Use feature flags to hide new features until ful…

Azure Read answer
Mid PDF
Describe a time you used serverless to solve a business problem.

Short answer: Example: Automated invoice processing using Azure Functions triggered by Blob uploads. Reduced manual workload and scaled automatically during peak hours. Integrated with Azure Storage, Cosmos DB, and Servi…

Azure Read answer
Mid PDF
How do you ensure compliance and security using Azure tools?

Short answer: Use Azure Policy to enforce resource rules. Store secrets in Azure Key Vault. Implement role-based access control (RBAC) for all resources. Enable Azure Security Center for continuous monitoring. Real-world…

Azure Read answer
Mid PDF
What Azure services would you use to design a high-throughput

Short answer: PI system? Azure App Service or Azure Kubernetes Service (AKS) for hosting APIs. Azure API Management for gateway and throttling. Cosmos DB with partitioned throughput for high-speed data. Azure Cache for R…

Azure Read answer
Mid PDF
What Azure services would you use to design a high-throughput API system?

Short answer: Azure App Service or Azure Kubernetes Service (AKS) for hosting APIs. Azure API Management for gateway and throttling. Cosmos DB with partitioned throughput for high-speed data. Azure Cache for Redis for fr…

Azure Read answer
Mid PDF
What are common performance bottlenecks in Azure-hosted .NET

Short answer: pps? Database latency or unoptimized queries. Blocking synchronous calls instead of async patterns. Memory or CPU constraints on App Service Plan. Excessive cold starts in serverless functions. Poor caching…

Azure Read answer
Mid PDF
What are common performance bottlenecks in Azure-hosted .NET apps?

Short answer: Database latency or unoptimized queries. Blocking synchronous calls instead of async patterns. Memory or CPU constraints on App Service Plan. Excessive cold starts in serverless functions. Poor caching stra…

Azure Read answer

Node.js Node.js Tutorial · Node.js

Short answer: How do they differ? process.nextTick() queues a callback to be invoked immediately after the current operation completes, before the event loop continues. setImmediate() queues a callback to run on the next iteration of the event loop.

Example code

process.nextTick(() => console.log('nextTick')); setImmediate(() => console.log('setImmediate')); console.log('sync'); Output: sync nextTick setImmediate nextTick runs before any I/O or timers; setImmediate runs after I/O callbacks.

Real-world example (ShopNest)

A ShopNest BFF in Node.js aggregates catalog and price APIs for the React storefront.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

Node.js Node.js Tutorial · Node.js

Short answer: Deploying means getting your app from your local machine to a live server.

Explain a bit more

Basic steps: Choose a hosting platform: VPS (DigitalOcean, AWS EC2), PaaS (Heroku, Vercel), or container platforms (Kubernetes, Docker). Set environment variables securely (don't hardcode secrets). Install dependencies using npm install --production. Run your app with a process manager (like PM2) for stability. Set up reverse proxy (using Nginx or Apache) to handle HTTPS, load balancing, and static files. Automate deployments with scripts or CI/CD pipelines.

Real-world example (ShopNest)

A ShopNest BFF in Node.js aggregates catalog and price APIs for the React storefront.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

Node.js Node.js Tutorial · Node.js

Short answer: You typically use the MongoDB Node.js driver or an ODM like Mongoose.

Explain a bit more

Basic connection example with native driver: const { MongoClient } = require('mongodb'); async function connect() { const uri = 'mongodb://localhost:27017/mydatabase'; const client = new MongoClient(uri); try { await client.connect(); console.log('Connected to MongoDB'); const db = client.db('mydatabase'); // Use `db` to query collections } catch (err) { console.error(err); } finally { await client.close(); } } connect();

Example code

You typically use the MongoDB Node.js driver or an ODM like Mongoose. Basic connection example with native driver: const { MongoClient } = require('mongodb');
async function connect() {
const uri = 'mongodb://localhost:27017/mydatabase';
const client = new MongoClient(uri); try { await client.connect(); console.log('Connected to MongoDB'); const db = client.db('mydatabase'); // Use `db` to query collections } catch (err) { console.error(err); } finally { await client.close();
}
} connect();

Real-world example (ShopNest)

A ShopNest BFF in Node.js aggregates catalog and price APIs for the React storefront.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

Node.js Node.js Tutorial · Node.js

Short answer: Unit tests check small, isolated pieces of your code (like functions) to make sure they work as expected.

Explain a bit more

Basic example using Mocha and Chai: // calculator.js function add(a, b) { return a + b; const { expect } = require('chai'); describe('add function', () => { it('should return the sum of two numbers', () => { const result = add(2, 3); expect(result).to.equal(5); }); }); Run tests with: mocha This test suite checks if add(2,3) equals 5 — simple and effective.

Example code

}
module.exports = add; // test/calculator.test.js const add = require('../calculator');

Real-world example (ShopNest)

A ShopNest BFF in Node.js aggregates catalog and price APIs for the React storefront.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

Node.js Node.js Tutorial · Node.js

Short answer: process.nextTick() queues a callback to be invoked immediately after the current operation completes, before the event loop continues.

Explain a bit more

setImmediate() queues a callback to run on the next iteration of the event loop.

Example code

process.nextTick(() => console.log('nextTick')); setImmediate(() => console.log('setImmediate')); console.log('sync'); Output: sync nextTick setImmediate nextTick runs before any I/O or timers; setImmediate runs after I/O callbacks.

Real-world example (ShopNest)

A ShopNest BFF in Node.js aggregates catalog and price APIs for the React storefront.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

Node.js Node.js Tutorial · Node.js

Short answer: If an error (exception) is thrown but not caught, Node.js will: Print the error stack trace to the console.

Explain a bit more

Immediately terminate the process to avoid unpredictable behavior. Why? Because an uncaught exception might leave the app in an inconsistent state. Best practice: Use try/catch for synchronous code, and listen to 'uncaughtException' or 'unhandledRejection' events to log errors and gracefully shut down: process.on('uncaughtException', (err) => { console.error('Uncaught Exception:', err); process.exit(1); // Exit to avoid unstable state });

Real-world example (ShopNest)

A ShopNest BFF in Node.js aggregates catalog and price APIs for the React storefront.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

Node.js Node.js Tutorial · Node.js

Short answer: Injection attacks (SQL, NoSQL) Cross-Site Scripting (XSS) Cross-Site Request Forgery (CSRF) Broken authentication and session management Insecure handling of sensitive data (passwords, API keys) Unvalidated input data Exposed stack traces or error messages Security misconfigurations

Real-world example (ShopNest)

A ShopNest BFF in Node.js aggregates catalog and price APIs for the React storefront.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

Node.js Node.js Tutorial · Node.js

Short answer: s expected. Basic example using Mocha and Chai: // calculator.js function add(a, b) { return a + b; } module.exports = add; // test/calculator.test.js const add = require('../calculator'); const { expect } = require('chai'); describe('add function', () => { it('should return the sum of two numbers', () => { const result = add(2, 3);… Explain a… bit more s…… expected. Basic example using Mocha and Chai: //…

Explain a bit more

calculator.js function add(a, b) { return a + b; } module.exports = add; // test/calculator.test.js const add = require('../calculator'); const { expect } = require('chai'); describe('add function', () => { it('should return the sum of two numbers', () => { const result = add(2, 3); expect(result).to.equal(5); }); }); Run tests with: mocha This test suite checks if add(2,3) equals 5 — simple and effective. s expected. Basic example using Mocha and Chai: // calculator.js function add(a, b) { return a + b; } module.exports = add; // test/calculator.test.js const add = require('../calculator'); const { expect } =… s expected. Basic example… }

Example code

module.exports = add; // test/calculator.test.js const add = require('../calculator');

Real-world example (ShopNest)

A ShopNest BFF in Node.js aggregates catalog and price APIs for the React storefront.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

Node.js Node.js Tutorial · Node.js

Short answer: Node.js uses a single-threaded event loop to handle concurrency.

Explain a bit more

This design: Simplifies programming by avoiding thread-related bugs like race conditions. Uses non-blocking I/O so a single thread can handle many connections efficiently. Offloads heavy tasks (file I/O, network requests) to background threads in the libuv thread pool. So, Node.js can handle many tasks concurrently without spawning multiple OS threads for each.

Real-world example (ShopNest)

A ShopNest BFF in Node.js aggregates catalog and price APIs for the React storefront.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

Node.js Node.js Tutorial · Node.js

Short answer: Always use parameterized queries or prepared statements instead of string concatenation. Example with MySQL: connection.query('SELECT * FROM users WHERE id = ?', [userId], callback); Use ORM libraries like Sequelize which handle this automatically. Validate and sanitize inputs.

Real-world example (ShopNest)

A ShopNest BFF in Node.js aggregates catalog and price APIs for the React storefront.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

Node.js Node.js Tutorial · Node.js

Short answer: Mocha: Flexible test runner, widely used. Jest: Full-featured, zero-config, includes mocks and coverage. Jasmine: Behavior-driven development framework. AVA: Minimalistic and fast. Tape: Simple and small footprint.

Real-world example (ShopNest)

A ShopNest BFF in Node.js aggregates catalog and price APIs for the React storefront.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

Node.js Node.js Tutorial · Node.js

Short answer: Use clustering or process managers like PM2 to utilize multiple CPU cores.

Explain a bit more

Implement caching (in-memory or distributed caches like Redis). Use asynchronous I/O properly (avoid blocking the event loop). Optimize database queries and use connection pooling. Minimize heavy computations in the main thread (offload with worker threads). Use gzip compression for responses. Properly manage memory leaks. Use load balancers in production.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

Node.js Node.js Tutorial · Node.js

Short answer: Node.js operates on a single-threaded, event-driven architecture.

Explain a bit more

It uses the event loop to handle multiple connections concurrently, which means it can perform non-blocking I/O operations efficiently. 📌 Real-life analogy: Think of it like a chef (Node.js) who takes multiple orders (requests) but doesn't cook each dish one at a time. Instead, they prep and send off tasks (e.g., grilling, baking) and move on to the next customer while waiting.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

Microsoft Azure Microsoft Azure Tutorial · Azure

Short answer: Physically separate datacenters within an Azure region. Ensure high availability and fault tolerance. Example: Deploy VMs across Zone 1, 2, 3 for resiliency.

Real-world example (ShopNest)

ShopNest on Azure typically uses App Service + SQL Database + Blob Storage + Application Insights for monitoring.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

Microsoft Azure Microsoft Azure Tutorial · Azure

Short answer: Configure federation using SAML, OpenID Connect, or OAuth 2.0. Example: Integrate Google Workspace or Okta for authentication.

Real-world example (ShopNest)

ShopNest on Azure typically uses App Service + SQL Database + Blob Storage + Application Insights for monitoring.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

Microsoft Azure Microsoft Azure Tutorial · Azure

Short answer: Deploy ASP.NET Core apps to Azure App Service or Azure Functions. Use deployment slots for blue/green deployments. Enable auto-scaling based on CPU, memory, or request count. Monitor with Application Insights for performance metrics. Example: Scaled an eCommerce API to 3 instances with auto-scale on 70% CPU.

Real-world example (ShopNest)

ShopNest on Azure typically uses App Service + SQL Database + Blob Storage + Application Insights for monitoring.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

Microsoft Azure Microsoft Azure Tutorial · Azure

Short answer: Use Application Insights to trace exceptions and request failures. Access Kudu console for logs and process inspection. Use Remote Debugging from Visual Studio. Example: Enabled detailed error messages and traced a null reference exception in production logs.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

Microsoft Azure Microsoft Azure Tutorial · Azure

Short answer: Example: CI/CD failed due to secret misconfiguration in Key Vault. Resolved by configuring pipeline managed identity and updating Key Vault access policies. Ensured staging deployments were successful before production swap.

Real-world example (ShopNest)

ShopNest on Azure typically uses App Service + SQL Database + Blob Storage + Application Insights for monitoring.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

Microsoft Azure Microsoft Azure Tutorial · Azure

Short answer: Use deployment slots in Azure App Service. Swap staging and production after successful smoke tests. Enable traffic routing gradually using Azure Front Door. Use feature flags to hide new features until fully validated.

Real-world example (ShopNest)

ShopNest on Azure typically uses App Service + SQL Database + Blob Storage + Application Insights for monitoring.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

Microsoft Azure Microsoft Azure Tutorial · Azure

Short answer: Example: Automated invoice processing using Azure Functions triggered by Blob uploads. Reduced manual workload and scaled automatically during peak hours. Integrated with Azure Storage, Cosmos DB, and Service Bus for processing workflow.

Real-world example (ShopNest)

ShopNest on Azure typically uses App Service + SQL Database + Blob Storage + Application Insights for monitoring.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

Microsoft Azure Microsoft Azure Tutorial · Azure

Short answer: Use Azure Policy to enforce resource rules. Store secrets in Azure Key Vault. Implement role-based access control (RBAC) for all resources. Enable Azure Security Center for continuous monitoring.

Real-world example (ShopNest)

ShopNest on Azure typically uses App Service + SQL Database + Blob Storage + Application Insights for monitoring.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

Microsoft Azure Microsoft Azure Tutorial · Azure

Short answer: PI system? Azure App Service or Azure Kubernetes Service (AKS) for hosting APIs. Azure API Management for gateway and throttling. Cosmos DB with partitioned throughput for high-speed data. Azure Cache for Redis for frequently accessed data. Use Azure Front Door / CDN for global load balancing.

Real-world example (ShopNest)

ShopNest on Azure typically uses App Service + SQL Database + Blob Storage + Application Insights for monitoring.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

Microsoft Azure Microsoft Azure Tutorial · Azure

Short answer: Azure App Service or Azure Kubernetes Service (AKS) for hosting APIs. Azure API Management for gateway and throttling. Cosmos DB with partitioned throughput for high-speed data. Azure Cache for Redis for frequently accessed data. Use Azure Front Door / CDN for global load balancing.

Real-world example (ShopNest)

ShopNest on Azure typically uses App Service + SQL Database + Blob Storage + Application Insights for monitoring.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

Microsoft Azure Microsoft Azure Tutorial · Azure

Short answer: pps? Database latency or unoptimized queries. Blocking synchronous calls instead of async patterns. Memory or CPU constraints on App Service Plan. Excessive cold starts in serverless functions. Poor caching strategy or missing CDNs.

Real-world example (ShopNest)

ShopNest on Azure typically uses App Service + SQL Database + Blob Storage + Application Insights for monitoring.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

Microsoft Azure Microsoft Azure Tutorial · Azure

Short answer: Database latency or unoptimized queries. Blocking synchronous calls instead of async patterns. Memory or CPU constraints on App Service Plan. Excessive cold starts in serverless functions. Poor caching strategy or missing CDNs.

Real-world example (ShopNest)

ShopNest on Azure typically uses App Service + SQL Database + Blob Storage + Application Insights for monitoring.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share
Toolliyo Assistant
Ask about tutorials, ebooks, training, pricing, mentor services, and support. I use public site content only—not admin or internal tools.

care@toolliyo.com

Need callback? Share your details