Next.js interview questions

Rendering strategies, server vs client components, caching and revalidation, hydration errors, routing and SEO.

Readiness: 0 of 12 nailed

How to use this page: 1. Read a question2. Type your answer3. Check with AI4. Open the model answer5. Timed drill when you’re 70% ready

Rendering

JuniorConcept

Explain CSR, SSR, SSG and ISR.

Components

JuniorConcept

What is the difference between a Server Component and a Client Component?

Mid-levelIt’s broken: why?

“Hydration failed because the server rendered HTML didn’t match the client.” What causes it?

Data

Mid-levelConcept

Your page shows stale data after the database was updated. How do you fix it in the App Router?

Mid-levelConcept

What are Server Actions and what security care do they need?

JuniorWrite it by hand

Create an API endpoint in the App Router.

SEO

JuniorReal-world scenario

How do you handle SEO in a Next.js app?

Routing

JuniorConcept

App Router vs Pages Router?

JuniorConcept

What are loading.tsx, error.tsx and not-found.tsx?

Mid-levelConcept

What is middleware (proxy) in Next.js used for?

Performance

FoundationConcept

Why use next/image instead of <img>?

Configuration

JuniorIt’s broken: why?

An environment variable is undefined in a client component. Why?

Also prepare