PlacementPrep IndiaPowered by AcePrep
Frontend & WebBeginner • Intermediate • Advanced

Web Development Mock Interview

Full-stack web projects dominate Indian engineering resumes. Interviewers test whether you genuinely understand HTTP, authentication security, browser rendering, and architectural trade-offs beyond copy-pasting boilerplate.

Frequently Asked By:FlipkartRazorpayMeeshoZohoFreshworksCREDStartups

3-Level Web Dev Placement Syllabus

Beginner Tier
  • Semantic HTML5 & Accessibility (WCAG)
  • CSS Box Model, Flexbox & Grid
  • REST API Principles & Status Codes
  • Cookies vs LocalStorage vs SessionStorage
Intermediate Tier
  • CORS & Preflight Requests
  • JWT in HttpOnly Cookies vs Bearer Tokens
  • SSR vs SSG vs CSR (SEO & Performance)
  • Rate Limiting & Error Handling
Advanced Tier
  • Core Web Vitals (LCP, INP, CLS)
  • Caching Layers (Browser, CDN, Redis)
  • WebSockets & Circuit Breakers
  • OWASP Top 10 & CSRF Mitigation
INTERACTIVE BROWSER DEMO • ZERO INSTALL

Try a Spoken or Typed Mock Interview Right Now

Web DevIntermediateQ1 / 3

“Compare Client-Side Rendering (SPA like React Vite) with Server-Side Rendering / Static Generation (like Next.js). When does each make sense?”

Focus log (info only): 0 blurs • 0 pastes

High-Frequency Spoken Web Dev Questions & Rubric Criteria

Study how interviewers probe beyond definitions with adaptive follow-ups and what AcePrep's 0–10 scoring rubric checks in your spoken explanation.

QUESTION 01Intermediate

Compare Client-Side Rendering (SPA like React Vite) with Server-Side Rendering / Static Generation (like Next.js). When does each make sense?

Adaptive Follow-Up Probe

If an authenticated app uses a React SPA, how can a team still capture organic Google search traffic effectively?

What the Rubric Checks

  • • Explains HTML delivery, Time to First Byte, hydration, and crawler indexing
  • • Connects SSG/SSR to public SEO landing pages and CSR to authenticated live apps
  • • Proposes splitting public SSG marketing/content site from authenticated SPA

High-Scoring Answer Blueprint

SPAs ship a minimal HTML shell and render in JS, which is snappy for authenticated dashboards and live tools but weakens SEO and initial paint. SSG/SSR sends pre-rendered HTML immediately for fast LCP and full search-engine indexing — ideal for public content hubs like placementprepind.online.

QUESTION 02Intermediate

Why is storing a JWT inside an HttpOnly cookie safer than localStorage, and what new security risk do you need to defend against when using cookies?

Adaptive Follow-Up Probe

Some mobile browsers like Safari restrict third-party cookies across separate frontend and API domains. How would you architect authentication to stay reliable?

What the Rubric Checks

  • • Contrasts XSS exposure in localStorage vs CSRF exposure in cookies
  • • Mentions SameSite, Secure flags, and CSRF tokens
  • • Discusses dual-token / silent refresh fallback patterns

High-Scoring Answer Blueprint

localStorage is readable by any injected script (XSS risk), whereas HttpOnly cookies are inaccessible to JavaScript. However, cookies are auto-sent on cross-site requests, introducing CSRF risk — mitigated with SameSite=Lax/Strict and CSRF tokens. Cross-origin cookie limits can be handled via a same-site proxy or dual-token refresh fallback.

QUESTION 03Advanced

Your Node.js backend calls an external LLM API that occasionally times out or hits rate limits. How would you design resilience so users aren't stuck on a spinner?

Adaptive Follow-Up Probe

Explain the three states of a Circuit Breaker and how you decide thresholds.

What the Rubric Checks

  • • Combines timeouts, exponential backoff with jitter, circuit breaker, and graceful fallback
  • • Explains Closed, Open, and Half-Open circuit states
  • • Ties architecture directly to user experience

High-Scoring Answer Blueprint

Set strict request timeouts, retry transient 5xx/429 errors with capped exponential backoff + jitter, wrap the upstream provider in a Circuit Breaker (Closed -> Open on failure threshold -> Half-Open probe), and serve a fallback question bank or browser speech synthesis when tripped.

Web Dev Interview FAQs

Does this track cover both frontend and backend web questions?

Yes — it tests end-to-end web architecture including semantic HTML, HTTP, REST, authentication, caching, SEO/rendering trade-offs, and backend resilience.

Continue Practicing Related Tracks