TL;DR
- Good interview answers are short, structured, and anchored in trade-offs.
- The goal of a Q&A bank is not memorization; it is faster recall of the right mental models.
- I organize the questions by topic so I can rotate through runtime, React, architecture, and behavioral prep without context switching too hard.
- If I cannot answer a question in 2–4 minutes out loud, I treat that as a gap even if I can explain it in writing.
Context
The original resource Q&A bank is useful because it forces active recall. I wanted that same effect in the site, but tied directly to the deeper knowledge pages instead of leaving it as a standalone text file.
The Approach
JavaScript runtime
Q: What is a closure, and what bug does it commonly cause?
Answer frame:
- define closure precisely
- explain stale capture or memory retention
- give a React or async example
Go deeper here:
Q: Predict the output of mixed setTimeout, Promise.then, and queueMicrotask.
Answer frame:
- sync work first
- drain microtasks fully
- next task afterward
Go deeper here:
Q: Why is await inside forEach broken?
Answer frame:
forEachdoes not await callback promises- explain sequential vs parallel intent
- show
for...oforPromise.all(map(...))
Go deeper here:
React depth
Q: Why are hooks not allowed inside conditionals?
Answer frame:
- hooks are indexed by call order
- conditional calls corrupt the hook slot order
- connect to reconciler / fiber mental model
Go deeper here:
Q: Why is key={index} dangerous in re-ordered lists?
Answer frame:
- keys define identity
- index keys shift when order changes
- state and focus can land on the wrong row
Go deeper here:
Q: When is useMemo an anti-pattern?
Answer frame:
- mention profiling first
- cheap computations do not earn memoization
- unstable deps can erase the benefit
Go deeper here:
System design and architecture
Q: When would you choose SSR vs CSR vs RSC?
Answer frame:
- state the axes: SEO, personalization, TTI, bundle cost, team readiness
- map each strategy to its sweet spot
- explain what you would choose for the prompt
Go deeper here:
Q: When is module federation the wrong choice?
Answer frame:
- small team or simple app
- no real deploy-independence need
- performance or contract complexity outweighs benefits
Go deeper here:
Q: When should a team stay in a modular monolith instead of moving to microservices?
Answer frame:
- no proven scaling or coordination bottleneck yet
- boundaries still unclear
- service overhead would exceed current pain
Go deeper here:
Behavioral and principal-level questions
Q: Tell me about a time you disagreed with a senior engineer or leader.
Answer frame:
- establish the context clearly
- frame the disagreement as trade-off reasoning, not ego
- explain how alignment was reached
- close with the outcome and what changed
Q: How do you influence without direct authority?
Answer frame:
- create clarity around the decision
- align on constraints and trade-offs
- reduce adoption cost for other teams
- use documentation, platform leverage, and examples
Q: What makes your work principal-level rather than senior-level?
Answer frame:
- broader system boundary
- cross-team leverage
- longer-lived decisions
- operational and organizational impact
Trade-offs
- A Q&A bank is useful for recall, but it is shallow if I do not also rehearse the deeper linked pages.
- Practicing too many questions at once can feel productive while keeping weak areas hidden.
- Behavioral prep improves when the answer framework is structured, but it still needs real stories and numbers.
References
- Related: Interview Prep Index
- Related: 14-Day Prep Plan
- Related: Principal Interview Prep