20-Minute Next.js Screen
Use a strict timer. Answer aloud before reading the scoring notes.
Minute 0β2 β Introβ
Interviewer: Give me your mental model of a modern Next.js App Router application.
Strong answer should mention:
route tree
Server Components by default
narrow Client Components
server-owned data
Server Actions / Route Handlers by contract
cache + request-time boundaries
production build/deployment
Red flag: βNext.js is React with SSR.β
Minute 2β4 β Server vs Clientβ
Interviewer: What does 'use client' actually do?
Follow-ups:
- Does every child become a Client Component?
- Can a Client Component appear in initial server-rendered HTML?
- What is the performance cost of moving the boundary upward?
Score 3 if the candidate explains the module graph, composition of server-produced children, hydration and client-JS blast radius.
Minute 4β6 β Dataβ
Interviewer: A Server Component needs product data. Would you call your own /api/products Route Handler?
Expected:
default no
β call DAL/query directly
β HTTP only when it is a real external/public contract
Follow-up: When would client-side fetching still be reasonable?
Minute 6β8 β Cachingβ
Interviewer: Explain React cache() vs Next.js persistent caching.
Expected distinction:
React cache β render/server memoization
Next cache/Cache Components β cross-request freshness/invalidation model
Router Cache β browser navigation cache
Follow-up: What makes a cached result safe for multiple tenants?
Minute 8β10 β Mutationsβ
Interviewer: Server Action or Route Handler for these?
- Rename a project from the web UI.
- Stripe-style webhook.
- Mobile app public API.
- Internal business rule reused by both.
Strong mapping:
1 Action
2 Handler
3 Handler/API
4 command/use-case below adapters
Minute 10β12 β Routingβ
Interviewer: Layout vs template? Hard vs soft navigation?
Score for preservation/remount semantics and route-tree reconciliation, not memorized syntax.
Minute 12β14 β Securityβ
Interviewer: Proxy checks the session before /admin. Is the admin route secure?
Expected:
not by Proxy alone
β enforce authorization at DAL/command/handler/action
β test valid-user/wrong-resource/role negatives
Minute 14β16 β Performanceβ
Interviewer: Lighthouse looks good, but real users report slow interactions. What next?
Strong answer:
field RUM / INP
browser performance trace
client JS/render blast radius
third parties
long sessions/memory
real device segmentation
Minute 16β18 β Production scenarioβ
Interviewer: A Server Action updates the DB, but the UI is stale until a hard reload. Debug it.
Expected layers:
DB canonical state
server cache/tag/path invalidation
RSC refresh
Router Cache
optimistic/local state
Red flag: immediate βcall router.refresh everywhere.β
Minute 18β20 β Closing questionβ
Interviewer: What changed in how you think about Next.js as you became more senior?
Strong themes:
ownership over API choice
subtree rendering over static/SSR labels
security before cache
production topology matters
framework core vs platform behavior
stable vs experimental contracts
Scoringβ
Score 0β3 for:
framework fundamentals
server/client ownership
data/cache correctness
mutation boundaries
security
performance/debugging
communication
Passβ
Average β₯ 2.0 and no security score below 2.
Strong senior signalβ
Average β₯ 2.5 with concise, current, version-aware answers and at least one concrete production example.