| 1 | How do you set security related HTTP headers, such as Content Security Policy, in a Next.js application? Next.js › Security Best Practices in Next.js | Next.js | Security Best Practices in Next.js | Intermediate |
| 2 | 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 |
| 3 | 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 |
| 4 | What steps should you take to keep dependencies and the Next.js framework itself secure over time? Next.js › Security Best Practices in Next.js | Next.js | Security Best Practices in Next.js | Advanced |
| 5 | Why is it important to never expose sensitive information like API keys inside client components? Next.js › Security Best Practices in Next.js | Next.js | Security Best Practices in Next.js | Beginner |
| 6 | What are best practices for securely storing and validating authentication tokens in a Next.js app? Next.js › Authentication & Authorization in Next.js | Next.js | Authentication & Authorization in Next.js | Advanced |
| 7 | What are the main types of tests you would write for a Next.js application? Next.js › Testing Next.js Applications | Next.js | Testing Next.js Applications | Beginner |
| 8 | How do you set a cookie in Next.js, such as after a user logs in? Next.js › Cookies & Session Management in Next.js | Next.js | Cookies & Session Management in Next.js | Intermediate |
| 9 | How do you write an end to end test that simulates a user navigating through your Next.js application in a real browser? Next.js › Testing Next.js Applications | Next.js | Testing Next.js Applications | Intermediate |
| 10 | What security settings should always be applied to cookies that store session or authentication information? Next.js › Cookies & Session Management in Next.js | Next.js | Cookies & Session Management in Next.js | Advanced |
| 11 | 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 |
| 12 | How would you set up a testing strategy that balances unit, integration, and end to end tests for a large Next.js application? Next.js › Testing Next.js Applications | Next.js | Testing Next.js Applications | Advanced |
| 13 | Why should database queries always happen on the server rather than in the browser? Next.js › Database Integration with Next.js | Next.js | Database Integration with Next.js | Intermediate |
| 14 | What is the difference between storing session data in a signed cookie versus a server side session store? Next.js › Cookies & Session Management in Next.js | Next.js | Cookies & Session Management in Next.js | Advanced |
| 15 | What caching pitfalls should you watch out for when building a Next.js application with dynamic, user specific data? Next.js › Caching | Next.js | Caching | Advanced |
| 16 | How would you set up a comprehensive error handling strategy across a large Next.js application with many route segments? Next.js › Error Handling & Not Found Pages | Next.js | Error Handling & Not Found Pages | Advanced |
| 17 | What security considerations should you keep in mind when loading third party scripts on your Next.js website? Next.js › Third-Party Script Optimization | Next.js | Third-Party Script Optimization | Advanced |
| 18 | How can you use middleware to protect multiple routes at once for authentication? Next.js › Authentication & Authorization in Next.js | Next.js | Authentication & Authorization in Next.js | Intermediate |
| 19 | How do you implement role based authorization, where different users see different content based on their role? Next.js › Authentication & Authorization in Next.js | Next.js | Authentication & Authorization in Next.js | Advanced |
| 20 | What is the difference between a regular environment variable and one prefixed with NEXT_PUBLIC in Next.js? Next.js › Environment Variables & Configuration Management | Next.js | Environment Variables & Configuration Management | Beginner |
| 21 | What is a rewrite in Next.js, and how is it different from a redirect? Next.js › Redirects & Rewrites Configuration | Next.js | Redirects & Rewrites Configuration | Beginner |
| 22 | How do you configure Next.js to allow optimizing images that are hosted on an external domain? Next.js › Image & Font Optimization | Next.js | Image & Font Optimization | Intermediate |
| 23 | What are common performance and security pitfalls to avoid when building API routes at scale? Next.js › API Routes | Next.js | API Routes | Advanced |
| 24 | What deployment strategies help minimize downtime and risk when releasing a new version of a Next.js application? Next.js › Deployment | Next.js | Deployment | Advanced |
| 25 | What structured data, also known as schema markup, can you add to a Next.js page to improve how it appears in search results? Next.js › Metadata API & SEO Optimization | Next.js | Metadata API & SEO Optimization | Advanced |
| 26 | What security considerations are unique to server actions compared to regular server side code, since they can be called directly from the browser? Next.js › Server Actions & Mutations | Next.js | Server Actions & Mutations | Advanced |
| 27 | How do you add environment variables to a Next.js project? Next.js › Environment Variables & Configuration Management | Next.js | Environment Variables & Configuration Management | Beginner |
| 28 | How do you handle different HTTP methods such as GET, POST, and DELETE within a single API route file? Next.js › API Routes | Next.js | API Routes | Intermediate |
| 29 | What security risks are associated with environment variables, and how do you avoid them? Next.js › Environment Variables & Configuration Management | Next.js | Environment Variables & Configuration Management | Advanced |
| 30 | How would you build a webhook endpoint that automatically revalidates your site whenever content changes in an external content management system? Next.js › On-Demand Revalidation Strategies | Next.js | On-Demand Revalidation Strategies | Advanced |
| 31 | How would you implement rate limiting inside a route handler to prevent abuse of a public API endpoint? Next.js › Route Handlers (API Route.js) | Next.js | Route Handlers (API Route.js) | Advanced |
| 32 | How do you set custom response headers, such as CORS headers, in a route handler to allow requests from a different domain? Next.js › Route Handlers (API Route.js) | Next.js | Route Handlers (API Route.js) | Advanced |
| 33 | How do you fetch draft or unpublished content differently from published content when Draft Mode is enabled? Next.js › Draft Mode & Preview Mode | Next.js | Draft Mode & Preview Mode | Intermediate |
| 34 | How would you validate that all required environment variables are present and correctly formatted before your app starts? Next.js › Environment Variables & Configuration Management | Next.js | Environment Variables & Configuration Management | Intermediate |