Master technical and career interviews with structured answers—short definition, real examples, pitfalls, and how to answer in 60–90 seconds.
Short answer: Use HTTPS Implement authentication & authorization (e.g., JWT) Sanitize inputs to prevent XSS/SQLi Rate-limit requests Use helmet for HTTP headers: const helmet = require('helmet'); app.use(helmet()); S…
Short answer: Use tools like Apache JMeter, k6, or Artillery to simulate many users and measure performance. Ecosystem & Tools Real-world example (ShopNest) A ShopNest BFF in Node.js aggregates catalog and price APIs…
Short answer: You can use validation libraries to ensure incoming data is valid. 📌 Example with express-validator: npm install express-validator const { body, validationResult } = require('express-validator'); app.post(…
Short answer: Node Version Manager lets you install and switch between Node.js versions easily. Real-world example (ShopNest) A ShopNest BFF in Node.js aggregates catalog and price APIs for the React storefront. Say this…
Short answer: pp.post('/users', body('email').isEmail(), (req, res) => { const errors = validationResult(req); if (!errors.isEmpty()) return res.status(400).json({ errors: errors.array() }); res.send('User created');…
Short answer: express-validator Joi yup zod All support schema-based and custom validations. Real-world example (ShopNest) Express middleware authenticates JWT, then the /orders route handler creates the order. Say this…
Short answer: Uses semantic versioning: MAJOR.MINOR.PATCH. New major versions can include breaking changes. Real-world example (ShopNest) A ShopNest BFF in Node.js aggregates catalog and price APIs for the React storefro…
Short answer: ll support schema-based and custom validations. Real-world example (ShopNest) Express middleware authenticates JWT, then the /orders route handler creates the order. Say this in the interview Define — one c…
Short answer: Typical options include: JWT tokens OAuth API keys Sessions (less common for APIs) 📌 Usually, the client includes a token in the Authorization header: Authorization: Bearer <token> The server verifie…
Short answer: npm: Default Node package manager. yarn: Faster installs, better caching. pnpm: Efficient disk usage by linking packages. Real-world example (ShopNest) A ShopNest BFF in Node.js aggregates catalog and price…
Short answer: uthorization: Bearer <token> The server verifies the token on every request. Real-world example (ShopNest) A ShopNest BFF in Node.js aggregates catalog and price APIs for the React storefront. Say thi…
Short answer: Babel: Transpiles modern JS to compatible versions. TypeScript: Adds static typing and compiles to JS. Real-world example (ShopNest) A ShopNest BFF in Node.js aggregates catalog and price APIs for the React…
Short answer: JWT (JSON Web Token) is a compact, URL-safe token used for securely transmitting information. Consists of Header, Payload, and Signature Used to verify user identity and permissions 📌 Generate: const jwt =…
Short answer: Use the multer middleware: npm install multer 📌 Example: const multer = require('multer'); const upload = multer({ dest: 'uploads/' }); app.post('/upload', upload.single('file'), (req, res) => { res.sen…
Short answer: pp.post('/upload', upload.single('file'), (req, res) => { res.send('File uploaded'); }); pp.post('/upload', upload.single('file'), (req, res) => { res.send('File uploaded'); }); pp.post('/upload', upl…
Short answer: Use testing frameworks: Jest or Mocha for unit tests Supertest for HTTP API testing 📌 Example with Supertest: const request = require('supertest'); request(app) .get('/api/users') .expect(200) .then(res =&…
Short answer: Rate limiting prevents abuse by limiting the number of requests a user can make in a given time. 📌 Use express-rate-limit: npm install express-rate-limit const rateLimit = require('express-rate-limit'); co…
Short answer: Use the morgan middleware: npm install morgan const morgan = require('morgan'); app.use(morgan('dev')); Logs every request with method, status, time, etc. Example code Use the morgan middleware: npm install…
Short answer: pp.use(morgan('dev')); Logs every request with method, status, time, etc. pp.use(morgan('dev')); Logs every request with method, status, time, etc. pp.use(morgan('dev')); Logs every request with method, sta…
Short answer: Use plural nouns in endpoints (/users, not /user) Use proper HTTP methods Send meaningful status codes Keep URLs simple and consistent Use pagination for large data Protect with authentication/authorization…
Short answer: Negotiate before you resign, not after. Your leverage is a clean handover plan plus a new employer willing to wait—or partially buy out the notice. Most Indian IT firms (TCS, Infosys, Wipro) will consider 6…
Short answer: Reduction means proving the business can run without you in fewer days. Combine manager sponsorship, documented KT, and optionally using accumulated leave or buyout. Target a specific last working day (LWD)…
Short answer: Early release is a business decision, not a favor. You need manager + HR + sometimes client approval. Make it easy to say yes: low transition risk, no open escalations, and a replacement or clear backlog pl…
Short answer: Sometimes yes—if your employment contract or HR policy allows notice buyout. You (or your new employer) pay compensation for unserved notice days, usually basic salary equivalent. Not all companies permit i…
Short answer: Email HR after your manager agrees in principle. Be factual: current notice, requested LWD, business justification (handover complete), and attach transition plan. HR responds to process and risk, not urgen…
Node.js Node.js Tutorial · Node.js
Short answer: Use HTTPS Implement authentication & authorization (e.g., JWT) Sanitize inputs to prevent XSS/SQLi Rate-limit requests Use helmet for HTTP headers: const helmet = require('helmet'); app.use(helmet());
Node.js Node.js Tutorial · Node.js
Short answer: Use tools like Apache JMeter, k6, or Artillery to simulate many users and measure performance. Ecosystem & Tools
A ShopNest BFF in Node.js aggregates catalog and price APIs for the React storefront.
Node.js Node.js Tutorial · Node.js
Short answer: You can use validation libraries to ensure incoming data is valid. 📌 Example with express-validator: npm install express-validator const { body, validationResult } = require('express-validator'); app.post('/users', body('email').isEmail(), (req, res) => { const errors = validationResult(req);
if (!errors.isEmpty()) return res.status(400).json({ errors: errors.array() }); res.send('User created'); });
A ShopNest BFF in Node.js aggregates catalog and price APIs for the React storefront.
Node.js Node.js Tutorial · Node.js
Short answer: Node Version Manager lets you install and switch between Node.js versions easily.
A ShopNest BFF in Node.js aggregates catalog and price APIs for the React storefront.
Node.js Node.js Tutorial · Node.js
Short answer: pp.post('/users', body('email').isEmail(), (req, res) => { const errors = validationResult(req); if (!errors.isEmpty()) return res.status(400).json({ errors: errors.array() }); res.send('User created'); }); pp.post('/users', body('email').isEmail(), (req, res) => { const errors = validationResult(req); if (!errors.isEmpty())… return res.status(400).json({…… errors: errors.array() }); res.send('User created'); }); pp.
post('/users', body('email').isEmail(), (req, res) => { const errors = validationResult(req); if (!errors.isEmpty()) return res.status(400).json({ errors: errors.array() }); res.send('User created'); }); pp.post('/users', body('email').isEmail(), (req, res) => { const errors = validationResult(req); if (!errors.isEmpty())… return res.status(400).json({ errors: errors.array() }); res.send('User created'); });
A ShopNest BFF in Node.js aggregates catalog and price APIs for the React storefront.
Node.js Node.js Tutorial · Node.js
Short answer: express-validator Joi yup zod All support schema-based and custom validations.
Express middleware authenticates JWT, then the /orders route handler creates the order.
Node.js Node.js Tutorial · Node.js
Short answer: Uses semantic versioning: MAJOR.MINOR.PATCH. New major versions can include breaking changes.
A ShopNest BFF in Node.js aggregates catalog and price APIs for the React storefront.
Node.js Node.js Tutorial · Node.js
Short answer: ll support schema-based and custom validations.
Express middleware authenticates JWT, then the /orders route handler creates the order.
Node.js Node.js Tutorial · Node.js
Short answer: Typical options include: JWT tokens OAuth API keys Sessions (less common for APIs) 📌 Usually, the client includes a token in the Authorization header: Authorization: Bearer <token> The server verifies the token on every request.
A ShopNest BFF in Node.js aggregates catalog and price APIs for the React storefront.
Node.js Node.js Tutorial · Node.js
Short answer: npm: Default Node package manager. yarn: Faster installs, better caching. pnpm: Efficient disk usage by linking packages.
A ShopNest BFF in Node.js aggregates catalog and price APIs for the React storefront.
Node.js Node.js Tutorial · Node.js
Short answer: uthorization: Bearer <token> The server verifies the token on every request.
A ShopNest BFF in Node.js aggregates catalog and price APIs for the React storefront.
Node.js Node.js Tutorial · Node.js
Short answer: Babel: Transpiles modern JS to compatible versions. TypeScript: Adds static typing and compiles to JS.
A ShopNest BFF in Node.js aggregates catalog and price APIs for the React storefront.
Node.js Node.js Tutorial · Node.js
Short answer: JWT (JSON Web Token) is a compact, URL-safe token used for securely transmitting information. Consists of Header, Payload, and Signature Used to verify user identity and permissions 📌 Generate: const jwt = require('jsonwebtoken'); const token = jwt.sign({ id: user.id }, 'secret', { expiresIn: '1h' }); 📌 Verify: jwt.verify(token, 'secret');
A ShopNest BFF in Node.js aggregates catalog and price APIs for the React storefront.
Node.js Node.js Tutorial · Node.js
Short answer: Use the multer middleware: npm install multer 📌 Example: const multer = require('multer'); const upload = multer({ dest: 'uploads/' }); app.post('/upload', upload.single('file'), (req, res) => { res.send('File uploaded'); });
Use the multer middleware: npm install multer 📌 Example: const multer = require('multer');
const upload = multer({ dest: 'uploads/' }); app.post('/upload', upload.single('file'), (req, res) => { res.send('File uploaded'); });
A ShopNest BFF in Node.js aggregates catalog and price APIs for the React storefront.
Node.js Node.js Tutorial · Node.js
Short answer: pp.post('/upload', upload.single('file'), (req, res) => { res.send('File uploaded'); }); pp.post('/upload', upload.single('file'), (req, res) => { res.send('File uploaded'); }); pp.post('/upload', upload.single('file'), (req, res) => { res.send('File uploaded'); }); pp.post('/upload', upload.single('file'), (req, res) => { res.send('File uploaded'); });
A ShopNest BFF in Node.js aggregates catalog and price APIs for the React storefront.
Node.js Node.js Tutorial · Node.js
Short answer: Use testing frameworks: Jest or Mocha for unit tests Supertest for HTTP API testing 📌 Example with Supertest: const request = require('supertest'); request(app) .get('/api/users') .expect(200) .then(res => { console.log(res.body); });
A ShopNest BFF in Node.js aggregates catalog and price APIs for the React storefront.
Node.js Node.js Tutorial · Node.js
Short answer: Rate limiting prevents abuse by limiting the number of requests a user can make in a given time. 📌 Use express-rate-limit: npm install express-rate-limit const rateLimit = require('express-rate-limit'); const limiter = rateLimit({ windowMs: 15 * 60 * 1000, max: 100 // limit per IP }); app.use(limiter);
A ShopNest BFF in Node.js aggregates catalog and price APIs for the React storefront.
Node.js Node.js Tutorial · Node.js
Short answer: Use the morgan middleware: npm install morgan const morgan = require('morgan'); app.use(morgan('dev')); Logs every request with method, status, time, etc.
Use the morgan middleware: npm install morgan const morgan = require('morgan'); app.use(morgan('dev')); Logs every request with method, status, time, etc.
A ShopNest BFF in Node.js aggregates catalog and price APIs for the React storefront.
Node.js Node.js Tutorial · Node.js
Short answer: pp.use(morgan('dev')); Logs every request with method, status, time, etc. pp.use(morgan('dev')); Logs every request with method, status, time, etc. pp.use(morgan('dev')); Logs every request with method, status, time, etc. pp.use(morgan('dev')); Logs every request with method, status, time, etc.
A ShopNest BFF in Node.js aggregates catalog and price APIs for the React storefront.
Node.js Node.js Tutorial · Node.js
Short answer: Use plural nouns in endpoints (/users, not /user) Use proper HTTP methods Send meaningful status codes Keep URLs simple and consistent Use pagination for large data Protect with authentication/authorization Use versioning (/api/v1/...) Validate and sanitize all inputs NPM and module-related Node.js interview questions
A ShopNest BFF in Node.js aggregates catalog and price APIs for the React storefront.
Notice Period Career & HR Interview Guide · Notice Period
Short answer: Negotiate before you resign, not after. Your leverage is a clean handover plan plus a new employer willing to wait—or partially buy out the notice. Most Indian IT firms (TCS, Infosys, Wipro) will consider 60→45 or 90→60 days when the project risk is low and your manager sponsors the request.
A 90-day clause is common for senior roles and service companies. HR cannot usually change policy alone; your reporting manager’s sign-off matters more than an emotional appeal.
Rahul, a 5 YOE .NET developer at Infosys, received a Flipkart offer needing join in 55 days while his notice was 90. He listed 3 modules he owned, proposed 4 KT sessions, and offered to finish a sprint-critical API before exit. His manager agreed to sponsor 60-day release; HR approved because the account lead signed off. Rahul paid no buyout and joined on time.
Subject: Request for notice period discussion — Rahul Sharma (Emp ID: 12345) Dear [Manager Name], Thank you for the opportunities on [Project/Account]. I have accepted an offer elsewhere and will submit formal resignation shortly. My contractual notice is 90 days; the new employer has requested joining by [date]. I prepared a transition plan (attached) covering KT, open defects, and release ownership. I am requesting support for an early release of [X days / target LWD: DD-MMM-YYYY], subject to HR policy. I am committed to a professional handover and will remain fully available until my last working day. Regards, Rahul
The sentence that works: “I want to protect the account and leave on good terms—here is how I will hand over in X weeks.”
Notice Period Career & HR Interview Guide · Notice Period
Short answer: Reduction means proving the business can run without you in fewer days. Combine manager sponsorship, documented KT, and optionally using accumulated leave or buyout. Target a specific last working day (LWD), not a vague “as soon as possible.”
Ananya, QA lead at TCS with 90-day notice, wanted to join a Bangalore product startup in 70 days. She created Confluence pages for 40 test cases, paired a junior QA for 2 weeks, and proposed LWD after the UAT sign-off. Account manager agreed; HR reduced notice to 75 days and allowed 5 days of earned leave in the notice window.
If reduction is denied, ask: “What specific handover milestones would make a 60-day release acceptable?”
Notice Period Career & HR Interview Guide · Notice Period
Short answer: Early release is a business decision, not a favor. You need manager + HR + sometimes client approval. Make it easy to say yes: low transition risk, no open escalations, and a replacement or clear backlog plan.
Vikram, DevOps engineer at Wipro, was on a 90-day notice. His pipeline work was automated; on-call was shared. He trained two teammates on Terraform modules and showed 30 days of clean incident history. Delivery manager approved 45-day release; client had no objection because KT was recorded.
Talking point to manager: "Our release is stable and documented. I propose LWD [date] after these 3 KT sessions. I can stay reachable on email for 2 weeks post-exit for critical questions if policy allows."
Offer a 30-minute weekly KT call during part of your notice if the team is short-staffed—often unlocks flexibility.
Notice Period Career & HR Interview Guide · Notice Period
Short answer: Sometimes yes—if your employment contract or HR policy allows notice buyout. You (or your new employer) pay compensation for unserved notice days, usually basic salary equivalent. Not all companies permit it; captives and banks often do not.
Priya’s product company required 30-day join; her MNC had 60-day notice with buyout at 1 month basic (₹85,000). Flipkart added ₹1L joining bonus conditioned on start date. Priya paid buyout, joined on time, and claimed reimbursement per offer letter clause.
Phrase to new employer: “My notice buyout is approximately ₹X—can we align joining bonus or one-time payment to offset this?”
Notice Period Career & HR Interview Guide · Notice Period
Short answer: Email HR after your manager agrees in principle. Be factual: current notice, requested LWD, business justification (handover complete), and attach transition plan. HR responds to process and risk, not urgency alone.
Rahul’s manager agreed on Teams to support 60-day release. Rahul opened an HR ticket with screenshot of project KT completion and manager’s email. HR approved in 3 business days and updated LWD in the separation portal—avoiding confusion at full & final settlement.
Dear HR Team, I submitted resignation on [date]. Contractual notice period: 90 days (LWD [date]). With manager [Name]’s support, I request LWD [new date] based on completed handover (KT doc attached, manager approval email attached). Please confirm approval or advise additional steps. Employee ID: ___ Regards, ___
Subject line that works: “Notice period reduction request — [Name] — [Emp ID] — Manager approved”