Top Nest.js Questions & Practice
Master 50+ essential Next.js questions ranging from core fundamentals to senior-level real-world scenarios.
Junior Fundamentals — Question 1
Practice question covering the basic purpose of Next.js.
What is Next.js primarily?
Junior Fundamentals — Question 2
Practice question covering the App Router.
Which directory is the central routing directory in a modern Next.js App Router application?
Junior Fundamentals — Question 3
Practice question about pages.
What does app/about/page.tsx normally represent?
Junior Fundamentals — Question 4
Practice question about layouts.
What is the primary purpose of a Next.js layout?
Junior Fundamentals — Question 5
Practice question about dynamic routes.
What does a folder named [id] represent in the App Router?
Junior Fundamentals — Question 6
Practice question about navigation.
Which component should normally be used for internal navigation?
Junior Fundamentals — Question 7
Practice question about environment variables.
What does the NEXT_PUBLIC_ prefix indicate?
Junior Fundamentals — Question 8
Practice question about Server Components.
In the App Router, what type of component is the default?
Junior Fundamentals — Question 9
Practice question about client components.
Which directive makes a component a Client Component?
Junior Fundamentals — Question 10
Practice question about browser APIs.
Why can't a normal Server Component directly use window?
Junior Fundamentals — Question 11
Practice question about route groups.
What is the purpose of (marketing) as an App Router folder?
Core APIs & Rendering — Question 12
Practice question about rendering.
Which rendering strategy is generally suitable for content that rarely changes and can be generated ahead of requests?
Core APIs & Rendering — Question 13
Practice question about dynamic rendering.
Which scenario commonly requires dynamic rendering?
Core APIs & Rendering — Question 14
Practice question about revalidation.
What is the main idea behind incremental revalidation?
Core APIs & Rendering — Question 15
Practice question about streaming.
What does streaming primarily improve?
Core APIs & Rendering — Question 16
Practice question about Suspense.
What is a common purpose of a React Suspense boundary in Next.js?
Core APIs & Rendering — Question 17
Practice question about loading UI.
What is the purpose of loading.tsx?
Core APIs & Rendering — Question 18
Practice question about parallel requests.
Which approach is best when three independent server requests can execute concurrently?
Core APIs & Rendering — Question 19
Practice question about Route Handlers.
Which file convention defines an HTTP Route Handler in the App Router?
Core APIs & Rendering — Question 20
Practice question about status codes.
Which status code normally represents a successfully created resource?
Core APIs & Rendering — Question 21
Practice question about missing resources.
Which status code normally represents a missing resource?
Core APIs & Rendering — Question 22
Practice question about Server Actions.
What are Server Actions primarily intended to simplify?
Security & Data Architecture — Question 23
Practice question about authorization.
What is the difference between authentication and authorization?
Security & Data Architecture — Question 24
Practice question about secure cookies.
What does the HttpOnly cookie attribute primarily prevent?
Security & Data Architecture — Question 25
Practice question about JWTs.
Does a signed JWT automatically provide confidentiality?
Security & Data Architecture — Question 26
Practice question about validation.
Where should security-critical input validation happen?
Security & Data Architecture — Question 27
Practice question about Server Actions.
Should a Server Action assume that only the application's visible button can invoke it?
Security & Data Architecture — Question 28
Practice question about data access.
Why can direct database access from a Server Component be preferable to calling an internal API?
Security & Data Architecture — Question 29
Practice question about authorization.
A user is authenticated but tries to delete another user's invoice. What should happen?
Security & Data Architecture — Question 30
Practice question about webhooks.
Why should webhook handlers usually be idempotent?