Web app developer interview questions and answers

Web app developer interview questions focus on building products people log into and use all day in the browser: managing state and server data, sessions and permissions, long forms, real-time updates, offline behavior, rendering choices and shipping changes without breaking active users. Expect a practical coding task, a feature design discussion and questions about apps you have run in production. Interviewers look for someone who thinks about the user's whole session, not just the first page load.

By Published 8 min read

What a web app developer does that a site builder does not

A website is mostly read. A web application is used: people sign in, edit records, upload files, collaborate and leave tabs open for days. That changes the job. A web app developer spends less time on page templates and more on data flow, permissions, error states and the edge cases of long sessions, such as an expired token in the middle of a form or two people editing the same record. The title is used at SaaS companies, agencies that build client portals, and internal tools teams, and usually means frontend-heavy work with enough backend knowledge to design the API contract.

  • Data modeling in the client: a clear rule for where each piece of state lives and who owns it.
  • Security by default: sessions, CSRF, XSS and authorization checks on the server, not only hidden buttons.
  • Resilience: loading, empty, error and retry states designed, not discovered by users.
  • Shipping safely: small releases, feature flags, migrations that work with old and new clients at once.
  • Product sense: you ask what the user is trying to finish before building the screen.

How web app developer interviews usually run

  1. Recruiter screenFrameworks used, product types, team size, and how much backend work you did yourself.
  2. Practical coding taskBuild a small feature live or as a take-home: a filterable table, a multi-step form, a search box hitting an API. Reviewers read your states and structure, not only whether it works.
  3. Feature or app design roundDesign something like a shared task board, a notifications center or an approval flow: data model, API shape, client state, real-time and failure cases.
  4. Code review or debuggingSome teams hand you a pull request or a buggy component and ask what you would change and why.
  5. Behavioral roundProduction incidents, disagreements with designers or product managers, and how you balance speed against quality.

State and data questions

Where data lives and how it moves through the app
QuestionWhat it testsWhat a strong answer shows
How do you decide where a piece of state should live?ArchitectureServer data in a query cache, shareable view state (filters, tabs, page) in the URL, form drafts locally, and only truly global UI state in a store.
Why put filters and pagination in the URL?UX and sharingRefresh, back button, bookmarks and shared links all work, and the screen becomes a function of the address.
What problems does a server-state library solve?Data fetchingCaching, deduplication, background refresh, retries and invalidation after a mutation, which hand-written effects tend to get wrong.
What is an optimistic update, and when is it a bad idea?UX trade-offsShow the result before the server confirms, roll back on failure. Avoid it for payments, irreversible actions or when conflicts are likely.
A user types fast in a search box and sees results for an older query. Why?Race conditionsResponses arrive out of order. Cancel older requests or ignore any response that is not for the latest term.
How do you handle a list of 50,000 rows?Scale in the browserPaginate or load on scroll from the server, virtualize rendering, and keep sorting and filtering on the server when data is large.
Two people edit the same record. What happens?ConcurrencyPick a policy: version numbers with a conflict message, field-level merge, or real-time co-editing for the few screens that need it.
Where data lives and how it moves through the app. Scroll sideways on a small screen.
function createSearch(fetchResults, render) {
  let controller = null;
  return async function search(term) {
    controller?.abort();                 // cancel the request still in flight
    controller = new AbortController();
    const { signal } = controller;
    try {
      const results = await fetchResults(term, signal);
      if (!signal.aborted) render(term, results);
    } catch (err) {
      if (err.name !== "AbortError") throw err;
    }
  };
}

// In the browser, fetchResults would be:
// (term, signal) => fetch(`/api/search?q=${encodeURIComponent(term)}`, { signal }).then((r) => r.json())
Latest request wins: older searches are cancelled (run with Node)

Sessions, permissions and security questions

  • Cookie session or token in local storage? An HttpOnly, Secure, SameSite cookie keeps the credential out of reach of injected scripts. Tokens in local storage are readable by any script on the page, so an XSS bug becomes account theft.
  • How do you handle an access token that expires mid-session? Refresh it quietly with a refresh flow, queue requests made during the refresh, and if refresh fails, keep the user's unsaved work and send them to sign in.
  • Hiding a button is not access control. Explain. The server must check every request against the user's role and the record's owner or tenant. The UI only reflects those rules.
  • How do you keep one customer's data away from another in a multi-tenant app? Tenant ID from the session, never from the request body, enforced in every query or by database policies, with tests that try to cross tenants.
  • Where does XSS still happen in modern frameworks? Raw HTML insertion, user-controlled URLs in links, rich text editors and third-party scripts. Sanitize, use a content security policy and avoid the escape hatches.
  • What is CSRF and when do you still need protection? A forged request riding on the user's cookies. SameSite cookies reduce it; state-changing endpoints still deserve tokens or origin checks.
  • How should logout work across tabs? Invalidate the session on the server and broadcast to other tabs, for example with a storage event or BroadcastChannel, so no tab keeps acting as the user.

Forms, real-time and offline questions

Behavior users notice when it goes wrong
QuestionWhat it testsWhat a strong answer shows
How do you build a long multi-step form?Form designSchema-driven validation shared with the server where possible, autosave of drafts, clear errors next to fields, and the ability to go back without losing data.
Client validation or server validation?Trust boundariesBoth. Client checks are for speed and clarity; the server is the authority and returns field errors in a shape the form can show.
Polling, server-sent events or WebSockets for live updates?Real-time choicePolling is simple for slow-changing data, SSE suits one-way streams like notifications, WebSockets fit two-way and high-frequency updates. Plan reconnects and missed messages in every case.
What does a service worker let a web app do?PWA basicsIntercept requests to cache assets and data, work offline or on flaky networks, and receive push notifications where the browser and user permit.
How do you sync edits made offline?Offline designQueue changes locally with IDs, replay them when back online, and handle conflicts with the same policy as concurrent edits.
How do you prevent a double submit on a payment or order form?IdempotencyDisable the button while pending and, more importantly, send an idempotency key so the server treats retries as the same request.
Behavior users notice when it goes wrong. Scroll sideways on a small screen.

Rendering, performance and production questions

  • Client rendering, server rendering or static: which for a logged-in dashboard? Often client rendering behind a fast shell, since search engines do not index it and data is per user. Server rendering helps when first paint on slow devices matters or public pages share the code.
  • The app gets slower the longer a tab stays open. What do you check? Memory leaks from listeners, intervals and subscriptions not cleaned up, growing caches, and detached DOM nodes, using the browser's memory tools.
  • How do you keep the JavaScript bundle under control? Split by route, lazy load heavy editors and charts, audit dependencies, and set a budget that fails the build when exceeded.
  • How do you know about errors users hit in production? An error tracker with source maps, logs that carry a request ID shared with the backend, and alerts on new error types after a release.
  • How do you release a breaking API change when users have the app open? Make the server accept old and new shapes for a while, ship the client, then remove the old path. Prompt long-open tabs to refresh when a new version is out.
  • What are feature flags good for, and what is the cost? Gradual rollout, quick kill switches and testing in production. The cost is extra code paths, so remove flags once the rollout is done.
  • What do you test, and at which level? Unit tests for logic, component tests for tricky states, and a few end-to-end tests for sign-in, the main task and payment if there is one.
  • How do you make a complex app accessible? Semantic elements first, focus management in dialogs and route changes, announcements for async results, and keyboard support for custom widgets like grids and comboboxes.

Behavioral questions

  • Tell me about a production bug you caused. What users saw, how you found and fixed it, and the test or alert you added.
  • Describe a time you simplified a feature before building it. Show the conversation with design or product and the result for users.
  • When did you choose a boring technology over an exciting one? Explain the maintenance cost you avoided.
  • How do you handle a design that is hard to build accessibly? Raise it early, propose an alternative, and agree on it before the sprint, not after.

Fictional example

Answering "Users lose their work when the session expires"
Interviewer
Support says users filling in a long report get logged out and lose everything. How would you fix it?
Candidate
I would treat it as two problems: the expiry and the data loss. For the data, I would autosave the draft locally on each change and to the server every few seconds when online, so a crash or logout loses almost nothing. For the session, I would refresh the token quietly in the background while the user is active, and if refresh fails, show a sign-in dialog over the form instead of navigating away, then retry the save. In an illustrative project I am describing, that combination took the complaint away, and we added an end-to-end test that expires the session halfway through the form.

A two-week preparation plan

  • Days 1 to 3: build a small app with sign-in, a list, a detail page and an edit form against a mock API, including loading, empty and error states.
  • Days 4 and 5: add URL-driven filters, pagination and request cancellation; then test the back button and refresh.
  • Days 6 and 7: add a role that can view but not edit, enforced on the server, and write a test that tries to cheat.
  • Days 8 and 9: add live updates with SSE or WebSockets, including reconnect, then an offline draft that syncs later.
  • Days 10 and 11: run a performance and accessibility pass with browser tools and fix the top three findings.
  • Days 12 to 14: practice one app design question aloud each day and rehearse three production stories.

For HTML, CSS and content-site questions, see web developer interview questions. If the role adds wallets and smart contracts to the app, read web3 developer interview questions, and for the desktop side of the same product, Windows developer interview questions. If the hiring manager is a product development leader, VP of product development interview questions show what that person is measured on.

App design rounds ask you to talk through data flow, failure cases and trade-offs in order, and hearing yourself back is the fastest way to tighten that. Natively, an AI interview assistant for Mac and Windows, keeps a transcript of each mock interview on your computer for you to reread. In practice sessions it can suggest answers, help with a coding task, and read a bug or a component from a screenshot. With Pro or the free trial it uses the résumé and job description you add, and your session notes stay available to review.

Questions people ask

What questions are asked in a web app developer interview?

Where state should live, server data caching, race conditions, sessions and tokens, server-side permissions, multi-step forms, real-time updates, offline sync, rendering choices, error tracking and releasing while users are online.

How is a web app developer different from a web developer?

A web developer often builds content sites and pages. A web app developer builds logged-in tools people use for long sessions, so interviews lean on data flow, security and failure states.

What is the practical round in a web app developer interview?

Usually a small feature such as a filterable list, a search box against an API or a multi-step form, judged on structure and on loading, empty and error states.

How do I answer a web app design question?

Start with the user's task and the data model, then the API, client state, real-time needs and failure cases, and finish with how you would ship and measure it.

Where to go next

Practice with the same assistant you would use on a call: it listens, transcribes and suggests answers from your own resume and the job description.

Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.

Keep reading

Put it on your own machine.

A live-conversation assistant that runs locally. Your conversations stay on your machine.

macOS 12+ · Windows 10/11

© 2026 Natively AI Private Limited

Source-available under the Natively Personal Use Source License v1.0 · IP geolocation by DB-IP