Skip to content
RED SAGSkills
hardFrontend Developer interview question

How do you know your frontend is healthy in production? Describe the monitoring you would set up.

What the interviewer wants to hear

  • Real user monitoring of Core Web Vitals (LCP, INP, CLS) by page, device and region
  • Error tracking with source maps, release tags and user context such as Sentry
  • Business and funnel metrics to catch silent failures
  • Alerts and budgets tied to releases, plus synthetic checks for key journeys
  • Respect privacy: no personal data in logs, and sampling to control cost

Model answer

Lab tools like Lighthouse are not enough, because real users have slower devices and networks. I collect real user monitoring with the web-vitals library, sending LCP, INP and CLS with attribution data, broken down by route, device type, country and release, and I watch the 75th percentile. For errors I use a tool like Sentry with uploaded source maps, release tags and breadcrumbs, so a new error can be traced to the deploy that caused it. Unhandled promise rejections and failed API calls are tracked too. Some failures are silent, so I also watch product metrics, like checkout completion or sign-up rate, which drop when a button stops working on one browser. Synthetic tests with Playwright run key journeys every few minutes against production. Alerts fire on error spikes or vitals regressions after a release, ideally linked to quick rollback. Throughout, I scrub personal data and use sampling to keep cost and privacy under control.

Can you answer it under time pressure?

Take a timed hard round and get scored on every answer.

Start mock interview

More hard Frontend Developer questions