60-Minute Senior Next.js Round
0β5 β Architecture walkthroughβ
Prompt: Draw the lifecycle for an authenticated dashboard route from browser request to interactive UI.
Expected areas:
reverse proxy/CDN
Proxy if matched
route-tree match
session/authz
DAL/cache/data
RSC render
Suspense/streaming
HTML initial load
client chunks/hydration
Router Cache on later navigation
5β12 β Rendering and RSCβ
Questions:
- Server Component vs SSR?
- What does
'use client'change in the module graph? - How can server-produced children appear inside a Client Component?
- What is RSC/Flight conceptually?
- Why should applications not parse private Flight payloads?
Strong answer distinguishes public mental models from private wire details.
12β20 β Data and cacheβ
Scenario: A project dashboard reads profile, projects, plan and analytics.
Ask candidate to design:
parallel vs sequential reads
DAL boundaries
React cache/preload
Cache Components
request-time authenticated work
Suspense placement
Follow-up:
A tenant changes plan and only some screens update. How do you design invalidation?
Score for semantic tags/freshness ownership and Router Cache awareness.
20β28 β Mutationsβ
Prompt: Design βinvite memberβ and βchange role.β
Expected:
Server Action as UI adapter
schema validation
session
role/tenant authorization
transaction
idempotency where relevant
audit/outbox
cache invalidation
expected UI error
Follow-up: What changes for a public REST/mobile endpoint?
28β35 β Securityβ
Rapid scenarios:
valid user changes project ID to another tenant
remote image URL is attacker-controlled
webhook is replayed
redirect target comes from query string
admin support bypass exists
Candidate should identify IDOR, SSRF, replay/idempotency, open redirect and explicit auditable admin capabilities.
35β42 β Performanceβ
Scenario: p50 is fine, p99 is terrible under load.
Ask:
Where do you look?
What evidence?
Could Promise.all be responsible?
Could cache changes be responsible?
How do DB pools affect tail latency?
Strong answer mentions traces, pool wait, fan-out, upstream tail latency, stampedes and backpressure.
42β48 β Testingβ
Ask candidate to place tests for:
authorization policy
DAL query
Server Action
Route Handler webhook
Proxy matcher
streaming route
parallel/intercepting route modal
Strong answer chooses the cheapest reliable layer and real browser for framework behavior.
48β54 β Deploymentβ
Scenario: self-hosted containers behind nginx, three replicas, shared DB and Redis.
Ask about:
standalone output
assets
streaming buffering
graceful shutdown
cache coordination
Server Action keys/version skew
health/readiness
rolling rollout
54β58 β Debuggingβ
Prompt: Only soft navigation shows stale data; hard refresh is correct.
Expected reasoning:
classify Router Cache/client navigation
check mutation invalidation/refresh contract
inspect network/RSC request
compare hard vs soft lifecycle
add regression E2E
58β60 β Reflectionβ
Prompt: Name one Next.js optimization you would refuse until you had evidence.
Strong answers could discuss:
broad caching
Edge migration
memoization
global dynamic imports
microservices/Multi-Zones
Scorecardβ
0β3 each:
rendering/RSC
data/cache
mutations
security
performance
testing
deployment
debugging
communication
Senior passβ
Average β₯ 2.2, no correctness/security category below 2.
Excellentβ
Average β₯ 2.6 and candidate consistently explains trade-offs, failure behavior and evidence rather than framework slogans.