All jobs / Frontend / web developer / Performance
Frontend / web developer interview question · 3–5 years
How do you ingest Web Vitals without drowning the backend or leaking PII?
The strongest answer
Sample or batch beacons, include route and device, keep them PII-free, and never block UX on the beacon
Why it works
RUM is a product: enough samples to see tails, no identity, no giant payloads.
What a good answer covers
- Measure the field cheaply.
- Batch or sample beacons.
- Slice by route, not by person.
- No PII, no full HTML.
Answers that fall short
- Close, but not the strongest: Send every event from every pageview with the user's email
Email on a vitals beacon is personal data you probably do not need. - Weak: Measure only on localhost
Localhost is lab, not field. - Red flag: Attach the full page HTML to the beacon
HTML in a beacon is a privacy and cost problem.
Who gets asked this
More Performance questions
- How do you keep marketing JS from growing without anyone noticing?
- Ten thousand rows in a div and the tab dies. What do you do?
- A feature flag flips the hero after hydrate (flicker). How do you prevent it?
- An SSR page waits for user, then cart, then recommendations, sequentially. What's the issue and the fix?
- A content site with a few interactive widgets — full CSR SPA or islands / edge?
- Personalized HTML at the edge versus cache hit ratio — how do you decide?
- How does a frontend platform prove it is not making products slower?
- Images pop the page down as they load. What do you set and why?