55 Topics
Chapter•180 Minutes

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.

Knowledge Check

What is Next.js primarily?

Junior Fundamentals — Question 2

Practice question covering the App Router.

Knowledge Check

Which directory is the central routing directory in a modern Next.js App Router application?

Junior Fundamentals — Question 3

Practice question about pages.

Knowledge Check

What does app/about/page.tsx normally represent?

Junior Fundamentals — Question 4

Practice question about layouts.

Knowledge Check

What is the primary purpose of a Next.js layout?

Junior Fundamentals — Question 5

Practice question about dynamic routes.

Knowledge Check

What does a folder named [id] represent in the App Router?

Junior Fundamentals — Question 6

Practice question about navigation.

Knowledge Check

Which component should normally be used for internal navigation?

Junior Fundamentals — Question 7

Practice question about environment variables.

Knowledge Check

What does the NEXT_PUBLIC_ prefix indicate?

Junior Fundamentals — Question 8

Practice question about Server Components.

Knowledge Check

In the App Router, what type of component is the default?

Junior Fundamentals — Question 9

Practice question about client components.

Knowledge Check

Which directive makes a component a Client Component?

Junior Fundamentals — Question 10

Practice question about browser APIs.

Knowledge Check

Why can't a normal Server Component directly use window?

Junior Fundamentals — Question 11

Practice question about route groups.

Knowledge Check

What is the purpose of (marketing) as an App Router folder?

Core APIs & Rendering — Question 12

Practice question about rendering.

Knowledge Check

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.

Knowledge Check

Which scenario commonly requires dynamic rendering?

Core APIs & Rendering — Question 14

Practice question about revalidation.

Knowledge Check

What is the main idea behind incremental revalidation?

Core APIs & Rendering — Question 15

Practice question about streaming.

Knowledge Check

What does streaming primarily improve?

Core APIs & Rendering — Question 16

Practice question about Suspense.

Knowledge Check

What is a common purpose of a React Suspense boundary in Next.js?

Core APIs & Rendering — Question 17

Practice question about loading UI.

Knowledge Check

What is the purpose of loading.tsx?

Core APIs & Rendering — Question 18

Practice question about parallel requests.

Knowledge Check

Which approach is best when three independent server requests can execute concurrently?

Core APIs & Rendering — Question 19

Practice question about Route Handlers.

Knowledge Check

Which file convention defines an HTTP Route Handler in the App Router?

Core APIs & Rendering — Question 20

Practice question about status codes.

Knowledge Check

Which status code normally represents a successfully created resource?

Core APIs & Rendering — Question 21

Practice question about missing resources.

Knowledge Check

Which status code normally represents a missing resource?

Core APIs & Rendering — Question 22

Practice question about Server Actions.

Knowledge Check

What are Server Actions primarily intended to simplify?

Security & Data Architecture — Question 23

Practice question about authorization.

Knowledge Check

What is the difference between authentication and authorization?

Security & Data Architecture — Question 24

Practice question about secure cookies.

Knowledge Check

What does the HttpOnly cookie attribute primarily prevent?

Security & Data Architecture — Question 25

Practice question about JWTs.

Knowledge Check

Does a signed JWT automatically provide confidentiality?

Security & Data Architecture — Question 26

Practice question about validation.

Knowledge Check

Where should security-critical input validation happen?

Security & Data Architecture — Question 27

Practice question about Server Actions.

Knowledge Check

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.

Knowledge Check

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.

Knowledge Check

A user is authenticated but tries to delete another user's invoice. What should happen?

Security & Data Architecture — Question 30

Practice question about webhooks.

Knowledge Check

Why should webhook handlers usually be idempotent?