Full Stack Developer question bank
382 questions. Filter by level and skill, track what you've solved, and see how many people get each one right.
- Status code after creating a resource
- Fixing a CORS error
- Where to keep a secret key
- Which method is idempotent
- fetch and error status codes
- Preventing SQL injection
- Storing user passwords
- The .env file and Git
- Status 401 vs 403
- PATCH vs PUT for one field
- What HttpOnly does
- Empty req.body in Express
- Timer vs promise order
- Optional property in strict mode
- Listing users with zero orders
- Comparing a column to NULL
- Keys for rows loaded from an API
- useState in an App Router page
- Renaming a secret to NEXT_PUBLIC_
- Undoing a commit already on main
- Docker image vs container
- Posts vanish from GET links
- What HTTPS protects
- Is browser validation enough?
- URL for a user’s orders
- What an index costs
- try/catch around an async call
- map with an async callback
- What triggers a preflight
- Dates sent through JSON
- Why commit the lockfile
- Caching a bank statement page
- Response for an empty list
- What ^3.22.4 allows
- Making a route public
- What a layout does
- Route for a product ID
- Folders in parentheses
- Purpose of use client
- Linking between pages
- Showing a 404 for a missing post
- What loading.tsx does
- Correct useRouter import
- Default component type
- Creating an API endpoint
- Folder with an underscore
- What the root layout needs
- Two routers in one project
- Highlighting the active link
- Fetching data in a page
- What use server marks
- Submitting a form to the server
- Reading cookies in a Server Component
- Fetching two things at once
- Disabling the submit button
- Revalidating a page every hour
- How Server Actions are called
- Default caching of fetch
- What use cache does
- Why stream a slow section
- Reading a JSON body
- Reading the query string
- Caching one fetch for 10 minutes
- Always rendering on request
- Required props for next/image
- Allowing an image host
- Benefit of next/font/google
- Setting the page title
- Loading a chat widget script
- Local environment file
- Small Docker image
- What output export cannot do
- Default bundler in Next.js 16
- Generating a sitemap
- Reading next build output
- Using fs on the edge
- Social share image
- Permanent redirect from config
- Image with fill is not visible
- Measuring speed in dev mode
- Blur-up for a local image
- Stored versus reflected XSS
- Writing location.hash into the page
- Encoding user text inside HTML
- What the Secure cookie flag does
- Purpose of Strict-Transport-Security
- X-Content-Type-Options: nosniff
- Stopping clickjacking
- Running a shell command with user input
- Download endpoint reads any file
- Slowing password guessing
- Why turn on MFA
- Top OWASP web risk
- Login error wording
- Only validating in the browser
- Known holes in libraries
- Scope of a reporting key
- A sensible password rule
- HTTPS page loads an HTTP script
- Validating a country code
- SQL error in the API reply
- Folder listing on the web server
- Admin panel with admin/admin
- What a password salt stops
- Session left open on a shared PC
- Logout that only clears the cookie
- Delete link using GET
- Bots creating fake accounts
- JSON served as text/html
- Hiding the admin button
- Generating a reset token
- The S in STRIDE
- SAST compared with DAST
- Secret pushed to a public repo
- Huge JSON body crashes the API
- Which uploads to accept
- Defence in depth
- Reading a CVSS score
- JWT in localStorage
- The N+1 query problem
- CSRF with cookie sessions
- Server Components and the database
- Offset vs cursor pagination
- Optimistic update fails
- Renaming a column safely
- Caching hashed static files
- One failing widget breaks the dashboard
- Three awaits, three times slower
- Hiding the button is not auth
- Old title after saving
- When SameSite=Lax cookies are sent
- One schema for form and API
- Moving credits between accounts
- Composite index column order
- Search shows results for old input
- Returning form validation errors
- ETag and If-None-Match
- Rate limiter that does not limit
- Serving private invoice PDFs
- Slow Docker builds on every change
- Changed env var, old value in browser
- Users see each other’s profile
- User bios rendered as HTML
- Sensitive data inside a JWT
- Type cast on fetch response
- GraphQL author lookups
- Webhook signature always fails
- One report slows every request
- Tracing one failed checkout
- Releasing a risky checkout
- Flaky end-to-end test
- Relative fetch on the server
- Catch-all versus optional catch-all
- Reading params in Next.js 15+
- When to use template.tsx
- error.tsx must be a Client Component
- Error in a layout not caught
- Server code pulled into the client
- What import 'server-only' does
- Passing a function as a prop
- Server content inside a client wrapper
- Showing two panels at once
- Photo opens as a modal
- Slot does not match on refresh
- When Link prefetches
- What router.refresh() does
- useSearchParams breaks the build
- route.ts next to page.tsx
- Prebuilding blog posts
- Unknown slug with dynamicParams false
- Error in the root layout
- Request interception file in Next.js 16
- Same DB query in layout and page
- Same fetch called twice
- What useActionState returns
- Instant like count
- Where to check permissions
- Large file upload fails
- Form before JavaScript loads
- Revalidating by tag
- One call makes the page dynamic
- Work after the response
- GET route handler caching
- First visitor after revalidate time
- Setting how long use cache lasts
- Tagging cached data
- Previewing CMS drafts
- Hidden data waterfall
- Two different revalidate times
- How long React cache() lasts
- Order of revalidate and redirect
- Search form with client navigation
- Title from database data
- Relative OG image URL
- next/image with fill downloads too much
- Using next/font with CSS variables
- Proxy running on every file
- Is proxy enough for auth?
- Hiding a backend URL
- Hero image loads late
- Starting tracing once
- Native module breaks the build
- Slow dev from icon library
- Fewer manual memos
- Image bill keeps growing
- Can crawlers see streamed content?
- Static shell with dynamic holes
- Library component without use client
- Component that touches window
- Not adding to browser history
- Route params in a deep component
- Adding security headers to all pages
- Setting a cookie from a page
- Routing for English and Arabic
- Pending state on programmatic navigation
- Active tab in a layout
- XSS that JSX does not escape
- User data inside a script block
- How a CSRF token works
- Double-submit cookie
- Cookie for an embedded widget
- CORS wildcard and cookies
- Echoing the Origin header
- MongoDB login bypass
- XML upload reads server files
- Loading a pickled cookie
- Profile picture uploaded as SVG
- Same session ID after login
- Choosing a password hash
- Hard lockout after 5 failures
- Script tag from a public CDN
- Reset token leaks to analytics
- Request bodies in the logs
- Detailed errors shown to users
- Reset link built from the Host header
- A regex that freezes the server
- The __Host- cookie prefix
- Session cookie with Domain=.example.com
- Old CNAME to a deleted bucket
- Allowing Origin: null
- What Trusted Types enforces
- Rolling out a CSP safely
- Rate limit keyed on X-Forwarded-For
- Deeply nested GraphQL query
- Many login attempts in one request
- Secret key passed as ?api_key=
- Chance of guessing a 6-digit OTP
- Entropy of a random token
- Template built from user text
- Newlines in a redirect header
- Export opens with a formula
- WebSocket accepts any origin
- Sending a token with postMessage
- Token from another service accepted
- Attacker stays logged in
- Storing card details
- What helmet adds to Express
- Next.js Server Action without a check
- Serving user-uploaded HTML
- Private invoice downloads from S3
- Valid webhook sent twice
- How long to guess a 4-digit PIN
- Package name with one letter off
- Install scripts in CI
- Fake lines in the audit log
- Removed admin still has access
- Preventing double charges on retry
- Two buyers, one item left
- Refresh token rotation
- Hydration mismatch with time
- Keeping a cache in sync
- Chat across many servers
- Too many database connections
- Saving data and publishing an event
- Unique email with soft deletes
- Module variable holds the current user
- JWT algorithm confusion
- Saved profile shows old data
- Write skew under snapshot isolation
- Redirect check that can be bypassed
- Link previews fetch internal URLs
- Profile update accepts any field
- Birthday shows one day early
- Large IDs change in the browser
- 404 page returns status 200
- Cache expiry takes down the database
- Two agents edit one ticket
- Welcome email sent twice
- Items missing between pages
- Nonce-based CSP trade-off
- Comparing secret tokens safely
- Async error skips Express handler
- Choosing an API contract approach
- Errors only right after a deploy
- Designing password reset links
- OAuth for a browser-only app
- NOT IN returns no rows
- Payment call inside a transaction
- Metadata export ignored
- Which loading state shows
- Intercepting route path rule
- Passing a promise to the client
- React context in the App Router
- Shape of catch-all params
- Scroll position after navigation
- Do client components render on the server?
- Async Client Component
- Setting a cookie in a route handler
- Which not-found.tsx is used
- Where use client is needed
- getServerSideProps in the app folder
- Turning off prefetch
- redirect() never happens
- Reading cookies inside use cache
- Seeing your own edit at once
- Cached data shown to the wrong user
- Build error with Cache Components
- Values captured by an inline action
- Exporting a constant from an actions file
- Deleting data in a GET handler
- Two sections, two boundaries
- Making a random value per request
- Prebuilt plus fresh pages
- What an action may return
- Returning to a dynamic list
- Replacing unstable_cache
- Trusting form data in an action
- Revalidating a dynamic route
- Proxy runtime in Next.js 16
- Blocking secrets from reaching the client
- Safe data for client components
- CSRF protection for Server Actions
- ISR across several containers
- Using an external image CDN
- Choosing a runtime
- Large next/font downloads
- Sharing cache in Kubernetes
- Streaming an AI answer
- Lint step after upgrading
- Upgrade breaks params access
- Catching broken links at build
- Unstyled site in Docker
- Server env change not picked up
- Long report times out
- Pages Router fallback: blocking
- Sanitised HTML changed afterwards
- What 'strict-dynamic' allows
- CSP that trusts a whole CDN
- SSRF check passes, request hits internal IP
- Safe URL that redirects inside
- Proxy and server disagree on body length
- CDN caches an attacker's script URL
- One-time coupon used five times
- Why public clients use PKCE
- OAuth callback without state
- Username that attacks later
- Extracting an uploaded ZIP
- JWT key chosen by the kid header
- bcrypt and very long input
- Cart accepts negative quantity
- Same nonce for every AES-GCM message
- Signing with sha256(secret + message)
- Two framing headers disagree
- What COOP protects
- Different errors for bad padding
- Access check only on the top field
- Where to keep a pepper
- SAML response with two assertions
- Lookalike username
- Duplicate query parameters
- Profile cached as a .css file
- Sandbox with scripts and same-origin
- Linking accounts by email
- Login is slower for real users
- Token with alg set to none
- Origin regex that is too loose
- Denylist misses another IP format
- Internal package pulled from the public registry
- Injected base tag beats a nonce CSP
- Invoice PDF renders attacker HTML
- Double charge on retry
- Loose redirect_uri matching