Master technical and career interviews with structured answers—short definition, real examples, pitfalls, and how to answer in 60–90 seconds.
Short answer: Database design patterns are general solutions to recurring problems that arise in database schema design. Some common patterns include: Real-world example (ShopNest) ShopNest’s SQL Server database stores c…
Short answer: The CAP theorem (Consistency, Availability, Partition Tolerance) states that in a distributed database system, it is impossible to simultaneously guarantee all three of the following: Real-world example (Sh…
Short answer: Eventual consistency is a consistency model used in distributed systems where updates to data will propagate and eventually become consistent across all nodes, but not necessarily immediately. Explain a bit…
Short answer: Treat HR as a partner who must balance budget, internal parity, and candidate closure timelines. When you understand these constraints, your ask becomes easier to approve. Lead with business outcomes and ro…
Short answer: A convincing justification links your compensation ask to measurable business value and future scope. Replace statements like "I worked hard" with clear evidence such as uptime, cost savings, delivery speed…
Short answer: You can share current salary selectively, but do not let it become the only anchor. Redirect the conversation toward market value and role scope so your future compensation reflects the new responsibility.…
Short answer: Talk about DMVs: sys.dm_exec_requests, sys.dm_exec_sessions, sys.dm_os_waiting_tasks, and reading plans. For query writing interviews, also discuss indexes, sargability, and avoiding SELECT *. Sample soluti…
Short answer: Work & Office decisions become easier when you prepare evidence, propose options, and communicate clearly. A structured approach reduces uncertainty and leads to better outcomes. Keep your plan practical an…
Short answer: Work & Office decisions become easier when you prepare evidence, propose options, and communicate clearly. A structured approach reduces uncertainty and leads to better outcomes. Keep your plan practical an…
Short answer: Work & Office decisions become easier when you prepare evidence, propose options, and communicate clearly. A structured approach reduces uncertainty and leads to better outcomes. Keep your plan practical an…
Short answer: ROLLUP creates subtotals and a grand total. GROUPING SETS lists exact aggregation levels. GROUPING(col) detects total rows (NULLs that mean “all”). Sample solution T-SQL SELECT DepartmentId, JobTitle, SUM(S…
Short answer: A covering index includes all columns a query needs (key + INCLUDE), enabling an Index Seek/Scan without Key Lookup. In plans, look for absence of Key Lookup and lower estimated cost. Offer: CREATE INDEX ..…
Short answer: Use AVG(Amount) OVER (ORDER BY OrderDate ROWS BETWEEN 6 PRECEDING AND CURRENT ROW). Sample solution T-SQL SELECT OrderDate, Amount, AVG(Amount * 1.0) OVER ( ORDER BY OrderDate ROWS BETWEEN 6 PRECEDING AND C…
Short answer: Two ranges [a,b] and [c,d] overlap when a Sample solution T-SQL SELECT a.Id AS Id1, b.Id AS Id2 FROM Bookings a INNER JOIN Bookings b ON a.Id < b.Id AND a.StartDate <= b.EndDate AND b.StartDate <=…
SQL & Databases SQL Server Tutorial · SQL
Short answer: Database design patterns are general solutions to recurring problems that arise in database schema design. Some common patterns include:
ShopNest’s SQL Server database stores customers, products, and orders. Good indexes and clear foreign keys keep checkout queries fast and safe.
SQL & Databases SQL Server Tutorial · SQL
Short answer: The CAP theorem (Consistency, Availability, Partition Tolerance) states that in a distributed database system, it is impossible to simultaneously guarantee all three of the following:
ShopNest’s SQL Server database stores customers, products, and orders. Good indexes and clear foreign keys keep checkout queries fast and safe.
SQL & Databases SQL Server Tutorial · SQL
Short answer: Eventual consistency is a consistency model used in distributed systems where updates to data will propagate and eventually become consistent across all nodes, but not necessarily immediately.
How it works: In an eventually consistent system, updates are made to a node and eventually, that update will be propagated to all other nodes. It allows for temporary inconsistencies, but ensures that the system will converge to a consistent state over time. Use cases: Suitable for systems that can tolerate a delay in consistency, like NoSQL databases (Cassandra, DynamoDB) and systems dealing with high availability and massive scale.
Salary Negotiation Career & HR Interview Guide · Salary Negotiation
Short answer: Treat HR as a partner who must balance budget, internal parity, and candidate closure timelines. When you understand these constraints, your ask becomes easier to approve. Lead with business outcomes and role fit, then discuss compensation structure logically.
Neha was interviewing for a platform lead role at Razorpay while employed at Flipkart. Instead of saying "another company is paying more," she explained that she would own migration risk and 24x7 availability for critical services. Arjun from Zoho helped her rewrite her talking points around business continuity and release stability. HR could not change total CTC much, but increased fixed pay and added a 6-month review commitment, which Neha accepted.
Negotiate in layers: fixed, bonus, then review cycle.
Salary Negotiation Career & HR Interview Guide · Salary Negotiation
Short answer: A convincing justification links your compensation ask to measurable business value and future scope. Replace statements like "I worked hard" with clear evidence such as uptime, cost savings, delivery speed, or customer impact. Decision-makers approve hikes faster when your story is quantifiable and role-aligned.
Arjun at Zoho wanted a correction after taking on architecture ownership that was previously handled by two senior engineers. He documented migration completion, outage reduction, and faster release cycles over six months. Priya from TCS reviewed his note and advised him to align metrics with team-level business outcomes. HR approved a staged hike with a confirmed review in the next appraisal cycle.
Your best argument is a measurable before-versus-after story.
Salary Negotiation Career & HR Interview Guide · Salary Negotiation
Short answer: You can share current salary selectively, but do not let it become the only anchor. Redirect the conversation toward market value and role scope so your future compensation reflects the new responsibility. If disclosure is mandatory by policy, share accurate numbers with full breakup context.
Rahul was interviewing at Swiggy while working at TCS and was asked to share current compensation early. He provided the exact breakup and clarified that a large part was one-time retention payout, not recurring income. Karthik from Zoho advised him to pivot the discussion to the new platform ownership scope. The recruiter accepted his reasoning and evaluated him against role band, not his old fixed salary.
Disclose honestly, then re-anchor to market and scope.
SQL & Databases SQL Server Tutorial · Performance
Short answer: Talk about DMVs: sys.dm_exec_requests, sys.dm_exec_sessions, sys.dm_os_waiting_tasks, and reading plans. For query writing interviews, also discuss indexes, sargability, and avoiding SELECT *.
SELECT r.session_id, r.status, r.command, r.wait_type, r.blocking_session_id,
t.text
FROM sys.dm_exec_requests r
CROSS APPLY sys.dm_exec_sql_text(r.sql_handle) t
WHERE r.session_id <> @@SPID;
Even app developers score points naming DMVs and “parameter sniffing” briefly.
Work & Office Career & HR Interview Guide · Work & Office
Short answer: Work & Office decisions become easier when you prepare evidence, propose options, and communicate clearly. A structured approach reduces uncertainty and leads to better outcomes. Keep your plan practical and well documented from start to finish.
Neha was working at Flipkart and needed to handle this situation: how to deal with a toxic manager. She prepared a clear plan with timelines, ownership, and expected outcomes before speaking to HR and her manager. Arjun, who had recently moved to Zoho, reviewed her approach and helped her tighten the messaging with measurable results. Within a few weeks, Neha achieved a better career outcome while preserving strong professional relationships.
Capture major decisions in writing to avoid confusion and future disputes.
Work & Office Career & HR Interview Guide · Work & Office
Short answer: Work & Office decisions become easier when you prepare evidence, propose options, and communicate clearly. A structured approach reduces uncertainty and leads to better outcomes. Keep your plan practical and well documented from start to finish.
Priya was working at Zoho and needed to handle this situation: how to manage work-life balance. She prepared a clear plan with timelines, ownership, and expected outcomes before speaking to HR and her manager. Rahul, who had recently moved to TCS, reviewed her approach and helped her tighten the messaging with measurable results. Within a few weeks, Priya achieved a better career outcome while preserving strong professional relationships.
Capture major decisions in writing to avoid confusion and future disputes.
Work & Office Career & HR Interview Guide · Work & Office
Short answer: Work & Office decisions become easier when you prepare evidence, propose options, and communicate clearly. A structured approach reduces uncertainty and leads to better outcomes. Keep your plan practical and well documented from start to finish.
Karan was working at TCS and needed to handle this situation: how to handle office conflicts. She prepared a clear plan with timelines, ownership, and expected outcomes before speaking to HR and her manager. Isha, who had recently moved to Razorpay, reviewed her approach and helped her tighten the messaging with measurable results. Within a few weeks, Karan achieved a better career outcome while preserving strong professional relationships.
Capture major decisions in writing to avoid confusion and future disputes.
SQL & Databases SQL Server Tutorial · Aggregation
Short answer: ROLLUP creates subtotals and a grand total. GROUPING SETS lists exact aggregation levels. GROUPING(col) detects total rows (NULLs that mean “all”).
SELECT DepartmentId, JobTitle, SUM(Salary) AS TotalSalary FROM Employees GROUP BY ROLLUP (DepartmentId, JobTitle);
Use GROUPING() to distinguish real NULL dimension values from rollup NULLs.
SQL & Databases SQL Server Tutorial · Indexes
Short answer: A covering index includes all columns a query needs (key + INCLUDE), enabling an Index Seek/Scan without Key Lookup. In plans, look for absence of Key Lookup and lower estimated cost.
Offer: CREATE INDEX ... INCLUDE (ColA, ColB) as the practical answer.
SQL & Databases SQL Server Tutorial · Window Functions
Short answer: Use AVG(Amount) OVER (ORDER BY OrderDate ROWS BETWEEN 6 PRECEDING AND CURRENT ROW).
SELECT OrderDate, Amount,
AVG(Amount * 1.0) OVER (
ORDER BY OrderDate
ROWS BETWEEN 6 PRECEDING AND CURRENT ROW
) AS MovingAvg7
FROM DailySales;
ROWS vs RANGE matters when OrderDate has duplicates.
SQL & Databases SQL Server Tutorial · Intervals
Short answer: Two ranges [a,b] and [c,d] overlap when a <= d AND c <= b (for closed intervals). Self-join bookings/events with that predicate and exclude the same Id.
SELECT a.Id AS Id1, b.Id AS Id2
FROM Bookings a
INNER JOIN Bookings b ON a.Id < b.Id
AND a.StartDate <= b.EndDate
AND b.StartDate <= a.EndDate;
Clarify inclusive/exclusive end times — hotel checkout logic often uses half-open intervals.