Frontend Engineer · interview questions

Frontend Engineer interview questions

From the role's core and recommended topics, most asked first. Filter by the kind of answer the question wants.

React Developer Core 108

  1. Most asked Explain React concept: JSX.
  2. Most asked Explain React concept: props.
  3. Most asked Explain React concept: state.
  4. Most asked Explain React concept: unidirectional data flow.
  5. Most asked Explain React concept: keys in lists.
  6. Most asked Explain React concept: controlled vs uncontrolled inputs.
  7. Most asked Explain React concept: lifting state up.
  8. Most asked What does `useState` do and when should you use it?
  9. Most asked What does `useEffect` do and when should you use it?
  10. Most asked What does `useContext` do and when should you use it?
  11. Most asked What does `useRef` do and when should you use it?
  12. Most asked What does `custom hooks` do and when should you use it?
  13. Most asked What does `rules of hooks` do and when should you use it?
  14. Most asked What are the most important changes in React 19?
  15. Most asked A React page with a long list becomes slow when typing in a search box. How do you find and fix the problem?
  16. Most asked Write a custom React hook that debounces a value, and use it to search an API without race conditions.
  17. Most asked Explain React concept: reconciliation.
  18. Most asked What does `useMemo` do and when should you use it?
  19. Most asked What does `useCallback` do and when should you use it?
  20. Most asked React performance: React.memo?
  21. Most asked What is concurrent rendering in React?
  22. Most asked What are the pitfalls of fetching data in `useEffect`, and how do you avoid race conditions?
  23. Most asked Why must React state be updated immutably, and how do you update nested state?
  24. Most asked When do you NOT need `useEffect`?
  25. Explain React concept: components.
  26. What does `effect dependency mistakes` do and when should you use it?
  27. What does `cleanup in effects` do and when should you use it?
  28. Discuss testing-library in React applications.
  29. Discuss accessibility (a11y) in React applications.
  30. How do Actions and `useActionState` work in React 19?
  31. Explain React concept: React elements vs components.
  32. Explain React concept: composition vs inheritance.
  33. Explain React concept: derived state anti-pattern.
  34. Explain React concept: pure components.
  35. Explain React concept: error boundaries.
  36. Explain React concept: Suspense.
  37. Explain React concept: lazy / code splitting.
  38. What does `useReducer` do and when should you use it?
  39. What does `useTransition` do and when should you use it?
  40. React performance: virtualization?
  41. React performance: profiling?
  42. Discuss React Router in React applications.
  43. Discuss Redux vs Context in React applications.
  44. Discuss TanStack Query in React applications.
  45. Discuss Vitest/Jest in React applications.
  46. Discuss Next.js in React applications.
  47. Discuss forms in React applications.
  48. Discuss auth patterns in React applications.
  49. What is `useFormStatus` and where must it be used?
  50. How does `useOptimistic` implement optimistic UI?
  51. What does the `use()` API do?
  52. How did refs change in React 19?
  53. What is the React Compiler and how does it affect `useMemo`/`useCallback`?
  54. How do you choose between Context, Zustand, Redux Toolkit and server-state libraries?
  55. Why can React Context cause performance problems, and how do you mitigate them?
  56. How does TanStack Query manage server state?
  57. What is the compound components pattern?
  58. What makes a well-designed custom hook?
  59. How do you build robust forms in React?
  60. What are stale closures in React hooks and how do you fix them?
  61. How do server-side rendering and hydration work in React?
  62. Which accessibility practices matter most in React apps?
  63. How should React components be tested?
  64. What happens in the browser from navigation until a React page shows its data, and how do you avoid request waterfalls?
  65. Design a component library that several product teams will share.
  66. Users report that a React app's memory keeps growing the longer they keep it open. How do you investigate?
  67. Explain React concept: fragments.
  68. Explain React concept: portals.
  69. Explain React concept: Strict Mode.
  70. Explain React concept: Server Components (RSC).
  71. What does `useLayoutEffect` do and when should you use it?
  72. What does `useId` do and when should you use it?
  73. What does `useDeferredValue` do and when should you use it?
  74. React performance: avoid inline object props?
  75. React performance: key remounting?
  76. React performance: batching?
  77. React performance: concurrent features?
  78. React performance: bundle analysis?
  79. Discuss CSS modules / Tailwind in React applications.
  80. How does React 19 handle `<title>`, `<meta>` and stylesheets rendered in components?
  81. What resource preloading APIs does React DOM provide?
  82. What is the `<Activity>` component (React 19.2)?
  83. What problem does `useEffectEvent` (React 19.2) solve?
  84. What is `useSyncExternalStore` for?
  85. How do render props and higher-order components compare with custom hooks?
  86. How can you use the `key` prop to reset a component's state?
  87. How does React's event system work?
  88. How do you build an accessible modal dialog in React?
  89. How do XSS risks show up in React apps?
  90. Why did the React ecosystem move from Create React App to Vite and frameworks?
  91. How do error boundaries interact with async errors and event handlers?
  92. When would you use `useImperativeHandle`?
  93. How do you render very large lists efficiently?
  94. How do you find performance problems in a React app?
  95. How do you code-split a React app?
  96. What are the trade-offs between Tailwind, CSS Modules and CSS-in-JS in React?
  97. How do you build and maintain a React design system?
  98. How do you internationalize a React app?
  99. How should a React SPA handle authentication tokens securely?
  100. How do you add performant animations in React?
  101. What are micro-frontends and what are their trade-offs in React?
  102. How do class component lifecycle methods map to hooks?
  103. What breaking changes should you check when upgrading to React 19?
  104. In an RSC app, how do you decide what should be a Client Component?
  105. What is `useInsertionEffect` for?
  106. How does automatic batching work in React 18+?
  107. What is the difference between state and props in React?
  108. How does useEffect work in functional React components?

TypeScript Developer Core 101

  1. Most asked What is TypeScript and what problems does it solve?
  2. Most asked Explain `any`, `unknown` and `never`.
  3. Most asked What are the differences between `interface` and `type` aliases?
  4. Most asked What is structural typing in TypeScript?
  5. Most asked What is type narrowing and what techniques does TypeScript support?
  6. Most asked What are discriminated unions and why are they powerful?
  7. Most asked What are generics and how do constraints work?
  8. Most asked Which built-in utility types do you use most, and what do they do?
  9. Most asked What are mapped types? Show how `Partial` or `Readonly` could be implemented.
  10. Most asked Explain conditional types and the `infer` keyword.
  11. Most asked What does the `satisfies` operator do and how does it differ from a type annotation?
  12. Most asked What does `as const` do?
  13. Most asked Should you use enums or union types in TypeScript?
  14. Most asked Which `tsconfig` strictness options matter and what do they catch?
  15. Most asked How do function overloads work in TypeScript and when are they better than unions?
  16. Most asked Why do you still need runtime validation in TypeScript, and how do libraries like Zod help?
  17. Most asked Explain `keyof`, `typeof` (in type position) and indexed access types.
  18. Most asked What are type assertions (`as`) and the non-null assertion (`!`), and why should you use them sparingly?
  19. Most asked What are intersection types and how do they differ from interface extension?
  20. Most asked What are union types and how do you work with them safely?
  21. How do you type React component props, children and events in TypeScript?
  22. What are template literal types?
  23. What are covariance and contravariance in TypeScript function types?
  24. What are declaration files (`.d.ts`) and how do you type a JavaScript library without types?
  25. How do you type hooks like `useState`, `useReducer`, `useRef` and context?
  26. How do you write a generic React component (e.g., a typed List or Select)?
  27. How do module systems (ESM vs CommonJS) interact with TypeScript settings?
  28. What are `import type`, `isolatedModules` and `verbatimModuleSyntax`?
  29. How do `tsc`, esbuild, SWC and Babel differ for TypeScript builds?
  30. How would you migrate a large JavaScript codebase to TypeScript?
  31. How does type inference work in TypeScript, and when should you annotate explicitly?
  32. What's the difference between an optional property (`x?: T`) and `x: T | undefined`?
  33. How do optional chaining (`?.`) and nullish coalescing (`??`) work with types?
  34. Explain `void` as a return type and why a callback typed `() => void` can return a value.
  35. Write a TypeScript function that safely parses unknown JSON into a typed object.
  36. How do you model immutability in TypeScript?
  37. How do TypeScript access modifiers compare with JavaScript private fields?
  38. When would you use an abstract class versus an interface in TypeScript?
  39. What are index signatures and how do they relate to `Record`?
  40. How are tuples typed in TypeScript, including labeled and variadic tuples?
  41. Can Node.js run TypeScript directly?
  42. How do path aliases (`@/components`) work, and what's the common pitfall?
  43. What are project references and when do you use them?
  44. What are excess property checks and when do they apply?
  45. Why does `Object.keys(obj)` return `string[]` instead of `(keyof T)[]`?
  46. What's the difference between `// @ts-ignore` and `// @ts-expect-error`?
  47. What changed with decorators in TypeScript 5.0?
  48. What are `using` declarations (TypeScript 5.2)?
  49. What are `const` type parameters (TS 5.0) and `NoInfer` (TS 5.4)?
  50. How do you type JSON values or recursive structures?
  51. How should you handle errors in `catch` blocks in TypeScript?
  52. Why does `Omit` behave unexpectedly on union types, and how do you fix it?
  53. How do you test types themselves?
  54. How do you type an Express/Node API in TypeScript?
  55. How can you share types between frontend and backend?
  56. How does TypeScript type `this`?
  57. How do you keep TypeScript type-checking fast in large projects?
  58. What's the difference between `object`, `Object` and `{}` types?
  59. Why should you avoid the `Function` type?
  60. What is `strictPropertyInitialization` and the definite assignment assertion (`!:`)?
  61. What do `Parameters`, `ConstructorParameters`, `InstanceType` and `ReturnType` give you?
  62. Explain `Exclude`, `Extract` and `NonNullable`.
  63. How would you implement a `DeepPartial<T>` type?
  64. How do you type async functions and promises?
  65. How are generators and iterators typed?
  66. Should you use namespaces in modern TypeScript?
  67. How do you type environment variables safely?
  68. How do you publish a TypeScript library with correct types for ESM and CommonJS consumers?
  69. Can you get TypeScript checking in plain JavaScript files?
  70. What does typescript-eslint add beyond the compiler?
  71. Why are classes with private members compared nominally?
  72. Can you pass a `readonly string[]` to a function expecting `string[]`?
  73. How would you type an event emitter so event names and payloads are checked?
  74. How do you write a type-safe fetch wrapper?
  75. What is the Result pattern in TypeScript and when is it preferable to exceptions?
  76. How do you implement mixins in TypeScript?
  77. How can generics make a builder pattern type-safe (e.g., tracking which fields are set)?
  78. What is a `unique symbol` type?
  79. What do the `target` and `lib` compiler options control?
  80. What are generic defaults and when are they useful?
  81. What are phantom types and how do they relate to branding?
  82. How can `Record<Union, T>` catch bugs when a union grows?
  83. How are getters, setters and the `accessor` keyword typed?
  84. How do you add types to globals like `window`?
  85. What is contextual typing?
  86. What is literal type widening?
  87. What's the difference between `const`, `readonly` and `as const`?
  88. How do you type Maps, Sets and WeakMaps?
  89. Why combine `as const` with `satisfies`?
  90. How does the `in` operator narrow union types?
  91. How would you type a generic repository class?
  92. How do you safely use data from `JSON.parse` without a schema library?
  93. What's the difference between `string[]`, `Array<string>` and `[string]`?
  94. When should a function accept a union parameter versus using overloads?
  95. What is the native TypeScript compiler port (TypeScript 7 / tsgo)?
  96. Why can a function with fewer parameters be assigned to a function type with more parameters?
  97. How do you make a class implement an interface, and what does `implements` actually check?
  98. What do you do when TypeScript infers a generic type parameter too broadly or as `unknown`?
  99. How do you safely work with DOM elements in TypeScript?
  100. What should teams expect from TypeScript 6.0?
  101. What TypeScript practices do you look for in code reviews?

HTML & CSS Core 45

  1. Most asked What is HTML?
  2. Most asked What is HTML5, and how is it different from HTML 4?
  3. Most asked What is semantic HTML, and why does it matter?
  4. Most asked What is the alt attribute for, and what makes good alt text?
  5. Most asked What input types and validation attributes did HTML5 add?
  6. Most asked What is the difference between script, script async and script defer?
  7. Most asked Compare localStorage, sessionStorage and cookies.
  8. Most asked What is ARIA, and what is the first rule of ARIA?
  9. Most asked What does <!DOCTYPE html> do?
  10. Why must every form field have a label, and how do you associate one?
  11. Why isn't client-side validation enough?
  12. Which head tags matter for SEO and social sharing?
  13. How do responsive images work with srcset, sizes and picture?
  14. Why set width and height on images, and when should you use loading="lazy"?
  15. Why use button and a instead of a clickable div?
  16. How do you safely display user-generated content in HTML?
  17. Your page's Cumulative Layout Shift (CLS) score is poor. How do you find and fix the shifts?
  18. What is the difference between a tag, an element and an attribute?
  19. What goes in the head of an HTML document, and what goes in the body?
  20. What is the difference between block and inline elements?
  21. When should you use id and when class?
  22. What is the difference between article, section and div?
  23. How should headings be structured on a page?
  24. What is the difference between absolute and relative URLs?
  25. How do you make an HTML table accessible, and when shouldn't you use a table?
  26. What is the difference between GET and POST in an HTML form?
  27. What do the autocomplete and inputmode attributes do?
  28. What does the viewport meta tag do?
  29. What is structured data (JSON-LD), and why add it?
  30. What is the DOM, and how does the browser build it from HTML?
  31. What are data-* attributes for?
  32. What is the difference between canvas and SVG?
  33. How do you add video with captions in HTML5?
  34. What do the dialog element and the popover attribute provide?
  35. What does the sandbox attribute on an iframe do?
  36. What are resource hints such as preload and preconnect?
  37. What is the difference between strong and b, and between em and i?
  38. When do you use ul, ol and dl?
  39. Why should you declare the character encoding, and how?
  40. What are HTML entities and when do you need them?
  41. What is the details element used for?
  42. What is the template element?
  43. Is target="_blank" on links a security risk?
  44. Who maintains HTML today, and what is the Living Standard?
  45. What are web components?

Next.js Developer Core 103

  1. Most asked What is Next.js and what problems does it solve on top of React?
  2. Most asked What are the differences between the App Router and the Pages Router?
  3. Most asked What is the difference between Server Components and Client Components?
  4. Most asked Explain the App Router file conventions: page, layout, loading, error, not-found, template and route.
  5. Most asked How does data fetching work in the App Router?
  6. Most asked How did caching defaults change in Next.js 15?
  7. Most asked Explain SSR, SSG, ISR and CSR in Next.js.
  8. Most asked What are Server Actions and how do you use them for mutations?
  9. Most asked What happens, step by step, when a request reaches a Next.js App Router application?
  10. Most asked How do dynamic routes, catch-all and optional catch-all segments work?
  11. Most asked How does streaming with Suspense work in Next.js?
  12. Most asked What are Route Handlers and when should you use them instead of Server Actions?
  13. Most asked What is Next.js middleware (renamed `proxy` in Next.js 16) and what should it be used for?
  14. Most asked How do `revalidatePath` and `revalidateTag` work?
  15. Most asked How do you manage metadata and SEO in the App Router?
  16. Most asked What does `next/image` do?
  17. Most asked How do environment variables work in Next.js, and what is exposed to the browser?
  18. Most asked How do you implement authentication in a Next.js App Router app?
  19. Most asked What causes hydration mismatch errors and how do you fix them?
  20. Most asked How do you optimize Core Web Vitals in a Next.js app?
  21. Most asked How do `getServerSideProps`, `getStaticProps` and `getStaticPaths` work in the Pages Router?
  22. How can a Client Component render Server Component content?
  23. What are route groups, parallel routes and intercepting routes?
  24. Describe the caching layers in the Next.js App Router.
  25. How does navigation work with `<Link>` and `useRouter` in the App Router?
  26. What are `usePathname`, `useSearchParams` and `useParams`, and what's the Suspense caveat?
  27. How does error handling work in the App Router?
  28. What are the options for deploying a Next.js application?
  29. How do you build forms with Server Actions, validation and pending states?
  30. What is a Data Access Layer (DAL) and why is it recommended in Next.js?
  31. What security considerations apply specifically to Server Actions and Server Components?
  32. What is the RSC payload?
  33. Which props can be passed from a Server Component to a Client Component?
  34. A Next.js page shows a hydration mismatch error. What causes it, and how do you fix it?
  35. Design the caching strategy for a Next.js e-commerce site with product pages, a cart and personalised recommendations.
  36. What does `next/font` provide?
  37. What's the difference between the Node.js and Edge runtimes in Next.js?
  38. How do you load third-party scripts efficiently in Next.js?
  39. How does `next/dynamic` work and when do you use it?
  40. What is `useOptimistic` and how does it work with Server Actions?
  41. How do you design good loading states in the App Router?
  42. Why don't layouts re-render on navigation, and what are the implications?
  43. How do you implement internationalization in the App Router?
  44. How do you test a Next.js application?
  45. What is Turbopack?
  46. How do redirects, rewrites and headers work in `next.config`?
  47. How do you add a Content Security Policy to a Next.js app?
  48. What is Partial Prerendering (PPR) / Cache Components?
  49. What does the `'use cache'` directive do?
  50. What's the difference between React's `cache()` and Next.js's `unstable_cache`?
  51. What is the `after()` API in Next.js 15?
  52. How do you add observability to a Next.js app?
  53. How do you access a database from Next.js safely and efficiently?
  54. How does state management change with Server Components?
  55. What styling options work with the App Router and Server Components?
  56. How do API Routes in the Pages Router differ from Route Handlers?
  57. How would you migrate a large Next.js app from the Pages Router to the App Router?
  58. How does React 19's `use()` hook help with data in Next.js?
  59. How are static assets served in Next.js?
  60. What does `generateStaticParams` do and what is `dynamicParams`?
  61. What are route segment config options?
  62. How do you read and set cookies and headers in the App Router?
  63. How do `redirect()`, `permanentRedirect()` and `notFound()` work?
  64. Why does `next/image` require `remotePatterns` for external images?
  65. When does `<Link>` prefetch, and how can you control it?
  66. How do you avoid request waterfalls in Server Components?
  67. How do you add real-time features to a Next.js app?
  68. When would you use a custom Node server with Next.js, and what do you lose?
  69. How do you structure a Next.js app in a monorepo?
  70. How does Next.js support TypeScript?
  71. What does Next.js do for accessibility, and what remains your job?
  72. How should errors in Server Actions be handled for good UX?
  73. What is `output: 'export'` and what are its limitations?
  74. How do you find and reduce large client bundles in Next.js?
  75. What is the `next/form` component?
  76. How would you build a multi-tenant SaaS on Next.js with custom domains or subdomains?
  77. What do the `server-only` and `client-only` packages do?
  78. What breaking changes should you expect when upgrading to Next.js 15?
  79. What are notable changes in Next.js 16?
  80. How does Next.js compare with Remix/React Router v7 and Astro?
  81. What is Draft Mode and how is it used with a headless CMS?
  82. How do you generate dynamic Open Graph images in Next.js?
  83. What is required in the root layout of an App Router app?
  84. When would you use `template.tsx` instead of `layout.tsx`?
  85. How do you colocate non-route files inside the `app` directory?
  86. How do you read query parameters in a Server Component page?
  87. How would you implement pagination and filters in the App Router?
  88. How do you implement a URL-addressable modal in the App Router?
  89. How do you make a Route Handler's GET response static or cached?
  90. How do you stream a response (e.g., AI tokens) from a Route Handler?
  91. Compare Auth.js, Clerk and rolling your own authentication in Next.js.
  92. How should you handle third-party webhooks in Next.js?
  93. How does image optimization work when self-hosting Next.js?
  94. How can you preload critical resources in the App Router?
  95. How do you call a Server Action from an event handler instead of a form?
  96. How do you rate limit Server Actions or Route Handlers in Next.js?
  97. What is the React Compiler and how does it relate to Next.js?
  98. How do you debug unexpected stale data in a Next.js App Router app?
  99. What do the symbols in `next build` output (○, ●, ƒ) mean?
  100. How do you handle runtime configuration that changes per environment without rebuilding?
  101. How does Next.js protect against XSS and where can you still introduce it?
  102. How do you investigate a production-only error that shows 'An error occurred in the Server Components render'?
  103. What should you consider for focus management during client-side navigation in Next.js?

Vue.js Developer Recommended 59

  1. Most asked Options API or Composition API: what is the difference, and which would you use?
  2. Most asked ref or reactive: what is the difference, and when do you use each?
  3. Most asked How does Vue 3's reactivity system work, and how does it differ from Vue 2's?
  4. Most asked computed, watch or watchEffect: when do you use each?
  5. Most asked Why does v-for need a key, and why should it not be the index?
  6. Most asked How do props work, and what is one-way data flow?
  7. Most asked What are composables, and why did they replace mixins?
  8. Most asked Pinia or Vuex: what is the difference, and why is Pinia now recommended?
  9. Most asked How do you use Vue Router: dynamic routes, nested routes and navigation guards?
  10. Most asked How do you optimise the performance of a Vue application?
  11. Most asked What security risks should Vue developers watch for?
  12. Most asked Describe the Vue component lifecycle hooks and what you use them for.
  13. Most asked v-if or v-show: what is the difference?
  14. Most asked How does v-model work on components, and what does defineModel do?
  15. Most asked Explain default, named and scoped slots.
  16. Most asked What are template refs, and why do you need nextTick?
  17. Most asked Why does destructuring sometimes lose reactivity in Vue, and how do you avoid it?
  18. Most asked What are the main breaking changes when migrating from Vue 2 to Vue 3?
  19. Most asked How does server-side rendering work with Vue, and what does Nuxt add?
  20. Most asked How do you test Vue components?
  21. Most asked Vue or React: how would you compare them?
  22. Most asked How does Vue's virtual DOM and compiler make updates efficient?
  23. What does <script setup> give you?
  24. How do you fetch data in Vue components robustly?
  25. What is Vue.js, and what does 'progressive framework' mean?
  26. Why should you not use v-if and v-for on the same element?
  27. How do components emit events, and how do you declare them?
  28. What are provide and inject, and when should you use them?
  29. How do you use a Pinia store correctly in components, and what is storeToRefs for?
  30. How do you lazy-load routes and code-split a Vue application?
  31. What are shallowRef, shallowReactive and markRaw for?
  32. What causes hydration mismatches, and how do you fix them?
  33. How do you make a Vue single-page application SEO-friendly?
  34. How do you use TypeScript with Vue?
  35. How do you handle forms and validation in Vue?
  36. How do you handle errors in a Vue application?
  37. Can you share state without Pinia, and what is the SSR pitfall?
  38. How do sibling components communicate?
  39. A page renders a list of 20,000 rows and is slow. What do you do?
  40. How do memory leaks happen in Vue apps, and how do you prevent them?
  41. How would you structure a large Vue application?
  42. What router history modes exist, and what server configuration does each need?
  43. What are async components and Suspense?
  44. What is Teleport used for?
  45. What does KeepAlive do?
  46. When would you write a custom directive?
  47. What is a Vue plugin, and how do you write one?
  48. What are the pitfalls of deep watchers?
  49. What event modifiers does Vue provide?
  50. What is a writable computed, and when is it useful?
  51. What are fragments and attribute fallthrough in Vue 3?
  52. What role does Vite play in Vue development?
  53. What does defineExpose do?
  54. How can changing a component's key help, and when is it the wrong tool?
  55. What does the `.value` unwrapping rule look like in templates, reactive objects and arrays?
  56. What are Vue's official style-guide rules you consider essential?
  57. How do transitions work in Vue?
  58. How do class and style bindings work?
  59. What does v-memo do, and when would you use v-once?

Tailwind CSS Recommended 24

  1. Most asked What is Tailwind CSS and what does 'utility-first' mean?
  2. Most asked How does Tailwind decide which CSS to generate?
  3. Most asked Why doesn't className={`bg-${color}-500`} work, and what should you do instead?
  4. Most asked Explain Tailwind's responsive design approach.
  5. Most asked How do you customize Tailwind's design tokens in v4?
  6. Most asked How does Tailwind compare with Bootstrap or writing your own CSS?
  7. Most asked How do you set up Tailwind CSS v4 in a project?
  8. Most asked How do variants like hover:, focus-visible:, group- and peer- work?
  9. Most asked How do you implement dark mode with Tailwind?
  10. Most asked How do you avoid repeating long class lists?
  11. Most asked What changed in Tailwind CSS v4 compared with v3?
  12. Most asked How do you make Tailwind interfaces accessible?
  13. Most asked What's the difference between flex and grid in Tailwind, and when do you use each?
  14. If an element has class="p-4 p-2", which wins? How do you handle overrides in components?
  15. What are container queries in Tailwind and when do you use them?
  16. What are arbitrary values and when should you avoid them?
  17. What is Preflight and how do you style rich text from a CMS?
  18. How do you fix horizontal scrolling on mobile in a Tailwind layout?
  19. Why might a dropdown with z-50 appear behind another element?
  20. How do you keep a Tailwind stylesheet small in production?
  21. How would you build a design system on Tailwind for several apps?
  22. How do opacity modifiers and the colour palette work in v4?
  23. What are good practices for writing Tailwind in a team?
  24. How do you style forms in Tailwind?

Web Security & WAF Recommended 32

  1. Most asked What is the OWASP Top 10 and which risks does it currently highlight?
  2. Most asked What is Cross-Site Scripting (XSS) and how do you prevent it?
  3. Most asked What is SQL injection and how do you prevent it?
  4. Most asked What is CSRF and how do you defend against it?
  5. Most asked What is a Web Application Firewall (WAF), and what can and can't it do?
  6. Most asked How do rate-limiting algorithms work (fixed window, sliding window, token bucket)?
  7. Most asked What is SSRF (Server-Side Request Forgery) and how do you prevent it?
  8. How do you protect a web application from DDoS and abusive traffic?
  9. What is Content-Security-Policy and how do you roll it out?
  10. Which HTTP security headers should every web app send?
  11. What is CORS, and what are common CORS misconfigurations?
  12. How do you manage vulnerable and outdated dependencies?
  13. What are common security misconfigurations in web deployments?
  14. How do you handle file uploads securely?
  15. How should applications manage secrets?
  16. What are insecure deserialization vulnerabilities?
  17. What is clickjacking and how do you prevent it?
  18. What are best practices for TLS/HTTPS?
  19. How do you protect sign-up, login and checkout flows from bots?
  20. What is threat modeling and how do you run one?
  21. What is an open redirect vulnerability?
  22. What is command injection and how do you prevent it?
  23. What is path traversal and how do you prevent it?
  24. Why are security logging and monitoring failures in the OWASP Top 10?
  25. What are software and data integrity failures?
  26. What are common cryptographic failures?
  27. What new security risks do LLM-powered features introduce?
  28. What does the OWASP API Security Top 10 add beyond the web Top 10?
  29. How do cookie prefixes like __Host- and __Secure- improve security?
  30. How do you build security into the development lifecycle?
  31. What is XXE (XML External Entity) injection?
  32. What is subdomain takeover?

Performance & Scalability Recommended 30

  1. Most asked What is the difference between vertical and horizontal scaling?
  2. Most asked What's the difference between latency and throughput?
  3. Most asked How do you approach a performance problem methodically?
  4. Most asked How do load balancers work, and what algorithms do they use?
  5. Most asked Why are timeouts, retries and circuit breakers essential for performance and reliability?
  6. Most asked What are the most common database-related performance problems?
  7. Why should application servers be stateless, and where does state go?
  8. How does autoscaling work and what are its pitfalls?
  9. What are common concurrency bottlenecks in web applications?
  10. How does a CDN improve performance?
  11. When does asynchronous I/O improve performance, and when doesn't it?
  12. How can garbage collection affect application performance?
  13. What are Core Web Vitals and how do you improve them?
  14. How do you load test a system effectively?
  15. How would you scale a read-heavy system?
  16. How would you scale a write-heavy system?
  17. How do you reduce payload sizes in web applications?
  18. How do you do capacity planning?
  19. What is the 'chatty API' problem and how do you fix it?
  20. How can moving work to background jobs improve performance?
  21. Why does tail latency matter more as systems fan out?
  22. Why does connection reuse (keep-alive, pooling) matter for performance?
  23. How can serialization become a bottleneck?
  24. What is load shedding?
  25. What is graceful degradation?
  26. What changes when you scale to multiple regions?
  27. How can adding caches or indexes hurt performance?
  28. What are cold starts and how do you reduce them?
  29. What are common mistakes when benchmarking?
  30. How do algorithm and data structure choices affect backend performance?

Testing Recommended 43

  1. Most asked What is the test pyramid, and is it still relevant?
  2. Most asked What makes a good unit test?
  3. Most asked What's the difference between mocks, stubs, fakes and spies?
  4. Most asked How do you write reliable integration tests that use a database?
  5. Most asked What causes flaky tests and how do you fix them?
  6. Most asked How would you design a test strategy for a new web application?
  7. Most asked Your end-to-end test suite is flaky and takes an hour. How do you fix it?
  8. Most asked Write a Playwright test that logs in and checks the dashboard, and explain how you keep it stable.
  9. Most asked Is 100% code coverage a good goal?
  10. What should end-to-end tests cover, and how do you keep them stable?
  11. What is test-driven development (TDD) and when is it useful?
  12. What is contract testing?
  13. How do you test code that depends on the current time or randomness?
  14. How do you test code that calls external HTTP services?
  15. How should you test frontend components?
  16. What is contract testing, and when would you use it?
  17. How do you test an API, and what would you automate?
  18. What is the test pyramid, and when does it not fit?
  19. How do you approach performance and load testing?
  20. A critical bug reached production even though all tests passed. What do you do?
  21. How do you manage test data for automated tests?
  22. What should block a release, and how do you report quality to stakeholders?
  23. What is mutation testing, and what does it tell you that code coverage doesn't?
  24. How do you test a feature behind a feature flag?
  25. How do you integrate automated tests into a CI/CD pipeline?
  26. What is exploratory testing, and how do you do it well?
  27. Tell me about a time you improved a team's test automation.
  28. How should you manage test data?
  29. How do you test asynchronous code?
  30. What is property-based testing?
  31. What are snapshot tests, and what are their risks?
  32. How do you prevent regressions when fixing bugs?
  33. Where do performance tests fit in a test strategy?
  34. How do you include security testing in development?
  35. What are ephemeral (preview) environments and why use them?
  36. What is chaos engineering?
  37. How do you keep a large test suite fast?
  38. How do you add tests to legacy code that wasn't designed for testing?
  39. What should API tests verify?
  40. How do you test code behind feature flags?
  41. What are smoke tests?
  42. What is mutation testing?
  43. How do you test accessibility?

Behavioral & STAR Recommended 41

  1. Most asked Tell me about a time you worked with a difficult teammate.
  2. Most asked Describe a disagreement you had with a coworker and how you resolved it.
  3. Most asked Tell me about a time you disagreed with your manager's decision.
  4. Most asked Tell me about a time you failed at something important.
  5. Most asked Describe a mistake that had a significant impact and how you handled it.
  6. Most asked Tell me about a time you had to work with unclear or changing requirements.
  7. Most asked Tell me about a time you missed a deadline.
  8. Most asked Tell me about a time you received critical feedback and how you responded.
  9. Most asked Describe a project you owned from start to finish.
  10. Most asked Tell me about a time you had to juggle multiple competing deadlines.
  11. Tell me about a time you led a project without formal authority.
  12. Tell me about a time you took responsibility for a team failure.
  13. Describe a time you had to collaborate with someone whose working style was very different from yours.
  14. Tell me about a successful project you completed as part of a team.
  15. Tell me about a time you helped a struggling teammate.
  16. Describe a time you had to push back on a stakeholder's request.
  17. Describe a time you had to deliver unwelcome feedback to a peer.
  18. Describe a time you had to motivate a team through a difficult period.
  19. Tell me about a decision you made that was unpopular with your team.
  20. Tell me about a time you had to make a decision with incomplete information as a leader.
  21. Tell me about a project that didn't go as planned.
  22. Tell me about a time you went above and beyond your job description.
  23. Describe a time you identified a problem no one had asked you to solve.
  24. Describe a situation where you had to make a decision without all the information you wanted.
  25. Tell me about a time priorities shifted midway through a project.
  26. Describe how you decide what to work on when everything feels urgent.
  27. Tell me about a time you helped a colleague grow their skills.
  28. Tell me about a time you received feedback that was hard to hear.
  29. Describe a time you had to rely on a team member you didn't fully trust yet.
  30. Tell me about a conflict between two people on your team and how you handled it.
  31. Describe a time you delegated an important task.
  32. Tell me about a time you had to say no to your manager.
  33. Describe how you handle working on something without a clear owner.
  34. Tell me about a time you had to say no to a request to protect a deadline.
  35. Describe a time you had to deprioritize something important.
  36. Describe your approach to onboarding a new team member.
  37. Tell me about a time you gave someone feedback that changed their behavior.
  38. Describe a time you learned something valuable from someone more junior than you.
  39. Describe how you typically respond to criticism.
  40. Tell me about a time you gave feedback that was poorly received.
  41. Describe a time feedback from a peer changed how you approached your work.

Was this page helpful?

Report a mistake