| 1 | How would you handle file uploads through a form using a server action in Next.js? Next.js › Form Handling & Validation in Next.js | Next.js | Form Handling & Validation in Next.js | Advanced |
| 2 | How do you submit a form directly to a server action in Next.js without writing any client side JavaScript? Next.js › Form Handling & Validation in Next.js | Next.js | Form Handling & Validation in Next.js | Beginner |
| 3 | How do you validate form data on the server before saving it, and show validation errors back to the user? Next.js › Form Handling & Validation in Next.js | Next.js | Form Handling & Validation in Next.js | Intermediate |
| 4 | How do you show a pending or loading state while a form is being submitted using a server action? Next.js › Form Handling & Validation in Next.js | Next.js | Form Handling & Validation in Next.js | Intermediate |
| 5 | What is optimistic UI, and how can you apply it to a form submission for a better user experience? Next.js › Form Handling & Validation in Next.js | Next.js | Form Handling & Validation in Next.js | Advanced |
| 6 | How do you protect a Next.js application against cross site scripting attacks? Next.js › Security Best Practices in Next.js | Next.js | Security Best Practices in Next.js | Intermediate |
| 7 | How would you protect server actions from being called with malicious or unauthorized data, since they can be invoked directly from the client? Next.js › Security Best Practices in Next.js | Next.js | Security Best Practices in Next.js | Advanced |
| 8 | How would you implement optimistic state updates for a feature like a like button, so the interface feels instant while a server action processes the actual update? Next.js › State Management in Next.js Apps | Next.js | State Management in Next.js Apps | Advanced |
| 9 | How would you create strongly typed server actions that validate their input and return a predictable, typed result? Next.js › TypeScript with Next.js | Next.js | TypeScript with Next.js | Advanced |
| 10 | What is a server action in Next.js, and what problem does it solve? Next.js › Server Actions & Mutations | Next.js | Server Actions & Mutations | Beginner |
| 11 | What are common performance and security pitfalls to avoid when building API routes at scale? Next.js › API Routes | Next.js | API Routes | Advanced |
| 12 | How do you read query parameters and the request body inside an API route? Next.js › API Routes | Next.js | API Routes | Beginner |
| 13 | How do you read query parameters and the request body inside a route handler? Next.js › Route Handlers (API Route.js) | Next.js | Route Handlers (API Route.js) | Intermediate |
| 14 | How would you handle errors gracefully inside a server action and display a meaningful message to the user? Next.js › Server Actions & Mutations | Next.js | Server Actions & Mutations | Advanced |