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
- Most asked Explain React concept: JSX.
- Most asked Explain React concept: props.
- Most asked Explain React concept: state.
- Most asked Explain React concept: unidirectional data flow.
- Most asked Explain React concept: keys in lists.
- Most asked Explain React concept: controlled vs uncontrolled inputs.
- Most asked Explain React concept: lifting state up.
- Most asked What does `useState` do and when should you use it?
- Most asked What does `useEffect` do and when should you use it?
- Most asked What does `useContext` do and when should you use it?
- Most asked What does `useRef` do and when should you use it?
- Most asked What does `custom hooks` do and when should you use it?
- Most asked What does `rules of hooks` do and when should you use it?
- Most asked What are the most important changes in React 19?
- 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?
- Most asked Write a custom React hook that debounces a value, and use it to search an API without race conditions.
- Most asked Explain React concept: reconciliation.
- Most asked What does `useMemo` do and when should you use it?
- Most asked What does `useCallback` do and when should you use it?
- Most asked React performance: React.memo?
- Most asked What is concurrent rendering in React?
- Most asked What are the pitfalls of fetching data in `useEffect`, and how do you avoid race conditions?
- Most asked Why must React state be updated immutably, and how do you update nested state?
- Most asked When do you NOT need `useEffect`?
- Explain React concept: components.
- What does `effect dependency mistakes` do and when should you use it?
- What does `cleanup in effects` do and when should you use it?
- Discuss testing-library in React applications.
- Discuss accessibility (a11y) in React applications.
- How do Actions and `useActionState` work in React 19?
- Explain React concept: React elements vs components.
- Explain React concept: composition vs inheritance.
- Explain React concept: derived state anti-pattern.
- Explain React concept: pure components.
- Explain React concept: error boundaries.
- Explain React concept: Suspense.
- Explain React concept: lazy / code splitting.
- What does `useReducer` do and when should you use it?
- What does `useTransition` do and when should you use it?
- React performance: virtualization?
- React performance: profiling?
- Discuss React Router in React applications.
- Discuss Redux vs Context in React applications.
- Discuss TanStack Query in React applications.
- Discuss Vitest/Jest in React applications.
- Discuss Next.js in React applications.
- Discuss forms in React applications.
- Discuss auth patterns in React applications.
- What is `useFormStatus` and where must it be used?
- How does `useOptimistic` implement optimistic UI?
- What does the `use()` API do?
- How did refs change in React 19?
- What is the React Compiler and how does it affect `useMemo`/`useCallback`?
- How do you choose between Context, Zustand, Redux Toolkit and server-state libraries?
- Why can React Context cause performance problems, and how do you mitigate them?
- How does TanStack Query manage server state?
- What is the compound components pattern?
- What makes a well-designed custom hook?
- How do you build robust forms in React?
- What are stale closures in React hooks and how do you fix them?
- How do server-side rendering and hydration work in React?
- Which accessibility practices matter most in React apps?
- How should React components be tested?
- What happens in the browser from navigation until a React page shows its data, and how do you avoid request waterfalls?
- Design a component library that several product teams will share.
- Users report that a React app's memory keeps growing the longer they keep it open. How do you investigate?
- Explain React concept: fragments.
- Explain React concept: portals.
- Explain React concept: Strict Mode.
- Explain React concept: Server Components (RSC).
- What does `useLayoutEffect` do and when should you use it?
- What does `useId` do and when should you use it?
- What does `useDeferredValue` do and when should you use it?
- React performance: avoid inline object props?
- React performance: key remounting?
- React performance: batching?
- React performance: concurrent features?
- React performance: bundle analysis?
- Discuss CSS modules / Tailwind in React applications.
- How does React 19 handle `<title>`, `<meta>` and stylesheets rendered in components?
- What resource preloading APIs does React DOM provide?
- What is the `<Activity>` component (React 19.2)?
- What problem does `useEffectEvent` (React 19.2) solve?
- What is `useSyncExternalStore` for?
- How do render props and higher-order components compare with custom hooks?
- How can you use the `key` prop to reset a component's state?
- How does React's event system work?
- How do you build an accessible modal dialog in React?
- How do XSS risks show up in React apps?
- Why did the React ecosystem move from Create React App to Vite and frameworks?
- How do error boundaries interact with async errors and event handlers?
- When would you use `useImperativeHandle`?
- How do you render very large lists efficiently?
- How do you find performance problems in a React app?
- How do you code-split a React app?
- What are the trade-offs between Tailwind, CSS Modules and CSS-in-JS in React?
- How do you build and maintain a React design system?
- How do you internationalize a React app?
- How should a React SPA handle authentication tokens securely?
- How do you add performant animations in React?
- What are micro-frontends and what are their trade-offs in React?
- How do class component lifecycle methods map to hooks?
- What breaking changes should you check when upgrading to React 19?
- In an RSC app, how do you decide what should be a Client Component?
- What is `useInsertionEffect` for?
- How does automatic batching work in React 18+?
- What is the difference between state and props in React?
- How does useEffect work in functional React components?
TypeScript Developer Core 101
- Most asked What is TypeScript and what problems does it solve?
- Most asked Explain `any`, `unknown` and `never`.
- Most asked What are the differences between `interface` and `type` aliases?
- Most asked What is structural typing in TypeScript?
- Most asked What is type narrowing and what techniques does TypeScript support?
- Most asked What are discriminated unions and why are they powerful?
- Most asked What are generics and how do constraints work?
- Most asked Which built-in utility types do you use most, and what do they do?
- Most asked What are mapped types? Show how `Partial` or `Readonly` could be implemented.
- Most asked Explain conditional types and the `infer` keyword.
- Most asked What does the `satisfies` operator do and how does it differ from a type annotation?
- Most asked What does `as const` do?
- Most asked Should you use enums or union types in TypeScript?
- Most asked Which `tsconfig` strictness options matter and what do they catch?
- Most asked How do function overloads work in TypeScript and when are they better than unions?
- Most asked Why do you still need runtime validation in TypeScript, and how do libraries like Zod help?
- Most asked Explain `keyof`, `typeof` (in type position) and indexed access types.
- Most asked What are type assertions (`as`) and the non-null assertion (`!`), and why should you use them sparingly?
- Most asked What are intersection types and how do they differ from interface extension?
- Most asked What are union types and how do you work with them safely?
- How do you type React component props, children and events in TypeScript?
- What are template literal types?
- What are covariance and contravariance in TypeScript function types?
- What are declaration files (`.d.ts`) and how do you type a JavaScript library without types?
- How do you type hooks like `useState`, `useReducer`, `useRef` and context?
- How do you write a generic React component (e.g., a typed List or Select)?
- How do module systems (ESM vs CommonJS) interact with TypeScript settings?
- What are `import type`, `isolatedModules` and `verbatimModuleSyntax`?
- How do `tsc`, esbuild, SWC and Babel differ for TypeScript builds?
- How would you migrate a large JavaScript codebase to TypeScript?
- How does type inference work in TypeScript, and when should you annotate explicitly?
- What's the difference between an optional property (`x?: T`) and `x: T | undefined`?
- How do optional chaining (`?.`) and nullish coalescing (`??`) work with types?
- Explain `void` as a return type and why a callback typed `() => void` can return a value.
- Write a TypeScript function that safely parses unknown JSON into a typed object.
- How do you model immutability in TypeScript?
- How do TypeScript access modifiers compare with JavaScript private fields?
- When would you use an abstract class versus an interface in TypeScript?
- What are index signatures and how do they relate to `Record`?
- How are tuples typed in TypeScript, including labeled and variadic tuples?
- Can Node.js run TypeScript directly?
- How do path aliases (`@/components`) work, and what's the common pitfall?
- What are project references and when do you use them?
- What are excess property checks and when do they apply?
- Why does `Object.keys(obj)` return `string[]` instead of `(keyof T)[]`?
- What's the difference between `// @ts-ignore` and `// @ts-expect-error`?
- What changed with decorators in TypeScript 5.0?
- What are `using` declarations (TypeScript 5.2)?
- What are `const` type parameters (TS 5.0) and `NoInfer` (TS 5.4)?
- How do you type JSON values or recursive structures?
- How should you handle errors in `catch` blocks in TypeScript?
- Why does `Omit` behave unexpectedly on union types, and how do you fix it?
- How do you test types themselves?
- How do you type an Express/Node API in TypeScript?
- How can you share types between frontend and backend?
- How does TypeScript type `this`?
- How do you keep TypeScript type-checking fast in large projects?
- What's the difference between `object`, `Object` and `{}` types?
- Why should you avoid the `Function` type?
- What is `strictPropertyInitialization` and the definite assignment assertion (`!:`)?
- What do `Parameters`, `ConstructorParameters`, `InstanceType` and `ReturnType` give you?
- Explain `Exclude`, `Extract` and `NonNullable`.
- How would you implement a `DeepPartial<T>` type?
- How do you type async functions and promises?
- How are generators and iterators typed?
- Should you use namespaces in modern TypeScript?
- How do you type environment variables safely?
- How do you publish a TypeScript library with correct types for ESM and CommonJS consumers?
- Can you get TypeScript checking in plain JavaScript files?
- What does typescript-eslint add beyond the compiler?
- Why are classes with private members compared nominally?
- Can you pass a `readonly string[]` to a function expecting `string[]`?
- How would you type an event emitter so event names and payloads are checked?
- How do you write a type-safe fetch wrapper?
- What is the Result pattern in TypeScript and when is it preferable to exceptions?
- How do you implement mixins in TypeScript?
- How can generics make a builder pattern type-safe (e.g., tracking which fields are set)?
- What is a `unique symbol` type?
- What do the `target` and `lib` compiler options control?
- What are generic defaults and when are they useful?
- What are phantom types and how do they relate to branding?
- How can `Record<Union, T>` catch bugs when a union grows?
- How are getters, setters and the `accessor` keyword typed?
- How do you add types to globals like `window`?
- What is contextual typing?
- What is literal type widening?
- What's the difference between `const`, `readonly` and `as const`?
- How do you type Maps, Sets and WeakMaps?
- Why combine `as const` with `satisfies`?
- How does the `in` operator narrow union types?
- How would you type a generic repository class?
- How do you safely use data from `JSON.parse` without a schema library?
- What's the difference between `string[]`, `Array<string>` and `[string]`?
- When should a function accept a union parameter versus using overloads?
- What is the native TypeScript compiler port (TypeScript 7 / tsgo)?
- Why can a function with fewer parameters be assigned to a function type with more parameters?
- How do you make a class implement an interface, and what does `implements` actually check?
- What do you do when TypeScript infers a generic type parameter too broadly or as `unknown`?
- How do you safely work with DOM elements in TypeScript?
- What should teams expect from TypeScript 6.0?
- What TypeScript practices do you look for in code reviews?
HTML & CSS Core 45
- Most asked What is HTML?
- Most asked What is HTML5, and how is it different from HTML 4?
- Most asked What is semantic HTML, and why does it matter?
- Most asked What is the alt attribute for, and what makes good alt text?
- Most asked What input types and validation attributes did HTML5 add?
- Most asked What is the difference between script, script async and script defer?
- Most asked Compare localStorage, sessionStorage and cookies.
- Most asked What is ARIA, and what is the first rule of ARIA?
- Most asked What does <!DOCTYPE html> do?
- Why must every form field have a label, and how do you associate one?
- Why isn't client-side validation enough?
- Which head tags matter for SEO and social sharing?
- How do responsive images work with srcset, sizes and picture?
- Why set width and height on images, and when should you use loading="lazy"?
- Why use button and a instead of a clickable div?
- How do you safely display user-generated content in HTML?
- Your page's Cumulative Layout Shift (CLS) score is poor. How do you find and fix the shifts?
- What is the difference between a tag, an element and an attribute?
- What goes in the head of an HTML document, and what goes in the body?
- What is the difference between block and inline elements?
- When should you use id and when class?
- What is the difference between article, section and div?
- How should headings be structured on a page?
- What is the difference between absolute and relative URLs?
- How do you make an HTML table accessible, and when shouldn't you use a table?
- What is the difference between GET and POST in an HTML form?
- What do the autocomplete and inputmode attributes do?
- What does the viewport meta tag do?
- What is structured data (JSON-LD), and why add it?
- What is the DOM, and how does the browser build it from HTML?
- What are data-* attributes for?
- What is the difference between canvas and SVG?
- How do you add video with captions in HTML5?
- What do the dialog element and the popover attribute provide?
- What does the sandbox attribute on an iframe do?
- What are resource hints such as preload and preconnect?
- What is the difference between strong and b, and between em and i?
- When do you use ul, ol and dl?
- Why should you declare the character encoding, and how?
- What are HTML entities and when do you need them?
- What is the details element used for?
- What is the template element?
- Is target="_blank" on links a security risk?
- Who maintains HTML today, and what is the Living Standard?
- What are web components?
Next.js Developer Core 103
- Most asked What is Next.js and what problems does it solve on top of React?
- Most asked What are the differences between the App Router and the Pages Router?
- Most asked What is the difference between Server Components and Client Components?
- Most asked Explain the App Router file conventions: page, layout, loading, error, not-found, template and route.
- Most asked How does data fetching work in the App Router?
- Most asked How did caching defaults change in Next.js 15?
- Most asked Explain SSR, SSG, ISR and CSR in Next.js.
- Most asked What are Server Actions and how do you use them for mutations?
- Most asked What happens, step by step, when a request reaches a Next.js App Router application?
- Most asked How do dynamic routes, catch-all and optional catch-all segments work?
- Most asked How does streaming with Suspense work in Next.js?
- Most asked What are Route Handlers and when should you use them instead of Server Actions?
- Most asked What is Next.js middleware (renamed `proxy` in Next.js 16) and what should it be used for?
- Most asked How do `revalidatePath` and `revalidateTag` work?
- Most asked How do you manage metadata and SEO in the App Router?
- Most asked What does `next/image` do?
- Most asked How do environment variables work in Next.js, and what is exposed to the browser?
- Most asked How do you implement authentication in a Next.js App Router app?
- Most asked What causes hydration mismatch errors and how do you fix them?
- Most asked How do you optimize Core Web Vitals in a Next.js app?
- Most asked How do `getServerSideProps`, `getStaticProps` and `getStaticPaths` work in the Pages Router?
- How can a Client Component render Server Component content?
- What are route groups, parallel routes and intercepting routes?
- Describe the caching layers in the Next.js App Router.
- How does navigation work with `<Link>` and `useRouter` in the App Router?
- What are `usePathname`, `useSearchParams` and `useParams`, and what's the Suspense caveat?
- How does error handling work in the App Router?
- What are the options for deploying a Next.js application?
- How do you build forms with Server Actions, validation and pending states?
- What is a Data Access Layer (DAL) and why is it recommended in Next.js?
- What security considerations apply specifically to Server Actions and Server Components?
- What is the RSC payload?
- Which props can be passed from a Server Component to a Client Component?
- A Next.js page shows a hydration mismatch error. What causes it, and how do you fix it?
- Design the caching strategy for a Next.js e-commerce site with product pages, a cart and personalised recommendations.
- What does `next/font` provide?
- What's the difference between the Node.js and Edge runtimes in Next.js?
- How do you load third-party scripts efficiently in Next.js?
- How does `next/dynamic` work and when do you use it?
- What is `useOptimistic` and how does it work with Server Actions?
- How do you design good loading states in the App Router?
- Why don't layouts re-render on navigation, and what are the implications?
- How do you implement internationalization in the App Router?
- How do you test a Next.js application?
- What is Turbopack?
- How do redirects, rewrites and headers work in `next.config`?
- How do you add a Content Security Policy to a Next.js app?
- What is Partial Prerendering (PPR) / Cache Components?
- What does the `'use cache'` directive do?
- What's the difference between React's `cache()` and Next.js's `unstable_cache`?
- What is the `after()` API in Next.js 15?
- How do you add observability to a Next.js app?
- How do you access a database from Next.js safely and efficiently?
- How does state management change with Server Components?
- What styling options work with the App Router and Server Components?
- How do API Routes in the Pages Router differ from Route Handlers?
- How would you migrate a large Next.js app from the Pages Router to the App Router?
- How does React 19's `use()` hook help with data in Next.js?
- How are static assets served in Next.js?
- What does `generateStaticParams` do and what is `dynamicParams`?
- What are route segment config options?
- How do you read and set cookies and headers in the App Router?
- How do `redirect()`, `permanentRedirect()` and `notFound()` work?
- Why does `next/image` require `remotePatterns` for external images?
- When does `<Link>` prefetch, and how can you control it?
- How do you avoid request waterfalls in Server Components?
- How do you add real-time features to a Next.js app?
- When would you use a custom Node server with Next.js, and what do you lose?
- How do you structure a Next.js app in a monorepo?
- How does Next.js support TypeScript?
- What does Next.js do for accessibility, and what remains your job?
- How should errors in Server Actions be handled for good UX?
- What is `output: 'export'` and what are its limitations?
- How do you find and reduce large client bundles in Next.js?
- What is the `next/form` component?
- How would you build a multi-tenant SaaS on Next.js with custom domains or subdomains?
- What do the `server-only` and `client-only` packages do?
- What breaking changes should you expect when upgrading to Next.js 15?
- What are notable changes in Next.js 16?
- How does Next.js compare with Remix/React Router v7 and Astro?
- What is Draft Mode and how is it used with a headless CMS?
- How do you generate dynamic Open Graph images in Next.js?
- What is required in the root layout of an App Router app?
- When would you use `template.tsx` instead of `layout.tsx`?
- How do you colocate non-route files inside the `app` directory?
- How do you read query parameters in a Server Component page?
- How would you implement pagination and filters in the App Router?
- How do you implement a URL-addressable modal in the App Router?
- How do you make a Route Handler's GET response static or cached?
- How do you stream a response (e.g., AI tokens) from a Route Handler?
- Compare Auth.js, Clerk and rolling your own authentication in Next.js.
- How should you handle third-party webhooks in Next.js?
- How does image optimization work when self-hosting Next.js?
- How can you preload critical resources in the App Router?
- How do you call a Server Action from an event handler instead of a form?
- How do you rate limit Server Actions or Route Handlers in Next.js?
- What is the React Compiler and how does it relate to Next.js?
- How do you debug unexpected stale data in a Next.js App Router app?
- What do the symbols in `next build` output (○, ●, ƒ) mean?
- How do you handle runtime configuration that changes per environment without rebuilding?
- How does Next.js protect against XSS and where can you still introduce it?
- How do you investigate a production-only error that shows 'An error occurred in the Server Components render'?
- What should you consider for focus management during client-side navigation in Next.js?
Vue.js Developer Recommended 59
- Most asked Options API or Composition API: what is the difference, and which would you use?
- Most asked ref or reactive: what is the difference, and when do you use each?
- Most asked How does Vue 3's reactivity system work, and how does it differ from Vue 2's?
- Most asked computed, watch or watchEffect: when do you use each?
- Most asked Why does v-for need a key, and why should it not be the index?
- Most asked How do props work, and what is one-way data flow?
- Most asked What are composables, and why did they replace mixins?
- Most asked Pinia or Vuex: what is the difference, and why is Pinia now recommended?
- Most asked How do you use Vue Router: dynamic routes, nested routes and navigation guards?
- Most asked How do you optimise the performance of a Vue application?
- Most asked What security risks should Vue developers watch for?
- Most asked Describe the Vue component lifecycle hooks and what you use them for.
- Most asked v-if or v-show: what is the difference?
- Most asked How does v-model work on components, and what does defineModel do?
- Most asked Explain default, named and scoped slots.
- Most asked What are template refs, and why do you need nextTick?
- Most asked Why does destructuring sometimes lose reactivity in Vue, and how do you avoid it?
- Most asked What are the main breaking changes when migrating from Vue 2 to Vue 3?
- Most asked How does server-side rendering work with Vue, and what does Nuxt add?
- Most asked How do you test Vue components?
- Most asked Vue or React: how would you compare them?
- Most asked How does Vue's virtual DOM and compiler make updates efficient?
- What does <script setup> give you?
- How do you fetch data in Vue components robustly?
- What is Vue.js, and what does 'progressive framework' mean?
- Why should you not use v-if and v-for on the same element?
- How do components emit events, and how do you declare them?
- What are provide and inject, and when should you use them?
- How do you use a Pinia store correctly in components, and what is storeToRefs for?
- How do you lazy-load routes and code-split a Vue application?
- What are shallowRef, shallowReactive and markRaw for?
- What causes hydration mismatches, and how do you fix them?
- How do you make a Vue single-page application SEO-friendly?
- How do you use TypeScript with Vue?
- How do you handle forms and validation in Vue?
- How do you handle errors in a Vue application?
- Can you share state without Pinia, and what is the SSR pitfall?
- How do sibling components communicate?
- A page renders a list of 20,000 rows and is slow. What do you do?
- How do memory leaks happen in Vue apps, and how do you prevent them?
- How would you structure a large Vue application?
- What router history modes exist, and what server configuration does each need?
- What are async components and Suspense?
- What is Teleport used for?
- What does KeepAlive do?
- When would you write a custom directive?
- What is a Vue plugin, and how do you write one?
- What are the pitfalls of deep watchers?
- What event modifiers does Vue provide?
- What is a writable computed, and when is it useful?
- What are fragments and attribute fallthrough in Vue 3?
- What role does Vite play in Vue development?
- What does defineExpose do?
- How can changing a component's key help, and when is it the wrong tool?
- What does the `.value` unwrapping rule look like in templates, reactive objects and arrays?
- What are Vue's official style-guide rules you consider essential?
- How do transitions work in Vue?
- How do class and style bindings work?
- What does v-memo do, and when would you use v-once?
Tailwind CSS Recommended 24
- Most asked What is Tailwind CSS and what does 'utility-first' mean?
- Most asked How does Tailwind decide which CSS to generate?
- Most asked Why doesn't className={`bg-${color}-500`} work, and what should you do instead?
- Most asked Explain Tailwind's responsive design approach.
- Most asked How do you customize Tailwind's design tokens in v4?
- Most asked How does Tailwind compare with Bootstrap or writing your own CSS?
- Most asked How do you set up Tailwind CSS v4 in a project?
- Most asked How do variants like hover:, focus-visible:, group- and peer- work?
- Most asked How do you implement dark mode with Tailwind?
- Most asked How do you avoid repeating long class lists?
- Most asked What changed in Tailwind CSS v4 compared with v3?
- Most asked How do you make Tailwind interfaces accessible?
- Most asked What's the difference between flex and grid in Tailwind, and when do you use each?
- If an element has class="p-4 p-2", which wins? How do you handle overrides in components?
- What are container queries in Tailwind and when do you use them?
- What are arbitrary values and when should you avoid them?
- What is Preflight and how do you style rich text from a CMS?
- How do you fix horizontal scrolling on mobile in a Tailwind layout?
- Why might a dropdown with z-50 appear behind another element?
- How do you keep a Tailwind stylesheet small in production?
- How would you build a design system on Tailwind for several apps?
- How do opacity modifiers and the colour palette work in v4?
- What are good practices for writing Tailwind in a team?
- How do you style forms in Tailwind?
Web Security & WAF Recommended 32
- Most asked What is the OWASP Top 10 and which risks does it currently highlight?
- Most asked What is Cross-Site Scripting (XSS) and how do you prevent it?
- Most asked What is SQL injection and how do you prevent it?
- Most asked What is CSRF and how do you defend against it?
- Most asked What is a Web Application Firewall (WAF), and what can and can't it do?
- Most asked How do rate-limiting algorithms work (fixed window, sliding window, token bucket)?
- Most asked What is SSRF (Server-Side Request Forgery) and how do you prevent it?
- How do you protect a web application from DDoS and abusive traffic?
- What is Content-Security-Policy and how do you roll it out?
- Which HTTP security headers should every web app send?
- What is CORS, and what are common CORS misconfigurations?
- How do you manage vulnerable and outdated dependencies?
- What are common security misconfigurations in web deployments?
- How do you handle file uploads securely?
- How should applications manage secrets?
- What are insecure deserialization vulnerabilities?
- What is clickjacking and how do you prevent it?
- What are best practices for TLS/HTTPS?
- How do you protect sign-up, login and checkout flows from bots?
- What is threat modeling and how do you run one?
- What is an open redirect vulnerability?
- What is command injection and how do you prevent it?
- What is path traversal and how do you prevent it?
- Why are security logging and monitoring failures in the OWASP Top 10?
- What are software and data integrity failures?
- What are common cryptographic failures?
- What new security risks do LLM-powered features introduce?
- What does the OWASP API Security Top 10 add beyond the web Top 10?
- How do cookie prefixes like __Host- and __Secure- improve security?
- How do you build security into the development lifecycle?
- What is XXE (XML External Entity) injection?
- What is subdomain takeover?
Performance & Scalability Recommended 30
- Most asked What is the difference between vertical and horizontal scaling?
- Most asked What's the difference between latency and throughput?
- Most asked How do you approach a performance problem methodically?
- Most asked How do load balancers work, and what algorithms do they use?
- Most asked Why are timeouts, retries and circuit breakers essential for performance and reliability?
- Most asked What are the most common database-related performance problems?
- Why should application servers be stateless, and where does state go?
- How does autoscaling work and what are its pitfalls?
- What are common concurrency bottlenecks in web applications?
- How does a CDN improve performance?
- When does asynchronous I/O improve performance, and when doesn't it?
- How can garbage collection affect application performance?
- What are Core Web Vitals and how do you improve them?
- How do you load test a system effectively?
- How would you scale a read-heavy system?
- How would you scale a write-heavy system?
- How do you reduce payload sizes in web applications?
- How do you do capacity planning?
- What is the 'chatty API' problem and how do you fix it?
- How can moving work to background jobs improve performance?
- Why does tail latency matter more as systems fan out?
- Why does connection reuse (keep-alive, pooling) matter for performance?
- How can serialization become a bottleneck?
- What is load shedding?
- What is graceful degradation?
- What changes when you scale to multiple regions?
- How can adding caches or indexes hurt performance?
- What are cold starts and how do you reduce them?
- What are common mistakes when benchmarking?
- How do algorithm and data structure choices affect backend performance?
Testing Recommended 43
- Most asked What is the test pyramid, and is it still relevant?
- Most asked What makes a good unit test?
- Most asked What's the difference between mocks, stubs, fakes and spies?
- Most asked How do you write reliable integration tests that use a database?
- Most asked What causes flaky tests and how do you fix them?
- Most asked How would you design a test strategy for a new web application?
- Most asked Your end-to-end test suite is flaky and takes an hour. How do you fix it?
- Most asked Write a Playwright test that logs in and checks the dashboard, and explain how you keep it stable.
- Most asked Is 100% code coverage a good goal?
- What should end-to-end tests cover, and how do you keep them stable?
- What is test-driven development (TDD) and when is it useful?
- What is contract testing?
- How do you test code that depends on the current time or randomness?
- How do you test code that calls external HTTP services?
- How should you test frontend components?
- What is contract testing, and when would you use it?
- How do you test an API, and what would you automate?
- What is the test pyramid, and when does it not fit?
- How do you approach performance and load testing?
- A critical bug reached production even though all tests passed. What do you do?
- How do you manage test data for automated tests?
- What should block a release, and how do you report quality to stakeholders?
- What is mutation testing, and what does it tell you that code coverage doesn't?
- How do you test a feature behind a feature flag?
- How do you integrate automated tests into a CI/CD pipeline?
- What is exploratory testing, and how do you do it well?
- Tell me about a time you improved a team's test automation.
- How should you manage test data?
- How do you test asynchronous code?
- What is property-based testing?
- What are snapshot tests, and what are their risks?
- How do you prevent regressions when fixing bugs?
- Where do performance tests fit in a test strategy?
- How do you include security testing in development?
- What are ephemeral (preview) environments and why use them?
- What is chaos engineering?
- How do you keep a large test suite fast?
- How do you add tests to legacy code that wasn't designed for testing?
- What should API tests verify?
- How do you test code behind feature flags?
- What are smoke tests?
- What is mutation testing?
- How do you test accessibility?
Behavioral & STAR Recommended 41
- Most asked Tell me about a time you worked with a difficult teammate.
- Most asked Describe a disagreement you had with a coworker and how you resolved it.
- Most asked Tell me about a time you disagreed with your manager's decision.
- Most asked Tell me about a time you failed at something important.
- Most asked Describe a mistake that had a significant impact and how you handled it.
- Most asked Tell me about a time you had to work with unclear or changing requirements.
- Most asked Tell me about a time you missed a deadline.
- Most asked Tell me about a time you received critical feedback and how you responded.
- Most asked Describe a project you owned from start to finish.
- Most asked Tell me about a time you had to juggle multiple competing deadlines.
- Tell me about a time you led a project without formal authority.
- Tell me about a time you took responsibility for a team failure.
- Describe a time you had to collaborate with someone whose working style was very different from yours.
- Tell me about a successful project you completed as part of a team.
- Tell me about a time you helped a struggling teammate.
- Describe a time you had to push back on a stakeholder's request.
- Describe a time you had to deliver unwelcome feedback to a peer.
- Describe a time you had to motivate a team through a difficult period.
- Tell me about a decision you made that was unpopular with your team.
- Tell me about a time you had to make a decision with incomplete information as a leader.
- Tell me about a project that didn't go as planned.
- Tell me about a time you went above and beyond your job description.
- Describe a time you identified a problem no one had asked you to solve.
- Describe a situation where you had to make a decision without all the information you wanted.
- Tell me about a time priorities shifted midway through a project.
- Describe how you decide what to work on when everything feels urgent.
- Tell me about a time you helped a colleague grow their skills.
- Tell me about a time you received feedback that was hard to hear.
- Describe a time you had to rely on a team member you didn't fully trust yet.
- Tell me about a conflict between two people on your team and how you handled it.
- Describe a time you delegated an important task.
- Tell me about a time you had to say no to your manager.
- Describe how you handle working on something without a clear owner.
- Tell me about a time you had to say no to a request to protect a deadline.
- Describe a time you had to deprioritize something important.
- Describe your approach to onboarding a new team member.
- Tell me about a time you gave someone feedback that changed their behavior.
- Describe a time you learned something valuable from someone more junior than you.
- Describe how you typically respond to criticism.
- Tell me about a time you gave feedback that was poorly received.
- Describe a time feedback from a peer changed how you approached your work.